renforge_measure
Measure pixel alignment, gaps, distribution, centering, overlap, fit, and contrast between scene nodes, returning actionable deltas or pass/fail verdicts for layout validation.
Instructions
Measure pixel relationships between scene nodes, without eyes.
action is one of align, gap, distribute, center, overlap,
fit, contrast. Each target (and within) is a renforge_scene_tree
node id (string, resolved live) or a literal bounds object
{x,y,width,height}. Returns actionable deltas in logical pixels; when
tolerance is given, adds a pass verdict. contrast samples the live
frame and reports a WCAG ratio (one target = its internal fg/bg, two
targets = between the two elements).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| within | No | ||
| targets | Yes | ||
| tolerance | No | ||
| project_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||