apply_move
Move a symbol to a new file or rename a file, updating all import paths across the codebase. Dry-run by default to preview changes before applying.
Instructions
Move a symbol to a different file or rename/move a file, updating all import paths across the codebase. Dry-run by default (safe preview). Modifies source files. Use plan_refactoring with type="move" to preview first. Returns JSON: { success, edits: [{ file, old_text, new_text }], filesModified }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol_id | Yes | Symbol ID to move (mode: symbol) | |
| target_file | No | Target file path for the symbol (mode: symbol) | |
| source_file | Yes | File to move/rename (mode: file) | |
| new_path | Yes | New file path (mode: file) | |
| dry_run | No | Preview changes without applying (default: true) |