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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"body": "<body>"
},
"name": "silica_write_note"
}
}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 |