wiki_write
Create or update a wiki page with structured YAML frontmatter and Markdown content. Automatically interlinks mentions of existing pages and routes pages to matching topic subdirectories.
Instructions
Create or update a wiki page. Content should include YAML frontmatter (title, type, tags, sources) and Markdown body. Timestamps (created/updated) are auto-managed. Auto-routes root-level pages to matching topic subdirectories (via frontmatter topic field or tag matching). Auto-links: scans body for mentions of existing page titles and injects [[slug|text]] links automatically (skips code blocks, existing links, URLs). Wiki pages are MUTABLE — they represent compiled knowledge that improves over time. Set return_content: true to include the final written content in the response — eliminates the follow-up wiki_read call in write-then-reference workflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Page path relative to wiki/ | |
| content | Yes | Full page content including YAML frontmatter and Markdown body | |
| source | No | Provenance — why this write is happening | |
| return_content | No | If true, include the final written content in the response. Eliminates a follow-up wiki_read call. Default: false. |