rename_symbol
Rename a symbol across the codebase using compiler-grade analysis, targeting only true references while ignoring unrelated same-named symbols. Preview changes before applying.
Instructions
Rename a symbol everywhere, using the compiler's own understanding rather than text replacement — so it renames the right things and leaves unrelated same-named symbols alone. Defaults to a dry run showing what would change.
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": {
"name": "<name>",
"new_name": "<new_name>"
},
"name": "rename_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Current symbol name | |
| apply | No | Write the changes. Omit or false to preview only. | |
| new_name | Yes | New name |