replace_content
Search and replace text or regex patterns in files across specified paths. Perform multiple operations at once, with options to ignore case or use regex.
Instructions
Replace content within files across multiple specified paths.
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": {
"paths": "<paths>",
"operations": "<operations>"
},
"name": "replace_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | An array of search/replace operations to apply to each file. | |
| paths | Yes | An array of relative file paths to perform replacements on. |