generate_exhaustive_union_violations
Generate violation payloads for every branch of a Zod union or discriminated union schema, ensuring full branch coverage beyond single-variant testing.
Instructions
Generate violation payloads for every branch of a z.union() or z.discriminatedUnion() schema. Use when generate_boundary_violations only covers one union variant and you need full branch coverage.
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": {
"schema_code": "<schema_code>"
},
"name": "generate_exhaustive_union_violations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema_code | Yes | Zod schema code — must evaluate to a z.union() or z.discriminatedUnion() |