Skip to main content
Glama

lsp_rename

Rename symbols across your workspace with preview capability. Specify file location and new name to safely refactor code across multiple files.

Instructions

Rename a symbol across the workspace. By default performs a dry run showing changes without applying them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path to the source file
lineYesLine number (1-indexed)
columnYesColumn number (1-indexed)
new_nameYesNew name for the symbol
dry_runNoIf true, only preview changes without applying. If false, apply changes to files.

Latest Blog Posts

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/ProfessioneIT/lsp-mcp-server'

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