Save Markdown
save_markdownSaves a markdown file to a versioned archive, auto-creating folders. Optionally uploads embedded images and converts their references to asset links.
Instructions
Save (create or overwrite) a .md file in md-log by path; missing folders are auto-created. Optionally upload embedded images as assets first and rewrite their refs to asset:// links. This is a force-write (last-writer-wins) — the headline agent tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | POSIX path to the .md file, e.g. 'reports/2026/error-report.md'. Folders auto-created. | |
| assets | No | Embedded images to upload before saving. Each is uploaded, then its `placeholder` in `content` is replaced with the resulting asset:// reference. | |
| content | Yes | Full markdown content of the file. | |
| 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 (it is stored on the version and shown next to it on web & mobile). ALWAYS provide this — summarize the change yourself (e.g. 'Reworked the retention job to batch-delete expired blobs; fixes slow GC'). For a brand-new file, briefly state what the document is. |