plan_refactoring
Preview code refactoring changes like rename, move, extract, or modify signatures before applying them. Shows all edits as old/new text pairs for review.
Instructions
Preview any refactoring (rename, move, extract, signature) without applying. Returns all edits as {old_text, new_text} pairs. Use to review changes before applying the real tool.
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 | No | New name (for rename) | |
| target_file | No | Target file (for move symbol) | |
| source_file | No | Source file (for move file) | |
| new_path | No | New path (for move file) | |
| file_path | No | File path (for extract) | |
| start_line | No | Start line (for extract) | |
| end_line | No | End line (for extract) | |
| function_name | No | Function name (for extract) | |
| changes | No | Signature changes (for signature) |