doc_tree
Generate a nested, per-document heading tree for repositories with many documentation files, with adjustable depth to inspect structure without reading full content.
Instructions
Nested table of contents grouped by document. Returns heading trees per doc file with depth control. Better than doc_table_of_contents for repos with many documentation files.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>"
},
"name": "doc_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name (as shown in list_repos) | |
| max_depth | No | Maximum depth to expand |