assert_design_rules
Validate design files against programmatic assertions for alignment, dimensions, touch targets, contrast, and instance counts, enabling self-verifying agent workflows.
Instructions
Executes programmatic design assertions (alignment, uniform dimensions, bounds containment, min touch targets, WCAG contrast, instance counts) for self-verifying agent workflows.
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": {
"assertions": "<assertions>"
},
"name": "assert_design_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Optional target file ID. | |
| assertions | Yes | List of design assertions. |