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 objectsRequiredA 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[].actionstringRequiredWhat 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[].buttonstringDefault left. back and forward work on Windows machines only.
One of
left,right,wheel,middle,back,forward.actions[].clear_before_typingbooleanSelect and delete first.
actions[].coordinatearray of numbers[x, y]
Exactly 2 items.
actions[].destination_xnumberactions[].destination_ynumberactions[].directionstringScroll direction.
One of
up,down,left,right.actions[].durationnumberSeconds, at most 300.
actions[].end_xnumberactions[].end_ynumberactions[].keystringOne key.
actions[].keysarray of stringsKeys pressed together, or modifiers held during a pointer action.
actions[].magnitudenumberactions[].magnitude_in_pixelsnumberactions[].patharray of objectsactions[].path[].xnumberRequiredactions[].path[].ynumberRequiredactions[].press_enterbooleanPress Return after typing.
actions[].regionarray of numbers[x0, y0, x1, y1], top-left and bottom-right corners in coordinate_space.
Exactly 4 items.
actions[].repeatintegerTimes to press the keys; default 1.
From 1 to 100.
actions[].scroll_amountintegerWheel notches.
From 1 to 1000.
actions[].scroll_directionstringScroll direction.
One of
up,down,left,right.actions[].scroll_xnumberPixels to scroll right, 100 a wheel notch; a guest that scrolls by parts of a notch gets the part.
actions[].scroll_ynumberPixels to scroll down, 100 a wheel notch; a guest that scrolls by parts of a notch gets the part.
actions[].secondsnumberactions[].start_coordinatearray of numbers[x, y]
Exactly 2 items.
actions[].start_xnumberactions[].start_ynumberactions[].textstringText to type, keys to press (ctrl+c), or modifiers held during a click or scroll.
actions[].xnumberactions[].ynumbercoordinate_spacestringdisplay: 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.formatstringDefault jpeg.
One of
jpeg,png.frame_idstringThe 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_edgeintegerLongest side of the image in pixels; default 1280.
From 256 to 2576.
screenshot_afterbooleanReturn a screenshot taken after the actions.
screenshot_widthintegerThe width of the screenshot the coordinates are in.
From 1 to 8192.
vmstringRequiredThe 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
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.