plan_refactoring
Preview refactoring changes (rename, move, extract, signature) and review their blast radius before applying. Returns all edits as old_text/new_text pairs.
Instructions
Preview any refactoring (rename, move, extract, signature) without applying. Returns all edits as {old_text, new_text} pairs. Read-only (does not modify files). Use to review the blast radius before calling apply_rename, apply_move, change_signature, or extract_function. Returns JSON: { success, type, edits: [{ file, old_text, new_text }], filesAffected }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of refactoring to preview | |
| symbol_id | No | Symbol ID (for rename, move symbol, signature) | |
| new_name | Yes | New name (for rename) | |
| target_file | Yes | Target file (for move symbol) | |
| source_file | Yes | Source file (for move file) | |
| new_path | Yes | New path (for move file) | |
| file_path | Yes | File path (for extract) | |
| start_line | No | Start line (for extract) | |
| end_line | No | End line (for extract) | |
| function_name | Yes | Function name (for extract) | |
| changes | No | Signature changes (for signature) |