confluence_get_ancestors
Retrieve the ancestor chain for a Confluence page or folder to understand its hierarchy. Use when you need parent and grandparent content IDs for navigation or context.
Instructions
Primitive: get the ancestor chain for a page or folder. When the surrounding page context is also needed, prefer confluence_get_page_context.
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": {
"content_id": "<content_id>"
},
"name": "confluence_get_ancestors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No | ||
| content_id | Yes | ||
| content_type | No | page |