Screenshots: locate
Find the element a query describes in a screenshot: a point, or an OCR text.
"the blue Continue button", in a screenshot you supply. A vision-language
model reads the image and answers in one of two ways when found is true:
- A box.
bboxis the element’s pixel box in the screenshot. - A matched text. When you send
texts, the OCR results for the same screenshot, the model can answer withmatched_text_indexinstead. It points into yourtextslist, so you reuse that entry’s exact box.
texts unchanged: detect already returns each text box
normalized to [0, 1] of the image, which is the form texts takes. Only the
answer’s bbox is in pixels.
Pass a model from Models: list, or omit
it to use the default. The call is billed per token on that model, and the
response reports prompt_tokens, completion_tokens, and cost_microdollars.
If you already have the screen’s UI elements, for example from a DOM, use
Elements: locate instead. It answers
with one of your elements, which is exact where a box is approximate.
Errors use the problem details shape.Authorizations
Axilio API key (axl_*).
Body
Argus POST /screenshots:locate request.
The caller pre-computes OCR via POST /screenshots:detect (or reuses cached
results keyed by frame hash) and passes the text list here. Argus does
NOT re-run OCR; the VLM call uses the provided texts as grounding
context.
Base64 encoded image (PNG or JPEG)
16777216Natural-language target description
1VLM model to use; must be one of the models from GET /models. Omit to use the server's configured default. The system prompt is fixed to the element-locator task.
1Pre-computed OCR text elements. Empty list means Argus skips OCR grounding and asks the VLM to locate from the image alone.
Response
Successful Response
Argus POST /screenshots:locate response.
Exactly one of matched_text_index or bbox is populated when
found is True. matched_text_index indicates the VLM grounded its
answer to a specific OCR text element (pixel-accurate bbox available
via the original texts list). bbox is a free-form VLM bbox.
Model self-reported confidence
0 <= x <= 1Provider-reported cost in microdollars
x >= 0Whether the VLM located the target
End-to-end VLM call latency
x >= 0Model identifier returned by the provider
Pixel-space bbox. None when matched_text_index is set or found=False.
Completion (output) tokens the model billed for this call
x >= 0Index into the request texts list when the answer is OCR-grounded.
x >= 0Prompt (input) tokens the model billed for this call
x >= 0