edit_document
Replace specific text in a document with new content. Provide document ID, exact old string, and replacement to update the document.
Instructions
Edit a document by replacing a string in the documents content with a new string
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": {
"doc_id": "<doc_id>",
"old_str": "<old_str>",
"new_str": "<new_str>"
},
"name": "edit_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | Id of the document that will be edited | |
| new_str | Yes | The new text to insert in place of the old text | |
| old_str | Yes | The text to replace. Must match exactly, including whitespace |