lsp_code_actions
List language-server quick fixes and refactors for a source range without applying them, so you can review available code actions before editing.
Instructions
List language-server code actions/quick fixes/refactors for a source range without applying 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": {
"file": "<file>",
"line": "<line>"
},
"name": "lsp_code_actions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Source file | |
| line | Yes | 1-based line | |
| only | No | Optional CodeActionKind filter, e.g. quickfix or source.organizeImports | |
| limit | No | ||
| symbol | No | Identifier on that line; its column is found automatically | |
| endLine | No | ||
| character | No | 1-based column (or give symbol instead) | |
| endCharacter | No |