Edit document
edit-documentEdit a document by exact text replacement. old_string must match exactly once against the document as it currently stands (read it first with get-document). The edit lands in the document immediately — anyone with it open sees it — but is NOT published: it reaches repos only when publish-document is called.
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": {
"document": "<document>",
"old_string": "<old_string>",
"new_string": "<new_string>"
},
"name": "edit-document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | The document target (find it with list-documents) | |
| new_string | Yes | The replacement text | |
| old_string | Yes | The exact text to replace — must match the document exactly once, including whitespace |