osmates agent click
Click at a point.
osmates agent click [<options>] <machine> <x> <y>Arguments
<machine>RequiredThe machine's name or identifier, as vm_list shows it.
<x>RequiredHorizontal position from the left edge, in the coordinate space.
<y>RequiredVertical position from the top edge, in the coordinate space.
--button <button>left, right, middle, back or forward. Default: left.
--count <count>Clicks in a row: 2 for a double click, 3 for a triple click.
Default:
1--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-afterTake 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.
--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/click.json
cursorobjectcursor.xintegerRequiredcursor.yintegerRequiredperformedintegerRequiredAt least 0.
screenshotsarray of objectsscreenshots[].displayintegerAt least 0.
screenshots[].displayHeightintegerRequiredAt least 0.
screenshots[].displayWidthintegerRequiredAt least 0.
screenshots[].formatstringRequiredOne of
png,jpeg.screenshots[].frameIdstringscreenshots[].heightintegerRequiredAt least 0.
screenshots[].regionarray of integersExactly 4 items.
screenshots[].scalenumberRequiredscreenshots[].widthintegerRequiredAt least 0.
verificationobjectverification.evidencestringRequiredverification.statusstringRequiredOne of
verified,unverified,failed.
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. |