[refactoring]
Previews TypeScript language-service rename edits for a symbol without applying them.
Rename planning should show the affected symbol occurrences before any file changes happen.
The model can review affected files and warnings before deciding whether to apply the rename.
Try it locally in the TGlider playground
| Name | Type | Required | Description |
|---|---|---|---|
| symbolKey | string | Yes | Stable symbol key returned by a prior symbol discovery tool. |
| newName | string | Yes | New symbol name. |
| scope | string | No | Rename scope: 'same-project', 'direct-dependents', or 'transitive-dependents'. |
| includeCrossProject | boolean | No | Deprecated compatibility flag; prefer scope for cross-project rename planning. |
| allowPartial | boolean | No | Allow a partial rename plan when some projects cannot be resolved safely. |
Preview a safe rename
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "compute_rename_edits",
"arguments": {
"symbolKey": "role=canonical|...",
"newName": "AccountService"
}
}
}Returns a rename plan with affected files, occurrences, warnings, and cross-project impact.