Edit page fields
wiki_update_frontmatterEdit frontmatter fields like title, tags, lifecycle and confidence on an existing wiki page while keeping the body byte for byte. Preview changes without confirm=true to see old and new values first.
Instructions
Change frontmatter fields of one existing page under wiki/; the body is kept byte for byte. fields may set title, type, tags (a list that replaces the old one), lifecycle (draft, reviewed, verified, stale, archived) and confidence (0.0-1.0); other keys are refused. add_tags and remove_tags change the tag list without replacing it. last_updated is set to today. Refused for system pages and pages with origin: human. Without confirm=true it writes nothing and returns the old and new value of each field. Ask the user before confirm=true. Returns JSON {path, changes: {field: [old, new]}, written}. Use wiki_write_page to change the body and wiki_archive_page to retire a page.
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>"
},
"name": "wiki_update_frontmatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Existing page path relative to the repo root, under wiki/. | |
| fields | No | Fields to set: title, type, tags, lifecycle, confidence. Any other key is refused. | |
| confirm | No | Required to actually write. Without confirm=true the call returns the old and new values and writes nothing. | |
| add_tags | No | Tags to add without replacing the current list. | |
| remove_tags | No | Tags to remove from the current list. |