edit_doc_contents
Replace specific text within a document by its ID and return the updated content, enabling targeted edits without rewriting the entire file.
Instructions
Edit the contents of a document and return the updated 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_str": "<old_str>",
"new_str": "<new_str>"
},
"name": "edit_doc_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | The ID of the document that will be edited. | |
| new_str | Yes | The string to replace the old string with. | |
| old_str | Yes | The string to be replaced in the document. |