get_diagnostics
Retrieve syntactic and semantic errors and warnings for a file to identify code issues.
Instructions
Get syntactic and semantic diagnostics (errors/warnings) for the 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>",
"fileContent": "<fileContent>"
},
"name": "get_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | File path | |
| fileContent | Yes | File content | |
| projectPath | No | Project root directory |