Skip to main content
Glama

rename_symbol

Rename a symbol across files with word-boundary, string/comment-aware logic. Preview changes with dry-run or use impact_analysis to assess effects before applying.

Instructions

Execute a cross-file symbol rename (edit_transaction-based). Word-boundary, string/comment-aware. dry_run previews. To see what a rename would affect FIRST, use impact_analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesFile where the symbol is defined (relative to workspace_dir)
symbolYesCurrent symbol name to rename
dry_runNoPreview changes without writing (default: true)
new_nameYesNew symbol name
workspace_dirYesREQUIRED: project root (abs).

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/wulun811/LiuHe'

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