Get Space Page Tree
confluence_get_space_page_treeRetrieve Confluence space page hierarchy as a flat list with parent IDs and depth for efficient analysis of space organization before creating or moving pages.
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 |
|---|---|---|---|
| limit | No | Max pages to fetch | |
| space_key | Yes | Space key |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |