Get Space Page Tree
confluence_get_space_page_treeRetrieve Confluence space page hierarchy as a flat list with parent-child relationships. Use to understand page organization before creating or moving content, with filtering by depth or title for efficient processing.
Instructions
Get page hierarchy for a Confluence space as a flat list.
Returns pages with parent_id and depth attributes for token-efficient processing. Filter by depth to focus on relevant sections, or find pages by title. Much more efficient than rendering full ASCII trees.
Use this to understand space organization before creating/moving pages.
Args: ctx: The FastMCP context. space_key: Space key identifier. limit: Maximum pages to fetch (start with 100 for faster results).
Returns: JSON with space_key, total_pages, and pages array containing {id, title, parent_id, position, depth} for each page. Root pages have parent_id: null and depth: 0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_key | Yes | Space key | |
| limit | No | Max pages to fetch |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |