surgical_replace_symbol
Replaces a named code symbol with a new name in a specified file to perform precise, collision-free refactoring at the AST level.
Instructions
Surgically refactor symbol
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_symbol": "<old_symbol>",
"new_symbol": "<new_symbol>",
"file_path": "<file_path>"
},
"name": "surgical_replace_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| new_symbol | Yes | ||
| old_symbol | Yes |