compute_rename_edits

[refactoring]

Previews TypeScript language-service rename edits for a symbol without applying them.

Why this tool exists

Rename planning should show the affected symbol occurrences before any file changes happen.

How it helps the agent

The model can review affected files and warnings before deciding whether to apply the rename.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
symbolKeystringYesStable symbol key returned by a prior symbol discovery tool.
newNamestringYesNew symbol name.
scopestringNoRename scope: 'same-project', 'direct-dependents', or 'transitive-dependents'.
includeCrossProjectbooleanNoDeprecated compatibility flag; prefer scope for cross-project rename planning.
allowPartialbooleanNoAllow a partial rename plan when some projects cannot be resolved safely.

Examples

Preview a safe rename

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "compute_rename_edits",
    "arguments": {
      "symbolKey": "role=canonical|...",
      "newName": "AccountService"
    }
  }
}

Response Notes

Returns a rename plan with affected files, occurrences, warnings, and cross-project impact.

↑/↓ NavigateEnter OpenSpace Expand