find_and_fix
Search for code patterns across files, analyze matches, and apply fixes automatically or with suggestions to resolve repeated issues.
Instructions
Search -> analyze -> suggest/apply fixes for repeated patterns across files.
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>",
"intent": "<intent>"
},
"name": "find_and_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Pattern to search for (supports regex) | |
| intent | Yes | What change/fix should be applied? | |
| root | No | Root directory to limit search (optional) | |
| maxFiles | No | Maximum files to process (default: 10) | |
| apply | No | Apply fixes automatically (default: false) | |
| minConfidence | No | Minimum confidence to apply fixes (default: high) |