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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uri": "<uri>",
"range": "<range>"
},
"name": "extractMethodEvaluate"
}
}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}} |