Get doc tree
get_doc_treeGet a space's doc hierarchy as nested pages in the order shown in the app, down to depth levels (1 to 5, default 3). truncated is true when the 500-node limit or a 500-row child scan prevents a complete result. hasChildren is also true when a capped scan leaves child presence unknown.
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": {
"spaceId": "<spaceId>"
},
"name": "get_doc_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Levels to return, 1 to 5. Default 3. | |
| spaceId | Yes | Docs space ID or slug. |