edit_document
Replace an exact string in a document with new text using its doc_id. Update document content precisely, including whitespace, to fix or modify specific passages.
Instructions
Edit a document by replacing a string in document's content with 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_document"
}
}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 text to replace. Must match exactly, including whitespace. |