silica_write_note
Write a Markdown note atomically and lint it for structural violations and unresolved wikilinks, with version-based overwrite protection and create-only safeguards.
Instructions
Write one note atomically, as given, then lint it: lint lists
structural violations and unresolved wikilinks. Refuses to overwrite
when expect_version does not match or when create_only is set and
the file exists. Undo is git; the core keeps no journal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Markdown body, written as given; a body escaped twice (no real newline, \n in their place) is decoded first | |
| path | Yes | Root-relative path of the note (.md added when missing) | |
| create_only | No | Refuse when the file already exists | |
| frontmatter | No | Optional YAML frontmatter, serialised on top of the body | |
| expect_version | No | Refuse with error.changed unless the existing file has this version |