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.
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": {
"target": "<target>",
"content": "<content>"
},
"name": "rootr_write"
}
}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 |