Request an invite
Docs menu

osmates agent drag

Drag through points.

Usage
osmates agent drag [<options>] <machine> <points> ...

Arguments

<machine>Required

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

<points>RequiredRepeatable

Points to drag through: x1 y1 x2 y2 and so on, in the coordinate space.

--holding <holding>

Keys to hold, joined by +, such as shift or ctrl+alt.

--frame-id <frame-id>

The frameId of the screenshot the coordinates come from; refused once the display shows another size.

--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.

--screenshot-after

Take a screenshot after the input.

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

cursorobject
cursor.xintegerRequired
cursor.yintegerRequired
performedintegerRequired

At least 0.

screenshotsarray of objects
screenshots[].displayinteger

At least 0.

screenshots[].displayHeightintegerRequired

At least 0.

screenshots[].displayWidthintegerRequired

At least 0.

screenshots[].formatstringRequired

One of png, jpeg.

screenshots[].frameIdstring
screenshots[].heightintegerRequired

At least 0.

screenshots[].regionarray of integers

Exactly 4 items.

screenshots[].scalenumberRequired
screenshots[].widthintegerRequired

At least 0.

verificationobject
verification.evidencestringRequired
verification.statusstringRequired

One of verified, unverified, failed.

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