Low-level stateless screenshot to actions
Predict
Predict, at a glance
Low-level stateless screenshot to actions
POST /v1/predict- 01CapturePNG or JPEG screen
- 02Predictnext useful action
- 03Enforceserver action policy
- 04Applyclient executes batch
POST /v1/predict is the low-level, stateless prediction primitive. Each call is independent: you provide the full context, execute the returned actions, capture the next screenshot, and decide when to call again. Use it when your application must own that loop. For an autonomous goal, start a Submit & forget task. When a manually driven loop needs server-side trajectory memory, reach for sessions instead.
The response is the standard prediction shape, covered in Response format.
Act → Observe → Verify
Use verification where state can branch or matter: after Save, navigation, modal transitions, irreversible operations, and before task completion. Execute the allowed action, wait for the UI to settle, capture a fresh screenshot, and compare that screenshot with one observable expected state. You do not need an expensive, verbose verification turn after every harmless deterministic keystroke such as a Tab inside a stable form.
Verify only whether the Group Note was saved.
Expected screen: the Group Note window is closed and the saved note is visible in the patient's Chart.
[done] when: both conditions are visible.
Otherwise return fail and describe the mismatch. Do not click or type.Keep verification prompts this narrow. Long verification prompts increase latency and model distraction by making the model reconsider the whole workflow. A verification turn is observational: if it proposes a click or key anyway, reject that action client-side and verify from the current screen again.