Get Page Tree
get_page_treeFetches a space's page tree or a subtree under a given page in one call, honoring depth and page limits and listing unexpanded pages for follow-up.
Instructions
The page tree of a space, or of one page, several levels deep in one call. The walk stops at max_depth levels or max_pages pages; pages whose children were not read are listed in not_expanded, and get_page_tree with that page as root_page_id continues there.
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": {
"space_id": "<space_id>"
},
"name": "get_page_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | Space id from list_spaces. | |
| max_depth | No | Levels to walk down. | |
| max_pages | No | Stop after listing this many pages. | |
| root_page_id | No | Start below this page instead of the space's top. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||