On this page
Reference
ctx_tree
Input contract and parameters for ctx_tree.
MCP tool · Read, search & shell
Call this tool through your MCP client. Its availability depends on your active configuration and profile.
This registry contract is separate from the SDK. For terminal commands, use the CLI reference.
Example call
JSON for an MCP client. Replace example paths and queries with your own project values.
{
"name": "ctx_tree",
"arguments": {
"path": ".",
"depth": 2
}
}Parameters
Generated from the registered input schema. “Required” reflects the schema; individual actions can impose additional requirements.
depthintegerMax depth
pathstringDir
pathsarrayMulti-root (alternative to path)
respect_gitignorebooleanFilter ignored
Exact JSON schema
Inspect the complete input schema
{
"properties": {
"depth": {
"description": "Max depth",
"type": "integer"
},
"path": {
"description": "Dir",
"type": "string"
},
"paths": {
"description": "Multi-root (alternative to path)",
"items": {
"type": "string"
},
"type": "array"
},
"respect_gitignore": {
"description": "Filter ignored",
"type": "boolean"
},
"show_hidden": {
"description": "Include dotfiles",
"type": "boolean"
}
},
"required": [],
"type": "object"
}Runtime description
The following is the tool's own agent-facing description, reproduced from the reviewed registry. It can contain implementation terminology; it does not expand the public stability commitment.
Read the agent-facing description
Directory tree with file counts per directory. depth=N (default 3);
show_hidden for dotfiles; paths for multi-root.
respect_gitignore filters ignored files (default true).
WORKFLOW: lightweight orientation before ctx_repomap or ctx_compose.Sources & versions
- mcp_manifest.rsrust/src/core/mcp_manifest.rsReviewed checkout
- registry.rsrust/src/server/registry.rsReviewed checkout
- dynamic_tools.rsrust/src/server/dynamic_tools.rsReviewed checkout
- Core checkout
50fbff09c9- Installed runtime
- 3.10.2
- SDK release
- 1.1.0
Separate baselines for source, CLI/configuration and SDK contracts. Review does not certify every platform or integration.
Versions & compatibility