Skip to main content
Glama

LSP MCP Server

by sminnee

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

NameRequiredDescriptionDefault
characterNoCharacter position of the symbol
fileYesFile containing the symbol
languageNoProgramming languagetypescript
lineYesLine number of the symbol
newNameYesNew 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" }

Other Tools from LSP MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/sminnee/lsp-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server