Request an invite
Docs menu

input_actions

Use a virtual machine's keyboard and pointer.

Performs keyboard and pointer actions in order, stops at the first that fails, and says whether the screen changed. Pass the frameId of the coordinates' screenshot as frame_id; without it the call holds to the display it finds first. Actions take the names and arguments of Anthropic's, OpenAI's and Gemini's computer tools; action lists the names. Key names follow xdotool, browsers and those tools: Return, ENTER, ctrl, CMD, super, Page_Up, ARROWLEFT, and the W3C codes of keys a US keyboard lacks: IntlBackslash, IntlYen, IntlRo, Lang1, Lang2. Keys go as named, whatever the window's shortcuts; a letter or digit with ctrl, alt or win on Windows, or cmd or ctrl on macOS, follows the guest's layout. Text types on the guest's layout; type_text pastes what it cannot. Keys and buttons a session holds go up when it ends. A click, scroll or key of the person in the machine's window pauses this session.

Profiles
operator, full
Read-only
No
Destructive
Yes
Idempotent
No
Open world
Yes
Runs as a task
No

Parameters

actionsarray of objectsRequired

A call types at most 30 seconds of keys, counted at the keyboard's pace, and 27 when it also moves the pointer.

At least 1 item.

actions[].actionstringRequired

What to do, by the name Anthropic's computer toolset, OpenAI's computer tool or Gemini's computer use gives it, with that tool's arguments: key with repeat, clicks with modifier text, click with button, drag with path, scroll with scroll_x and scroll_y or with direction and magnitude_in_pixels, keypress with keys, type with press_enter.

One of key, keypress, hotkey, key_combination, press_key, key_down, key_up, hold_key, type, type_text_at, mouse_move, move, hover_at, left_click, right_click, middle_click, double_click, triple_click, click, click_at, left_mouse_down, left_mouse_up, mouse_down, mouse_up, left_click_drag, drag, drag_and_drop, scroll, scroll_at, scroll_document, wait, wait_5_seconds, cursor_position, screenshot, take_screenshot, zoom.

actions[].buttonstring

Default left. back and forward work on Windows machines only.

One of left, right, wheel, middle, back, forward.

actions[].clear_before_typingboolean

Select and delete first.

actions[].coordinatearray of numbers

[x, y]

Exactly 2 items.

actions[].destination_xnumber
actions[].destination_ynumber
actions[].directionstring

Scroll direction.

One of up, down, left, right.

actions[].durationnumber

Seconds, at most 300.

actions[].end_xnumber
actions[].end_ynumber
actions[].keystring

One key.

actions[].keysarray of strings

Keys pressed together, or modifiers held during a pointer action.

actions[].magnitudenumber
actions[].magnitude_in_pixelsnumber
actions[].patharray of objects
actions[].path[].xnumberRequired
actions[].path[].ynumberRequired
actions[].press_enterboolean

Press Return after typing.

actions[].regionarray of numbers

[x0, y0, x1, y1], top-left and bottom-right corners in coordinate_space.

Exactly 4 items.

actions[].repeatinteger

Times to press the keys; default 1.

From 1 to 100.

actions[].scroll_amountinteger

Wheel notches.

From 1 to 1000.

actions[].scroll_directionstring

Scroll direction.

One of up, down, left, right.

actions[].scroll_xnumber

Pixels to scroll right, 100 a wheel notch; a guest that scrolls by parts of a notch gets the part.

actions[].scroll_ynumber

Pixels to scroll down, 100 a wheel notch; a guest that scrolls by parts of a notch gets the part.

actions[].secondsnumber
actions[].start_coordinatearray of numbers

[x, y]

Exactly 2 items.

actions[].start_xnumber
actions[].start_ynumber
actions[].textstring

Text to type, keys to press (ctrl+c), or modifiers held during a click or scroll.

actions[].xnumber
actions[].ynumber
coordinate_spacestring

display: pixels of what the display shows now (default). screenshot: pixels of a scaled screenshot screenshot_width wide. normalized_1000: 0 to 999 across each side.

One of display, screenshot, normalized_1000.

formatstring

Default jpeg.

One of jpeg, png.

frame_idstring

The frameId of the screenshot the coordinates come from, such as 5e0c9b21-1287. A pointer action is refused once the display has shown another size, or the machine started again, since that frame.

max_long_edgeinteger

Longest side of the image in pixels; default 1280.

From 256 to 2576.

screenshot_afterboolean

Return a screenshot taken after the actions.

screenshot_widthinteger

The width of the screenshot the coordinates are in.

From 1 to 8192.

vmstringRequired

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

Output

The result's structured content is an object with these fields.

JSON Schema: /schemas/0/mcp/tools/input_actions/output.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.

Report a problem with this page