analyze_zig
Validate Zig source code for syntax, type, and semantic errors using the official compiler across supported Zig versions.
Instructions
Analyze Zig code for syntax errors, type mismatches, and semantic issues using the official Zig compiler
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": {
"code": "<code>"
},
"name": "analyze_zig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Zig source code to analyze | |
| zig_version | No | Zig version to use for validation (default: 0.15.2) |