get_guide¶
Get agent guide sections for Contree best practices.
Overview¶
get_guide provides access to documentation and best practices for using Contree. This tool is an alternative to the contree://guide/{section} resource for agents that don’t support MCP resources.
Parameters¶
Parameter |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string |
Yes |
- |
Guide section name |
Available Sections¶
Section |
Description |
|---|---|
|
Complete workflow patterns with decision tree |
|
Tool reference with parameters and data flow |
|
Quick examples for common operations |
|
State management and rollback patterns |
|
Parallel execution patterns |
|
Agent tagging conventions |
|
Error handling and debugging |
Returns¶
Field |
Type |
Description |
|---|---|---|
|
string |
Requested section name |
|
string |
Guide content in Markdown |
|
array |
List of all available section names |
Cost¶
Free - No VM spawned. Returns static documentation.
Examples¶
Get Workflow Guide¶
{
"tool": "get_guide",
"args": {
"section": "workflow"
}
}
Response:
{
"section": "workflow",
"content": "# Contree Workflow Guide\n\n## Decision Tree: Which Image to Use?\n...",
"available_sections": ["async", "errors", "quickstart", "reference", "state", "tagging", "workflow"]
}
Get Error Handling Guide¶
{
"tool": "get_guide",
"args": {
"section": "errors"
}
}
Get Tagging Convention¶
{
"tool": "get_guide",
"args": {
"section": "tagging"
}
}
When to Use¶
Use get_guide when:
Your agent runtime doesn’t support MCP resources
You need documentation about Contree best practices
You want to understand workflow patterns or error handling
If your agent supports MCP resources, prefer using the resource URI:
contree://guide/workflow
contree://guide/errors
Guide Content Overview¶
workflow¶
Decision trees for choosing images, complete examples for Python ML environments, anti-patterns to avoid, and project-specific environment guidance.
reference¶
Quick reference table of all tools with parameters, returns, and costs. Detailed parameter documentation for key tools.
quickstart¶
Basic command execution, file sync patterns, dependency chains, and best practices for UUIDs vs tags.
state¶
Understanding immutable snapshots, disposable mode, rollback model with branching, and response fields.
async¶
Sequential vs parallel patterns, launching multiple async operations, waiting for results, and operation states.
tagging¶
Tag format convention {scope}/{purpose}/{base}:{tag}, when to tag as common vs project-specific, and common tags to search for.
errors¶
Common error patterns (command failures, timeouts, missing images), solutions, and debugging workflow.
See Also¶
Resources -
contree://guide/{section}resource alternativelist_images - Find existing tagged images
set_tag - Tag images for reuse