get_diagnostics_code
Analyze code for warnings and errors using integrated linters. Specify a file or scan the workspace, filter by severity, and return diagnostics in text or JSON.
Instructions
Analyzes code for warnings and errors using integrated linters
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": "get_diagnostics_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional file path to check. If not provided, checks the entire workspace | |
| format | No | Output format | text |
| severities | No | Array of severity levels to include (0=Error, 1=Warning, 2=Information, 3=Hint) | |
| includeSource | No | Whether to include the diagnostic source to identify which linter/extension flagged each issue |