Request an invite
Docs menu

osmates agent clipboard read

Read the clipboard; standard error names an image it holds.

Usage
osmates agent clipboard read [<options>] <machine>

Arguments

<machine>Required

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

--part <part>

text, image or files. Default: all it holds.

--max-long-edge <max-long-edge>

The longest side of the image in pixels. Default: 1280.

--format <format>

jpeg or png.

--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/clipboard/read.json

filesobject
files.guestDataarray of stringsRequired
imageobject
image.formatstringRequired

One of png, jpeg.

image.heightintegerRequired

At least 0.

image.shownHeightintegerRequired

At least 0.

image.shownWidthintegerRequired

At least 0.

image.widthintegerRequired

At least 0.

originstringRequired

One of guest, host, mac.

partsarray of stringsRequired

Each item is one of text, image, files.

sequenceintegerRequired

At least 0.

textobject
text.bytesintegerRequired

At least 0.

text.encodingstring

One of base64.

text.guestDatastringRequired
text.shownintegerRequired

At least 0.

withheldboolean

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