Request an invite
Docs menu

osmates agent text

Read the text on the screen, with a box for each line.

Usage
osmates agent text [<options>] <machine>

Arguments

<machine>Required

The machine's name or identifier, as vm_list shows it.

--region <region>Repeatable

x0 y0 x1 y1: read only within this region, in the coordinate space.

--coordinate-space <coordinate-space>

display, screenshot or normalized_1000. Default: display.

--screenshot-width <screenshot-width>

With --coordinate-space screenshot: the width of the screenshot the coordinates are in.

--min-confidence <min-confidence>

The lowest confidence to keep, from 0 to 1. Default: 0.3.

--display <display>

The display, counted from 0. Default: 0. A Windows machine on the OSMates engine can have up to 4.

--json

Print the tool's structured content as one line of JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/agent/text.json

coordinateSpacestringRequired

One of display, screenshot, normalized_1000.

displayinteger

At least 0.

frameIdstring
linesobjectRequired
lines.guestDataarray of objectsRequired
truncatedstring

One of budget.

Fields nested deeper are in the schema.

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page