Skip to main content
Glama

rename_symbol

Update TypeScript symbol names (variables, functions, classes) across the codebase by specifying the file path, line, old name, and new name for efficient refactoring.

Instructions

Rename a TypeScript symbol (variable, function, class, etc.) across the codebase

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesFile path (relative to root)
lineYesLine number (1-based) or string to match in the line
newNameYesNew name for the symbol
oldNameYesCurrent name of the symbol
rootYesRoot directory for resolving relative paths

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/SomeiLam/news-mcp'

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