Overwrite a Rootr document (destructive)
rootr_writeReplace the entire content of a Rootr document or create a new one if missing. Use with caution: read first and provide an ETag to prevent overwriting concurrent edits.
Instructions
Replace the ENTIRE content of a Rootr document, or create a new document at a path if it does not exist. This is DESTRUCTIVE — it discards whatever is currently there. Read the document first and pass its etag as ifMatch to avoid clobbering concurrent changes. Prefer rootr_append or rootr_edit for incremental changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Document path (starting with "/", created if missing) or node id | |
| content | Yes | Full new markdown content for the document | |
| ifMatch | No | ETag obtained from a previous rootr_read/rootr_write, to guard against overwriting concurrent edits |