ui_check_alignment
Determine if UI elements share an edge on an axis within a tolerance, returning a numerical answer instead of an opinion.
Instructions
Whether the given elements share an edge on an axis, within a tolerance. Answers "are these on the same line" with a number instead of an opinion.
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": {
"ids": "<ids>"
},
"name": "ui_check_alignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | testIDs or accessibility labels to compare. | |
| axis | No | Axis to compare. Defaults to y. | |
| tolerance | No | Allowed spread in points. Defaults to 1. |