edit_doc_contents
Edit a document's content by replacing an exact old string with a new string using the document ID.
Instructions
Can be used to edit the contents of a doc
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 we want to edit | |
| new_str | Yes | Content that's to be replacing the old_str. | |
| old_str | Yes | Content to replace. Must match exactly, including whitespaces |