codeql_diagnostics
Retrieve syntax and semantic warnings and errors for a CodeQL file using its URI, enabling quick identification and fixing of issues in QL code.
Instructions
Retrieves diagnostics (syntax/semantic warnings, errors) for a file.
Args: file_uri: URI of the CodeQL file
Returns: Dictionary with diagnostics and metadata
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_uri": "<file_uri>"
},
"name": "codeql_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_uri | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||