rename_symbol
Rename a code symbol safely across its definition and all resolved references, leaving strings, comments, and unrelated same-named symbols untouched. Review a dry-run plan before applying.
Instructions
Rename a symbol at its definition and every reference that resolves to it (identifier nodes only: strings, comments and same-named symbols elsewhere are untouched; ambiguous references are listed and skipped). Defaults to dry_run=True: review the plan, then call again with dry_run=False.
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 | ||
| path | No | ||
| dry_run | No | ||
| new_name | Yes | ||
| include_tests | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |