Get Combined Code Fix
getCombinedCodeFixApplies all instances of a code fix across a file in one action, like adding all missing imports or removing unused variables. Call after getCodeFixes with the fixId.
Instructions
Get a combined code fix that applies all instances of a fix across a file in one action. For example, "Add all missing imports" or "Remove all unused variables". Returns the full set of file edits as a CombinedCodeActions response. Use getCodeFixes first to discover available fixId values, then pass the fixId here to get the combined fix for the whole 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": {
"file": "<file>",
"fixId": "<fixId>"
},
"name": "getCombinedCodeFix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path (absolute or relative to cwd) | |
| fixId | Yes | The fixId from a code fix (e.g., "fixMissingImport", "unusedIdentifier", "inferFromUsage") |