Update Markdown
update_markdownReplace content of an existing Markdown file with version control support. Use expected_version for safe concurrent edits or omit to force overwrite.
Instructions
Replace the content of an existing .md file. Pass expected_version for optimistic concurrency (mismatch -> CONFLICT); omit it to force last-writer-wins.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | POSIX path to the .md file, e.g. 'reports/2026/error-report.md'. Folders auto-created. | |
| content | Yes | New full markdown content. | |
| commit_message | No | A concise 1-2 line summary of WHAT changed in this version and WHY, written for a human reviewer scanning the version history (stored on the version, shown next to it on web & mobile). ALWAYS provide this — diff the old and new content in your head and summarize the change yourself (e.g. 'Corrected the JWT TTL table and added the tablet 90d refresh note'). | |
| expected_version | No | Version you based your edit on. Omit to force-overwrite (LWW). |