text_patch
Find/replace edits on a text, applied in order, each verified: 'occurrences' is "one" (default: exact-uniqueness gate), "all" or an exact count. A non-unique rename fails loudly instead of guessing. Paid route (x402 from first call).
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": {
"text": "<text>",
"edits": "<edits>"
},
"name": "text_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | the source text | |
| edits | Yes | [{find, replace, occurrences?}] |