confluence_get_content_tree
Fetch a Confluence page/folder hierarchy as an indented text tree in one call, avoiding recursive child lookups. Choose compact, outline, or detailed modes; cursor pagination handles large trees.
Instructions
HIGH-LEVEL: Get a page or folder hierarchy in one MCP call, rendered as an indented text tree (title [id], a trailing / marks folders). Prefer this over recursively calling confluence_list_children: the server reads v2 descendants, consumes cursor pagination, and rebuilds the hierarchy. output_mode=compact (default) returns the deepest view that fits the output budget and lists collapsed branches in omittedBranches, so a follow-up call can expand only what matters; output_mode=outline returns just the direct children with child counts and is the cheapest way to map a large or unknown tree first; output_mode=detailed returns raw node objects and is only worth it when parentId, childPosition or status are needed. Retained document versions, which Confluence stores as "Versions of ..." child content, are excluded by default so history cannot consume the item budget ahead of sibling branches; set include_version_history=true to include them, and status.excludedVersionHistory reports what was skipped. status separates fetchedItems from renderedItems and names every truncationReason. When status.nextCursor is returned, pass it back as cursor with the same root_id, depth and output_mode to continue the traversal; when truncationReasons contains output_budget, raising max_chars renders more of what was already fetched without extra API calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| cursor | No | ||
| root_id | Yes | ||
| max_chars | No | ||
| max_items | No | ||
| root_type | No | page | |
| output_mode | No | compact | |
| include_version_history | No |