compile_zig
Format Zig source code with the official Zig formatter to resolve style inconsistencies and standardize files across selected Zig versions.
Instructions
Format Zig code using the official Zig formatter
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": "compile_zig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Zig source code to format | |
| zig_version | No | Zig version to use for formatting (default: 0.15.2) |