replace_text
Find and replace text throughout a document and return how many replacements were made, letting you update repeated content with optional case-sensitive matching and document targeting.
Instructions
Find and replace text throughout the document. Returns the number of replacements made.
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": {
"find": "<find>",
"replace": "<replace>"
},
"name": "replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Text to find. | |
| replace | Yes | Replacement text. | |
| matchCase | No | Case-sensitive search. Default false. | |
| documentId | No | Target document ID from list_documents. Optional when only one document is connected. |