rename_symbol
Rename symbols across your entire Godot project using language server support, with fallback methods for non-LSP environments and warnings for potential missed references.
Instructions
Rename a symbol across the entire project using the language server. LSP-only — without LSP, fall back to find_symbol + replace_content and warn about potentially missed references in non-script files (.tscn signal connections, etc.).
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": {
"file": "<file>",
"line": "<line>",
"newName": "<newName>"
},
"name": "rename_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file containing the symbol | |
| line | Yes | Line number (1-based) | |
| character | No | Character offset (0-based) | |
| newName | Yes | New name for the symbol |