rename_symbol
Rename variables, functions, and classes across all files in your codebase to maintain consistency and improve readability during refactoring.
Instructions
Rename a symbol (variable, function, class, etc.) across all files
Input Schema
Name | Required | Description | Default |
---|---|---|---|
character | No | Character position of the symbol | |
file | Yes | File containing the symbol | |
language | No | Programming language | typescript |
line | Yes | Line number of the symbol | |
newName | Yes | New name for the symbol |
Input Schema (JSON Schema)
{
"properties": {
"character": {
"default": 0,
"description": "Character position of the symbol",
"type": "number"
},
"file": {
"description": "File containing the symbol",
"type": "string"
},
"language": {
"default": "typescript",
"description": "Programming language",
"type": "string"
},
"line": {
"description": "Line number of the symbol",
"type": "number"
},
"newName": {
"description": "New name for the symbol",
"type": "string"
}
},
"required": [
"file",
"line",
"newName"
],
"type": "object"
}