edit_doc_contents
Replace a specific text string within a document using its ID, providing the exact old text and the new replacement to update the file's content.
Instructions
Edit a document by replacing a string in the documents content with the 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_contents"
}
}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 test to replace. Must match exactly, including whitespaces |