Request an invite
Docs menu

osmates agent resize

Change the display's size; take a new screenshot after.

Usage
osmates agent resize <machine> <size> [--scale <scale>] [--json]

Arguments

<machine>Required

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

<size>Required

The size as WxH, such as 1920x1080.

--scale <scale>

Windows and Linux: 1 or 2 pixels a point, 2 for 200%. Default: the machine's.

--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/resize.json

resultobjectRequired
result.displayobjectRequired
result.guestobject
result.outcomestring or objectRequired

One of shown, or an object that holds one key: pending or failed.

verificationobjectRequired
verification.evidencestringRequired
verification.statusstringRequired

One of verified, unverified, failed.

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.
1The command printed its result, whose check failed.

Report a problem with this page