preview_refactoring
Preview refactoring changes in a dry-run mode, displaying the diff without modifying files. Always preview before applying to avoid unintended modifications.
Instructions
Preview what changes a refactoring would make without applying them.
This is a dry-run mode that shows the diff of what would change, without actually modifying any files. Always preview before applying.
Args: refactoring: Name of the refactoring (e.g., 'extract-method') target: Target in language-native format (e.g., 'src/order.py::Order::calculate#L10-L15') params: Refactoring-specific parameters (e.g., {'name': 'calculate_tax'})
Returns: TOON-formatted string with preview results including diff.
Example: preview_refactoring( refactoring="extract-method", target="src/order.py::Order::calculate#L10-L15", params={"name": "calculate_tax"} )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refactoring | Yes | ||
| target | Yes | ||
| params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |