change_signature
Modify function signatures by adding, removing, renaming, or reordering parameters and automatically update all call sites. Preview changes safely with dry-run mode before applying.
Instructions
Change a function/method signature (add/remove/rename/reorder parameters) and update all call sites. Dry-run by default (safe preview). Modifies source files. Use plan_refactoring with type="signature" to preview first. Returns JSON: { success, edits: [{ file, old_text, new_text }], callSitesUpdated }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol_id | Yes | Symbol ID of the function/method to modify | |
| changes | Yes | Array of changes to apply | |
| dry_run | No | Preview changes without applying (default: true) |