Get Space Page Tree
confluence_get_space_page_treeRetrieve a flat list of pages in a Confluence space with parent ID and depth to understand hierarchy. Filter by depth or limit pages for efficient navigation.
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 |