Skip to main content
Glama

rename_symbol

Rename TypeScript symbols (variables, functions, classes) across your entire codebase to maintain consistency and update references automatically.

Instructions

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

Input Schema

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

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