Prepare a project-wide structural rename
ast_rename_symbolGenerates a hash-bound rename plan for a symbol in TypeScript or JavaScript code. Preview the prepared plan, then apply it by its operation ID to safely update references across the project without writing changes directly.
Instructions
Prepares an exact hash-bound rename plan without writing. Review the preview and apply its operation_id with ast_apply_operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Compatibility field. Direct application is disabled; this tool always prepares. | |
| new_name | Yes | New identifier only, without a container prefix. | |
| file_path | Yes | ||
| symbol_path | Yes | ||
| project_root | Yes | ||
| allow_new_errors | No | Permit a plan with new TypeScript errors after explicit review. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| status | Yes | ||
| blocked | Yes | ||
| preview | Yes | ||
| plan_hash | Yes | ||
| created_at | Yes | ||
| expires_at | Yes | ||
| diagnostics | Yes | ||
| block_reason | Yes | ||
| operation_id | Yes | ||
| project_root | Yes | ||
| affected_files | Yes | ||
| workspace_hash | Yes | ||
| reference_count | Yes | ||
| allow_new_errors | Yes | ||
| preview_truncated | Yes | ||
| workspace_file_count | Yes |