zig_format
Format Zig code: provide a file path to format in-place or a code string to return formatted output.
Instructions
Format Zig code using zig fmt. Provide either a file path to format in-place, or a code string to format and return.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "zig_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Absolute path to .zig file to format in-place | |
| code | No | Zig source code string to format |