Give a site a wiki
set_wikiGive the site a wiki, or change its tree: the whole site, or with at a path of a site of pages, as "docs" for a help section at /docs beside its pages. A wiki's pages live in its categories, each with a version and a history of every save, and are written with save_wiki_page, not write_site. The tree is sent whole: each node's slug is its path segment, and its metadataKeys are the facts a page under it carries, a select key becoming a filter on the category's page. A wiki keeps its place when at is left out.
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": {
"tree": "<tree>"
},
"name": "set_wiki"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | The path the wiki sits under on a site of pages, as "docs" for /docs; unset, the wiki is the whole site | |
| tree | Yes | The top-level categories, each with its children | |
| token | No | The site token from create_site or the site's settings. Omit if your Authorization header carries it. |