verify_spatial_relationships
Validate spatial layout rules on a page, such as 'nav above hero' or 'sidebar left of content'. Returns pass/fail per rule with a human-readable reason.
Instructions
Validates a set of spatial layout rules — e.g. 'nav must be above hero', 'sidebar must be left of content'. Returns pass/fail per rule with a human-readable reason. Use to answer: does the page layout match the design specification?
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": {
"url": "<url>",
"rules": "<rules>"
},
"name": "verify_spatial_relationships"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to analyze | |
| rules | Yes | List of spatial rules to validate | |
| viewport | No | Viewport size (default: 1280×720) |