osmates agent screenshot
Take a screenshot, or zoom into a region; standard error names the image.
osmates agent screenshot [<options>] <machine>Arguments
<machine>RequiredThe machine's name or identifier, as vm_list shows it.
--region <region>Repeatablex0 y0 x1 y1: the region to zoom into, in the coordinate space.
--display <display>The display, counted from 0. Default: 0. A Windows machine on the OSMates engine can have up to 4.
--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.
--max-long-edge <max-long-edge>The longest side of the image in pixels. Default: 1280.
--format <format>jpeg or png.
--jsonPrint 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/screenshot.json
displayintegerAt least 0.
displayHeightintegerRequiredAt least 0.
displayWidthintegerRequiredAt least 0.
formatstringRequiredOne of
png,jpeg.frameIdstringheightintegerRequiredAt least 0.
regionarray of integersExactly 4 items.
scalenumberRequiredwidthintegerRequiredAt least 0.
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |