batch_rename
Renames a symbol across all source files in a project using word-boundary matching. Returns modified files and replacement count, with optional path filtering to limit scope.
Instructions
Rename a symbol (word-boundary match) across all source files in the project. Returns a list of modified files and replacement count.
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": {
"old_name": "<old_name>",
"new_name": "<new_name>"
},
"name": "batch_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | New name to replace it with | |
| old_name | Yes | Current symbol name to find | |
| file_pattern | No | Optional path substring to limit scope (e.g. "src/components") |