edit_doc_content
Replace exact text in a document by specifying the target string and its replacement. Use this to correct or update content within a specific document.
Instructions
Edits the content of a document based on the provided 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_str": "<old_str>",
"new_str": "<new_str>"
},
"name": "edit_doc_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ID of the document to edit. | |
| old_str | Yes | The string to be replaced. Must match exactly, including whitespace. | |
| new_str | Yes | The new string to replace the old string. |