getCodeActions
Retrieve available code actions like quick fixes and refactorings for a specified range in a file, enabling automated code improvements.
Instructions
Get available code actions (quick fixes, refactorings) for a range in a file.
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>"
},
"name": "getCodeActions"
}
}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) | |
| startColumn | Yes | Start column (1-based) |