mindwiki_write_page
Create or update a page in your vault. Provide the full markdown content including any frontmatter.
Scope: write
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Page path (e.g. capture/idea.md) |
content | string | Yes | Full markdown content including frontmatter |
message | string | No | Log message describing the change |
Example Request
json
{
"tool": "mindwiki_write_page",
"arguments": {
"path": "patterns/feedback-loops.md",
"content": "---\ntitle: Feedback Loops\narea: patterns\ntype: pattern\nupdated: 2026-05-09\n---\n\n# Feedback Loops\n\nA self-reinforcing cycle where the output of a system feeds back as input.",
"message": "Refined opening summary"
}
}Example Response
json
{
"success": true,
"path": "patterns/feedback-loops.md",
"content_hash": "9d4f2c8...",
"seq": 412
}The REST equivalent is POST /vault/page with the same body. Both support optimistic concurrency via an optional base_hash field — if you supply it and the server's current hash doesn't match, you get HTTP 409 with code: "CONFLICT" and the actual current hash.