screen_text
Read the text on a virtual machine's screen.
Recognizes the text on the machine's screen on the Mac and returns each line with its box [x0, y0, x1, y1] in coordinate_space, which input_actions takes as is.
- Profiles
- read-only, operator, full
- Read-only
- Yes
- Destructive
- No
- Idempotent
- Yes
- Open world
- No
- Runs as a task
- No
Parameters
coordinate_spacestringdisplay: pixels of what the display shows now (default). screenshot: pixels of a scaled screenshot screenshot_width wide. normalized_1000: 0 to 999 across each side.
One of
display,screenshot,normalized_1000.displayintegerWhich display, from 0 (default). A machine on the OSMates engine can have up to 4; input goes to display 0.
From 0 to 3.
min_confidencenumberFrom 0 to 1; default 0.3.
regionarray of numbers[x0, y0, x1, y1], top-left and bottom-right corners in coordinate_space.
Exactly 4 items.
screenshot_widthintegerThe width of the screenshot the coordinates are in.
From 1 to 8192.
vmstringRequiredThe machine's name or identifier, as vm_list shows it.
Output
The result's structured content is an object with these fields.
JSON Schema: /schemas/0/mcp/tools/screen_text/output.json
coordinateSpacestringRequiredOne of
display,screenshot,normalized_1000.displayintegerAt least 0.
frameIdstringlinesobjectRequiredlines.guestDataarray of objectsRequiredtruncatedstringOne of
budget.
Fields nested deeper are in the schema.