find_and_replace
Searches for specified text and replaces it with new content in a document, returning the number of replacements made.
Instructions
Find and replace text in the current document.
Args: find_text: Text to find replace_text: Text to replace with
Returns: 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_text": "<find_text>",
"replace_text": "<replace_text>"
},
"name": "find_and_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find_text | Yes | ||
| replace_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |