Archive a page
wiki_archive_pageArchives a wiki page without deleting it by setting its lifecycle to archived and recording a reason; preserves existing links and supports preview before confirmation.
Instructions
Retire one page under wiki/ without deleting it: set lifecycle: archived, archived_reason and last_updated in its frontmatter. The file stays where it is, so links keep working, and wiki_update_frontmatter with lifecycle: reviewed restores it. Nothing is ever deleted. Refused for system pages and pages with origin: human. Without confirm=true it writes nothing and returns a preview. Ask the user before confirm=true. Returns JSON {path, previous_lifecycle, written}. Use wiki_lifecycle with state 'archived' to list archived pages.
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": {
"path": "<path>",
"reason": "<reason>"
},
"name": "wiki_archive_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Existing page path relative to the repo root, under wiki/. | |
| reason | Yes | Why the page is retired, at most 200 characters, single line. Stored as archived_reason. | |
| confirm | No | Required to actually write. Without confirm=true the call returns a preview and writes nothing. |