extractMethodPreview
Preview the code changes for an extract method refactoring before applying them. See the new signature and updated call site, then agree or reject.
Instructions
Second step of extract-method: the edits the refactoring would make, from the evaluation you pass back in. Still nothing written - this is where the new signature and the changed call site can be read before agreeing to them.
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": {
"proposal": "<proposal>"
},
"name": "extractMethodPreview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proposal | Yes | The extract method proposal returned by extractMethodEvaluate, as a JSON string. |