Skip to main content

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​

InputTypeRequiredDefaultWhat it is
DescriptionStringYesThe control in plain words: its text, kind, colour or place.
ConnectionStringNoName of a Model Connection (provider, model and key managed in one place). Leave empty to set them on this action.
ProviderStringNoopenaiWho 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).
ModelStringNoA model that reads pictures.
API keyCredentialNoAPI 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 addressStringNoEndpoint; 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 confidenceNumberNo0.6Below this, it counts as not found.

Outputs​

OutputTypeWhat it is
foundBooleanTrue when it was found with at least min_confidence.
xNumberThe middle of the control, in screen pixels from the left (-1 when not found).
yNumberThe middle of the control, in screen pixels from the top.
boxDictionaryleft, top, width and height in screen pixels.
confidenceNumberHow sure the model is, 0 to 1.
labelStringWhat the model says it found.
textStringThe text the model reads in or on the control.