apply_move
Moves a symbol or renames a file, updating all import paths. Dry-run by default for safe preview before applying changes.
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 |
|---|---|---|---|
| dry_run | No | Preview changes without applying (default: true) | |
| new_path | Yes | New file path (mode: file) | |
| symbol_id | Yes | Symbol ID to move (mode: symbol) | |
| source_file | Yes | File to move/rename (mode: file) | |
| target_file | No | Target file path for the symbol (mode: symbol) |