Get Supported Code Fixes
getSupportedCodeFixesDiscover which TypeScript error codes have automated fixes. Provide a file path to scope results by project, then use getCodeFixes to apply them.
Instructions
Returns the list of all error codes that have available code fixes. Use this as a discovery tool before calling getCodeFixes — it tells you which error codes tsserver can automatically fix. A file path must be provided to establish a project context; omitting it will cause tsserver to throw 'No Project'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getSupportedCodeFixes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional file path (absolute or relative to cwd). If provided, scopes the result to the file's project. |