Browse the page tree
get_page_treeRetrieve the folder and page structure under a specified wiki path, with options to list only folders, only pages, or both.
Instructions
Lists the pages and folders directly under a path — the structural view a wiki has and a search does not. mode "ALL" returns both folders and pages, "FOLDERS" only folders, "PAGES" only pages. Wiki.js offers no limit on this query, so a very wide level is truncated to the result budget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| path | No | Parent path. Omit for the root of the wiki. | |
| locale | No | Locale code. Defaults to WIKIJS_LOCALE. The locale is part of a page’s identity. | |
| include_ancestors | No | Also return the path from the root down to this level. |