prepareRename
Validates rename feasibility for a symbol at a file location, returning false with reason if rename is blocked. Run before attempting to rename.
Instructions
Check if symbol can be renamed. Returns canRename:false with reason if not. Use before renameSymbol.
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": {
"filePath": "<filePath>",
"line": "<line>",
"column": "<column>"
},
"name": "prepareRename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | 1-based line number | |
| column | Yes | 1-based column number | |
| filePath | Yes | Workspace or absolute path |