Rename a symbol
angelscript_rename_symbolRename an AngelScript class, function, method, or field across all usages, previewing edits by default and writing them to disk when apply is enabled.
Instructions
Rename a script class, function, method or field everywhere it is used. By default this only previews the edits (apply=false). Set apply=true to write the files. Host API names cannot be renamed. Run angelscript_check afterwards.
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": {
"symbol": "<symbol>",
"new_name": "<new_name>"
},
"name": "angelscript_rename_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | false previews the edits, true writes them to disk. | |
| symbol | Yes | Qualified name, bare name, or 'path/to/file.as:LINE'. | |
| new_name | Yes | The new identifier. | |
| response_format | No | 'markdown' (default) is compact text for reading. 'json' returns structured data. | markdown |