optimize_code
Refactor Zig code to improve performance using modern patterns. Select an optimization level to target release builds.
Instructions
Optimize Zig code for better performance with modern patterns
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": "optimize_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Zig code to optimize | |
| optimizationLevel | No | Optimization level to target | ReleaseSafe |