osmates agent clipboard read
Read the clipboard; standard error names an image it holds.
osmates agent clipboard read [<options>] <machine>Arguments
<machine>RequiredThe 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.
--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/clipboard/read.json
filesobjectfiles.guestDataarray of stringsRequiredimageobjectimage.formatstringRequiredOne of
png,jpeg.image.heightintegerRequiredAt least 0.
image.shownHeightintegerRequiredAt least 0.
image.shownWidthintegerRequiredAt least 0.
image.widthintegerRequiredAt least 0.
originstringRequiredOne of
guest,host,mac.partsarray of stringsRequiredEach item is one of
text,image,files.sequenceintegerRequiredAt least 0.
textobjecttext.bytesintegerRequiredAt least 0.
text.encodingstringOne of
base64.text.guestDatastringRequiredtext.shownintegerRequiredAt least 0.
withheldboolean
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. |