write_file
Writes markdown content to vault after validating frontmatter against schema. Adds updated date, fills missing date, and supports conditional writes using etag to prevent overwrites.
Instructions
WRITE — validates the frontmatter against the vault schema and refuses the write if it does not hold. Stamps updated with today and fills date when missing. Pass expected_etag from read_file to make the write conditional.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| expected_etag | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |