Find on screen (AI)
Find a control on the screen from a plain description, with a vision model; returns where it is.
Command in the AI screen (vision) toolkit · id ooa.ai_screen/find_on_screen · 7 inputs (1 required), 7 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Description | String | Yes | The control in plain words: its text, kind, colour or place. | |
| Connection | String | No | Name of a Model Connection (provider, model and key managed in one place). Leave empty to set them on this action. | |
| Provider | String | No | openai | Who runs the model: OpenAI, Azure OpenAI, Anthropic, OpenAI-compatible (LiteLLM, vLLM, Ollama), Hugging Face (its router or your own TGI server), AWS SageMaker (a model on an Amazon SageMaker endpoint), AWS Bedrock or Google Vertex AI (Gemini). |
| Model | String | No | A model that reads pictures. | |
| API key | Credential | No | API key or access token from the vault (not needed for some self-hosted endpoints). For AWS Bedrock and AWS SageMaker: the AWS secret access key (or ACCESS_KEY_ID:SECRET). For Google Vertex AI: a service-account JSON key or an access token. | |
| Endpoint address | String | No | Endpoint; required for Azure OpenAI, Vertex AI (https://REGION-aiplatform.googleapis.com/v1/projects/PROJECT/locations/REGION) and self-hosted models (for a TGI server, e.g. http://tgi-host:8080/v1). | |
| Minimum confidence | Number | No | 0.6 | Below this, it counts as not found. |
Outputs
| Output | Type | What it is |
|---|---|---|
| found | Boolean | True when it was found with at least min_confidence. |
| x | Number | The middle of the control, in screen pixels from the left (-1 when not found). |
| y | Number | The middle of the control, in screen pixels from the top. |
| box | Dictionary | left, top, width and height in screen pixels. |
| confidence | Number | How sure the model is, 0 to 1. |
| label | String | What the model says it found. |
| text | String | The text the model reads in or on the control. |