zig_diagnostics
Retrieve errors and warnings for a Zig source file by providing its absolute path, using the Zig Language Server.
Instructions
Get diagnostics (errors, warnings) for a Zig source file via ZLS
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_path": "<file_path>"
},
"name": "zig_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .zig file to diagnose |