document_replace
Replaces specified text in the document with new content. Supports regex patterns for advanced find-and-replace operations.
Instructions
Finds and replaces text in the document
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": {
"pattern": "<pattern>",
"replacement": "<replacement>"
},
"name": "document_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regex | No | Interpret pattern as regex | |
| pattern | Yes | Search text or regex | |
| replacement | Yes | Replacement text |