Endpoint
Overview
Changes a screen. Fields you leave out keep their value;match replaces all conditions.
Request Body
What the screen shows. It is recognised when every
all condition holds and no none condition does; it needs at least one condition.Conditions that must all hold.
text (words read on screen), label (an element the detector names) or color (the colour of an area, e.g. whether a toggle is on). vision (a yes/no question) is not available yet and is refused.For
text: the words to find. A line that contains them matches, or only the whole line with exact.For
text, label and color: where on the screen, as [x0, y0, x1, y1] fractions of the screenshot (0 to 1).For
vision: the question. A screen with a vision condition is refused: no run can decide one yet.For
color: the colour as #rrggbb. The condition holds when at least share of the pixels in the area are within tolerance of it. The area is the box of the first element with label (inside region when given; the condition does not hold when there is none), else region; one of them is required. Example: TikTok’s liked heart is {"kind": "color", "label": "like", "region": [0.82, 0.3, 1, 0.75], "color": "#fe2c55"}.For
color: the share of the area’s pixels that must have the colour, above 0 up to 1. Default 0.1.Conditions none of which may hold.
text (words read on screen), label (an element the detector names) or color (the colour of an area, e.g. whether a toggle is on). vision (a yes/no question) is not available yet and is refused.For
text: the words to find. A line that contains them matches, or only the whole line with exact.For
text, label and color: where on the screen, as [x0, y0, x1, y1] fractions of the screenshot (0 to 1).For
vision: the question. A screen with a vision condition is refused: no run can decide one yet.For
color: the colour as #rrggbb. The condition holds when at least share of the pixels in the area are within tolerance of it. The area is the box of the first element with label (inside region when given; the condition does not hold when there is none), else region; one of them is required. Example: TikTok’s liked heart is {"kind": "color", "label": "like", "region": [0.82, 0.3, 1, 0.75], "color": "#fe2c55"}.For
color: the share of the area’s pixels that must have the colour, above 0 up to 1. Default 0.1.Response
The updated Screen.