Get Page Descendants
page_get_descendantsGet all descendant Yandex Wiki pages under a parent as a flat list; slugs encode hierarchy. Use from_root to list the entire wiki.
Instructions
Get the subtree of Yandex Wiki pages under a parent page. Returns descendants from ALL nesting levels as one flat list of {id, slug} items — slugs encode the hierarchy ('/x/y' is nested under '/x'), so the tree can be reconstructed without further calls. Combine with fetch_all=true to map a whole section at once; if the result comes back truncated=true, continue via next_cursor or narrow down by calling this tool on a subsection's slug. Pass from_root=true instead of page_id/slug to enumerate the WHOLE Wiki, top-level pages included — the way to inventory an organization when no starting slug is known. Prefer a section slug when you have one: a full wiki is routinely thousands of pages, so a root walk costs many requests and a large reply, and fetch_all stops at its ~500-item cap with truncated=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Wiki page slug or full Wiki URL. Provide either page_id or slug. | |
| cursor | No | Opaque pagination cursor returned by the previous call. | |
| page_id | No | Wiki page numeric ID. Provide either page_id or slug. | |
| fetch_all | No | Follow pagination automatically and return all items in one call (up to ~500). The response then carries truncated=false when the list is complete, or truncated=true with next_cursor to continue. | |
| from_root | No | Traverse the whole Wiki instead of one page's subtree. Mutually exclusive with page_id and slug. | |
| page_size | No | Page size for cursor-based endpoints. | |
| include_self | No | Whether to include the parent page itself in the subtree. Ignored with from_root=true — the root is not a page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | No | ||
| truncated | No | ||
| next_cursor | No | ||
| prev_cursor | No |