lsp_code_actions_preview
Preview LSP code actions (quickfixes, refactors, source actions) for a file range or diagnostic. No commands executed, no files written.
Instructions
Return available LSP code actions (quickfixes, refactors, source actions) for a range or diagnostic, with safe edit previews. No commands are executed and no files are written.
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>"
},
"name": "lsp_code_actions_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| only | No | Filter by code action kinds. | |
| range | No | Selection range. | |
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| maxActions | No | Max actions to return. | |
| includeDiff | No | Include diffs for edit actions. | |
| diagnosticIndexes | No | Indexes of diagnostics to target. |