edit_doc
Replace an exact text string within a document by providing its ID, the old string, and the new string to update content.
Instructions
Edit the document by replacing a string in the document 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_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | The ID of the document that will be edited | |
| new_str | Yes | The new text to insert in place of old string | |
| old_str | Yes | The text to replace. Must match exaclty including whitespaces. |