extractMethodEvaluate
Checks if a selected code range can be extracted into a method and identifies required input and output variables, enabling safe extraction planning before any changes are applied.
Instructions
First of the three steps that pull a range of lines out into a method: it asks the system whether the range CAN be extracted and what the new method would need - which variables come in, which go out. Nothing is written. Then extractMethodPreview, then extractMethodExecute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | The URI of the object. | |
| range | Yes | The range to extract, as a JSON string, e.g. {"start":{"line":1,"column":0},"end":{"line":5,"column":10}} |