refactorPreview
Preview refactoring edits across files without applying. Retrieve code actions first, then review changes before committing.
Instructions
Preview refactoring edits across files without applying. Use getCodeActions first.
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": {
"filePath": "<filePath>",
"startLine": "<startLine>",
"startColumn": "<startColumn>",
"endLine": "<endLine>",
"endColumn": "<endColumn>",
"actionTitle": "<actionTitle>"
},
"name": "refactorPreview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | Yes | End line (1-based) | |
| filePath | Yes | Workspace or absolute path | |
| endColumn | Yes | End column (1-based) | |
| startLine | Yes | Start line (1-based) | |
| actionTitle | Yes | Exact action title from getCodeActions output | |
| startColumn | Yes | Start column (1-based) |