edit_doc
Replace outdated text in a document by matching the exact old string and applying the new content using the document ID.
Instructions
Edit the contents of a document by replacing the old content with new content.
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_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | The ID of the document to edit. | |
| new_string | Yes | The new content for the document. | |
| old_string | Yes | The old string of the document, must match including whitespace and punctuation. |