edit_document
Replace a specified string in a document with a new string, using the document ID to target the file.
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_string": "<old_string>",
"new_string": "<new_string>"
},
"name": "edit_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | The ID of the document to edit. | |
| new_string | Yes | The new string to replace the old string with. | |
| old_string | Yes | The string to be replaced in the document. |