Computer Usedoc/{zh,en}/design/plugins/computer-use-actions.md

Computer Use Action Contract and Platform Support

中文 · Status: design of 2026-11-29, not implemented (requirement P08). This document measures the computer tool against what a person can do at a computer: it first lists everything

中文 · Status: design of 2026-11-29, not implemented (requirement P08). This document measures the computer tool against what a person can do at a computer: it first lists everything a person can do and how the tool covers it (section 2), then gives every parameter of every action with ranges and defaults (sections 3–7), the support level on each platform (section 8), and results and errors (sections 9–10). Background, competitors and slices are in the Computer Use research. The support levels in section 8 are expectations based on each platform's APIs and have not been tested on any machine; each slice confirms and updates the tables with native tests on the three platforms when it merges.

1. General Rules

1.1 Call shape

The model calls one tool, computer, with one action per call:

json
{"action": "click", "capture_id": "c_7f3a", "x": 412, "y": 288, "intent": "Click Send"}
Common parameterTypeRequiredDefaultNotes
actionenum, see sections 3–7yes—
devicestringnothe session's current deviceMust be a device granted to the caller; otherwise device_not_granted
capture_idstringfor actions with coordinates—Must be the id of the latest screenshot on that device; older ones return stale_capture
intentstring, ≤ 200 charactersno—One sentence on the purpose of this step; shown on the desktop banner, in approval texts and in the audit log
targetstringno—Instead of x, y on a pointing action: a description of what to point at ("the Send button"), which the instance's grounding model (grounding_model) turns into coordinates on the latest screenshot (CU19); without one, target is refused

A second tool, computer_devices (command empty to list, use NAME, or reset [NAME]), lists the devices, switches the conversation's device, and removes the conversation's sandbox container so the next action starts a clean one (S4a: a sandbox device with an image runs as one docker container per conversation, started on the first action that needs it and removed after idle_s, by reset, or when the instance stops). With a sandbox device there is a third tool, computer_file: upload puts one of the run's files (by artifact id) into the conversation's sandbox, download returns a sandbox file as an artifact sent with the answer, at most 32 MiB, written and read as the image's user; it refuses a personal device (kind: personal, a person's own computer; desktop is its former name); /computer and /computer use NAME call it directly. The computer tool is marked as needing images, so a runtime whose model takes no images is not offered it.

The first version accepts no multi-action calls (OpenAI's batched actions[]): each action is approved and observed on its own. To hold something down while doing other things, key_down and mouse_down keep their pressed state across calls.

1.2 Coordinates

  • ◆Coordinates are integers with the origin at the top-left of that screenshot, x to the right and y down. A single-display screenshot has no negative coordinates; a display: all composite uses the top-left of the bounding box of all displays as its origin. Negative origins are converted inside the agent.
  • ◆Instance configuration coordinates: pixels (default, pixels of the downscaled screenshot the model sees) or normalized_1000 (0–999, for Qwen, Doubao, UI-TARS and similar).
  • ◆Out-of-range values return out_of_bounds and inject nothing.
  • ◆There is a single conversion chain: model coordinates → screenshot pixels → OS input space (points on macOS, physical pixels then SendInput absolute units on Windows, root-window pixels on X11, the stream's logical coordinates on Wayland). One place in the plugin and one in the agent, nowhere else.

1.3 Support levels

MarkMeaning
FullUses the platform's native capability and behaves as a real person's input
PartialWorks with stated limits or by emulation; the result carries warnings explaining it
UnsupportedRefused with unsupported_on_platform before any injection, never silently ignored
Deliberately notA person can do it, but the Agent may not for safety; refused with app_not_allowed

On connecting, the agent reports this device's capability table (platform, displays, available keys, available parameter values, whether it has a touchscreen and a pen). The plugin generates the tool description for that device from it, so the model sees only the actions and values this device supports; an unsupported value that still arrives is refused before injection.

1.4 Release guarantee

Pressed mouse buttons, keys, touch contacts and pens are released on every one of: Run end or cancellation, user takeover, lease expiry, action error, and the agent losing its connection to the plugin (the agent releases within 1 second on its own, without the plugin). A pressed state kept across calls lasts at most 30 seconds; it is then released and reported in the next result. No terminal state leaves anything held down.

1.5 Timing defaults

ItemDefaultConfigurable range
Press to release30 ms10–500 ms
Multi-click interval80 ms30–400 ms, never above the system double-click time
Text chunking20 UTF-16 units per chunk, 5 ms between chunks0–100 ms
Waiting for the screen to settle after an actionup to 2 s; settled after two unchanged frames0–10 s

2. Completeness Measured Against a Person

What a person can doActionVerdict
Look at the screen, at several screens, lean in for detailscreenshot (including display: all), zoomCovered
Wait for a page to load or an animation to finishwait (until: stable)Covered
Watch continuous motion (video, an animation in progress)—Not covered: still screenshots only; the phase 3 live view (CU10) is for people, not the model
Single, double and triple click; left, middle, right and side buttonsclickCovered
Long-press the mouseclick with hold_msCovered
Hover for a tooltipmoveCovered
Drag, rubber-band select, drag a file into a window, drag across displaysdrag (composite screenshot coordinates span displays)Covered
Double-click then drag (select by word), press two buttons at oncemouse_down (with count), move, mouse_upCovered
Scroll in four directions, smooth scrolling, Shift/Ctrl plus wheelscroll (unit, duration_ms, modifiers)Covered
Type (Chinese, emoji, any language)typeCovered; input methods in section 8.2
Apps that require real keystrokes or the input method (remote desktops, games, terminals)type with method: keystrokesCovered, for characters the current layout can produce
Shortcuts and key sequences (such as ctrl+x ctrl+s)key (array, interval_ms)Covered
Hold a key while doing something else (Shift to multi-select, Space to pan)key_down, key_upCovered
Left vs right modifiers, keys by physical position (game WASD)key names such as shift_left, layout: physicalCovered
Touchscreen tap, long press, swipe, pinchtouch (phase 2)Platform-limited: Windows and Wayland
Pen pressure and tiltpen (phase 2)Windows only
Trackpad gestures (three-finger swipe, Mission Control, Force Touch)—Unsupported: no platform has a public injection interface; keyboard shortcuts instead
Move, resize, minimize, maximize, close and full-screen windowswindowCovered, except on Wayland
Switch and open appsapps, open_app, focusCovered
Switch virtual desktops or Spaceskey (system shortcuts)Partial: no direct interface
Copy and paste text, rich text, images, filesclipboard (format)Covered
Bring one's own files to the computer and take result files awayfile_push, file_pullCovered, limited to the Orquelo exchange folder
Click notifications, use the menu bar and trayscreenshot plus clickCovered
Hear sound, speak into a microphone, use the camera—Not covered: outside this tool
Unlock the computer, log in, use fingerprint, type an administrator password, click UAC or OS privacy prompts—Deliberately not: the Agent cannot elevate or grant itself permissions
ctrl+alt+delete, log out, shut down, sleep—Deliberately not (section 5.3)
Gamepads, plugging devices in and out—Not covered

3. Observation

ActionParametersNotes
screenshotdisplay: a display id, or all (composite of every display), default the primary display; max_long_edge: 640–1920, default 1280, never above the model's image limitReturns the image, capture_id, width and height, the display list (id, name, primary, scale), cursor position, frontmost app and window
zoomcapture_id; region: [x, y, w, h] in that screenshot's coordinatesReturns that region at full resolution, for viewing only; later action coordinates still refer to the original screenshot
waitms: 0–30000; or until: stable with timeout_ms: ≤ 30000, default 5000until: stable returns after two unchanged frames; the tool cuts a longer ms or timeout_ms to 30000 and its result says so (Feishu #415)
cursor_position—Returns the cursor's coordinates in the current screenshot, or null when outside it

4. Mouse

ActionParametersNotes
clickx, y (or element in phase 2); button: left (default), right, middle, back, forward; count: 1 (default)–3; modifiers: array of modifier keys; hold_ms: 0 (default)–5000, how long to keep the button downMoves, then clicks
mouse_downbutton; optional x, y (moves first when given); count: 1–3, default 1 (2 means "double-click and hold")Stays down until mouse_up or the release of section 1.4
mouse_upbutton; optional x, y
movex, y; duration_ms: 0 (default, jump)–2000With a duration, interpolated at 60 Hz
dragpath: 2–64 points [[x,y],…]; button: default left; modifiers; duration_ms: 50–5000, default 300; hold_ms: pause after pressing before moving, 0–2000, default 100; release_hold_ms: pause at the end before releasing, 0–2000, default 50Many apps accept a drop only after a short pause over the target
scrollx, y; dx, dy: integers, -50–50, positive meaning right and down; unit: line (default) or pixel; modifiers; duration_ms: 0 (default)–2000, smooth scrolling in steps when above 0dx and dy cannot both be 0

5. Keyboard

5.1 Actions

ActionParametersNotes
typetext: 1–4000 characters; method: auto (default), unicode, paste, keystrokesauto prefers Unicode injection, and where the platform has no Unicode path pastes through the clipboard and restores the previous clipboard afterwards. keystrokes presses real keys per character, through the keyboard layout and input method, and accepts only characters the current layout can produce, otherwise invalid_argument. \n presses Enter, \t presses Tab. If Caps Lock is on, keystrokes compensates for case first
keykeys: a combo string such as ctrl+shift+t, or an array run in order (≤ 16 items; an array written as a JSON string is read as the array); a lone symbol such as *, + or × is that character, pressed through the keyboard layout with the shift it needs (-, = and the other punctuation keys keep their names; ctrl++ is the +/= key); repeat: 1–100, default 1; interval_ms: between array items and repeats, 0–2000, default 50; hold_ms: 0–10000, default 0, how long to hold the whole combo; layout: char (default, by character) or physical (by position on the US layout)
key_downkeys: one key or one comboStays down until key_up or the release of section 1.4
key_upkeys

5.2 Key names

  • ◆Modifiers: shift, ctrl, alt (Option on macOS), meta (Command on macOS, Win on Windows, Super on Linux), fn; left and right variants shift_left, shift_right, ctrl_left, ctrl_right, alt_left, alt_right (right Alt is AltGr on some Windows layouts), meta_left, meta_right; the cross-platform alias cmdorctrl (meta on macOS, ctrl elsewhere).
  • ◆Letters and digits: a–z, 0–9. With layout: char, ctrl+a means the key that produces a in the current layout, so it is also right on AZERTY; with layout: physical, it means the key at that position on the US layout, for games.
  • ◆Other keys: enter, tab, space, backspace, delete, escape, insert, home, end, pageup, pagedown, up, down, left, right, f1–f24, capslock, numlock, scrolllock, printscreen, pause, menu, punctuation (minus, equal, comma, period, slash, backslash, semicolon, quote, backquote, bracketleft, bracketright), keypad num0–num9, numadd, numsubtract, nummultiply, numdivide, numdecimal, numenter.
  • ◆Media and system keys: volumeup, volumedown, mute, playpause, next, previous, brightnessup, brightnessdown.
  • ◆Key names are case-insensitive; an unknown key name returns invalid_argument with the closest key name.

5.3 Keys deliberately not run

ctrl+alt+delete (the Windows secure attention sequence, which the system does not accept from injection) and lock, log-out, shut-down and sleep combos (such as meta+l on Windows and ctrl+meta+q on macOS) are refused by policy by default with app_not_allowed; operators may adjust the deny list, but the secure attention sequence can never be injected.

6. Touch and Pen (Phase 2)

ActionParametersNotes
touchgesture: tap, double_tap, long_press, swipe, pinch, rotate, custom; x, y; hold_ms (long_press, default 600); path (swipe); scale (pinch, 0.1–10); angle (rotate, -360–360); contacts (custom: up to 10 contacts, each a [[x,y,t_ms],…] track); duration_ms: 50–5000, default 300Offered only on devices whose capability table declares a touchscreen
penpath: [[x,y,pressure,t_ms],…], pressure 0–1; tilt_x, tilt_y: -90–90; button: none (default), barrel, eraserOffered only on devices whose capability table declares pen support

7. Apps, Windows, Clipboard and Files

ActionParametersNotes
appsrunning_only: default trueReturns app name, stable identifier (bundle id, AUMID/executable, .desktop id), whether it is frontmost, and its tier
windowsoptional appReturns window id, title, position and size, display, owning app, whether minimized or full screen
open_appapp: stable identifier or name; args: optional argument array; file: optional file to open with the appSubject to app tiers and approval; waits up to 3 s until the app or its new window is in front, focusing it (switching workspace on X11) when the window manager left it behind, else warns
focusapp or windowBrings it forward; when the system refuses, clicks the window and checks the frontmost app
windowwindow; op: move, resize, minimize, maximize, restore, close, fullscreen; x, y or width, height (for move, resize)close counts as a risky action and needs approval
clipboardop: get or set; format: text (default), html, image, files; text, html, artifact (image) or paths (files)Needs approval by default; content from get is marked untrusted
ui_treeoptional app (default: the frontmost); count: 10–500 elements (default 150)Lists visible buttons, fields, links, text and menu items with id, role, name, value and a box in the latest screenshot's coordinates; ids last until the next ui_tree
actelement: an id from the latest ui_tree; op: press, focus, set_value (with text), show_menuActs through the accessibility interface, without the pointer; click also takes element (its center); an older id is refused as stale_capture
file_pushartifact: an artifact of the Run; optional nameWrites to the Orquelo exchange folder on the device (~/Orquelo/in, %USERPROFILE%\Orquelo\in) and returns the path on the device, for drag-and-drop or file dialogs
file_pullpath: a file in the exchange folder's out, or a path the user approvedStored as an artifact; paths outside the exchange folder need approval every time

8. Platform Support

Columns: macOS 14+; Windows 10 1903+; X11 (including the Xvfb sandbox); Wayland (phase 2, through the RemoteDesktop portal and libei). Unverified marks inferences from documentation without a reliable primary source.

8.1 Observation and mouse

ParametermacOSWindowsX11Wayland
screenshot / zoomFull (ScreenCaptureKit)Full (DXGI, WGC fallback)Full (XShm)Partial: PipeWire streams need cgo; not in the first version
display: allFull (per display, then composited)FullFull (root window)Partial: one stream per display, each needing consent
Screenshots exclude the overlay and Orquelo windowsFull (filtered by window id)Full (WDA_EXCLUDEFROMCAPTURE)Partial: hidden before a capture, restored afterPartial: same
left/right/middle, hold_msFullFullFullFull
back/forwardPartial: sent as buttons 4 and 5; depends on the app handling themFull (XBUTTON1/2)Full (buttons 8, 9)Full (BTN_SIDE/EXTRA)
count: 2Full (click-state field)Full (within the system double-click time)Full (by timing)Full (by timing)
count: 3FullPartial: the app decides by timing; some apps do not recognize itPartial: samePartial: same
modifiers (clicks, drags, scrolls)Full (event flags)Full (modifiers pressed first)FullFull
move, drag, mouse_down/mouse_upFullFullFullFull
Dragging across displaysFullFullFullPartial: only between displays in the same consented session
scroll line, vertical and horizontalFullFull (WHEEL/HWHEEL, 120 per notch)Full (buttons 4–7)Full (discrete scroll)
scroll pixelFull (pixel-unit scroll events)Partial: converted to sub-notch deltas; some apps handle only whole notchesUnsupported: X11 has whole notches only, so it is refused rather than roundedFull (continuous scroll)
scroll duration_msPartial: sent in steps, without trackpad momentumPartial: samePartial: samePartial: same
cursor_positionFullFullFullPartial: only the last injected position is known (unverified)
Multiple displays, negative originsFullFull (needs per-monitor DPI awareness v2)Full (Xinerama/RandR)Partial: one stream per display
High-DPI scalingFull (points vs pixels)FullPartial: integer scaling only; fractional scaling depends on the desktop environmentFull (logical coordinates)

8.2 Keyboard

ParametermacOSWindowsX11Wayland
type unicode (including Chinese and emoji)Full (CGEventKeyboardSetUnicodeString)Partial: KEYEVENTF_UNICODE works for most apps; games and raw-input apps ignore itPartial: temporarily maps a spare keycode to the character (as xdotool does); some apps reject itUnsupported: libei has keycodes only; auto pastes instead
type pasteFullFullFull (the agent keeps clipboard ownership until the target has read it)Partial: through the portal clipboard, requested before the session starts
type keystrokesFullFullFullFull
unicode with a Chinese or other input method activePartial: usually bypasses the input method; some apps are still intercepted (unverified)Partial: samePartial: depends on IBus/FcitxPartial: pasting is unaffected
Password and other secure input fieldsPartial: while another process has secure input enabled, injection may be dropped; the result is secure_input_activeFull (except the UAC secure desktop)FullFull
Letters, digits, F1–F12, arrows, punctuation, keypadFullFullFullFull
f13–f24Partial: F13–F20FullPartial: depends on the keymapPartial: same
Left and right modifiersFullFull (right Alt is AltGr on some layouts)FullFull
fnPartial: only as a modifier flag; pressing it alone has no effectUnsupportedUnsupportedUnsupported
metaFull (Command)Partial: Win combos trigger system shortcuts and fall under the section 5.3 deny listFullFull
key_down / key_upFullFullFullFull
layout: char (AZERTY and others)Full (keycode looked up in the current input source)Full (VkKeyScanEx)Full (from the keymap)Full (from the keymap sent by EIS)
layout: physicalFull (virtual keycodes are physical positions)Full (scan codes)Full (keycodes are physical positions)Full
hold_ms and auto-repeatFullFullPartial: server-side auto-repeat may add characters, so the agent turns auto-repeat off while injectingFull
Volume and playback keysPartial: sent as system-defined events (unverified)Full (VK_MEDIA_, VK_VOLUME_)Partial: needs the desktop environment to bind XF86 keysPartial: same
Brightness keysPartial (unverified)Unsupported: no virtual keyPartial: needs a desktop bindingPartial: same

8.3 Touch and pen

ParametermacOSWindowsX11Wayland
touch (all gestures)Unsupported: no public touch injection interfaceFull (InjectSyntheticPointerInput, 1809 and later; up to 10 contacts)Unsupported: XTest cannot inject touchFull (the portal's touchscreen device type, through libei)
pen pressure, tilt, buttonsUnsupportedFull (PT_PEN synthetic pointer)UnsupportedUnsupported
Trackpad gesturesUnsupportedUnsupportedUnsupportedUnsupported

8.4 Apps, windows, clipboard and files

Action or parametermacOSWindowsX11Wayland
appsFull (bundle id)Full (AUMID or executable path)Full (.desktop id and WM_CLASS)Partial: through AT-SPI or desktop-specific interfaces
windowsFull (titles need Screen Recording)FullFull (EWMH)Partial: wlroots has foreign-toplevel, GNOME has none
open_appFullFullFullFull (launched by .desktop file)
focusPartial: the system may refuse to bring an app forward; the agent clicks and checks insteadPartial: the foreground lock may only flash the taskbar; handled the same wayFull (_NET_ACTIVE_WINDOW, needs an EWMH window manager)Unsupported
window move, resize, minimize, maximize, closeFull (through AX, needs Accessibility)Full (SetWindowPos, ShowWindow)Full (EWMH, depends on the window manager)Unsupported
window full screenFull (AXFullScreen)Partial: no common interface; sends F11 per app or maximizesFull (_NET_WM_STATE_FULLSCREEN)Unsupported
clipboard textFull (reading may raise a privacy prompt on macOS 26, unverified)FullFullPartial: through the portal
clipboard html, imageFullFull (CF_HTML, CF_DIB)Full (text/html, image/png targets)Partial: through the portal
clipboard filesFull (file URLs)Full (CF_HDROP)Partial: text/uri-list, depends on the appPartial: same
ui_tree / actFull (AX; Chrome and Electron asked to expose web content)Full (UI Automation: Invoke, Value, ExpandCollapse)Full (AT-SPI2; needs at-spi2-core, apps started before the bus show nothing)Partial: AT-SPI2 works, but positions are not given on Wayland
file_push / file_pullFullFullFullFull

The phase 2 accessibility actions (ui_tree, act) are added when CU7 is designed: macOS AX and Windows UIA are expected to be full, AT-SPI partial (apps must enable accessibility, Chromium-based apps need a launch flag, and coordinates are unreliable on Wayland).

9. Results

FieldNotes
oktrue
deviceThe device name, also at the start of the result text (for example [my-mac])
capture_id, image partWith screenshot_after: always, the settled new screenshot after the action
observedFrontmost app identifier, window title, cursor position, and any keys and mouse buttons still held down
timingMilliseconds the agent spent injecting, waiting for a still screen and capturing, and in all; the tool result adds the round trip, for measuring response time
warningsExplanations when a partial path was used, for example "triple click emulated by timing", "pasted instead", "held state timed out and was released"

10. Errors

CodeWhenInput injected?What the model should do
invalid_argumentMissing parameter, out-of-range number, unknown key name, a character the current layout cannot produceNoFix the arguments as hinted
out_of_boundsCoordinates outside the screenshotNoLook at the screenshot again
stale_capturecapture_id is not the latest, or belongs to another deviceNoTake a screenshot first
unsupported_on_platformThe action or parameter value is unsupported on this deviceNoUse another way (for example line scrolling, or a shortcut instead of a gesture)
permission_missingThe agent lacks a system permissionNoTell the user the fix
desktop_unavailableLock screen, UAC secure desktop, disconnected RDP, fast user switchingNoTell the user; do not retry
target_elevatedThe Windows target window has higher integrity than the agentNoTell the user
secure_input_activeAnother macOS process has secure input enabledNoTell the user
app_not_allowedApp tier, key deny list, or a deliberately-not operationNoUse another route or ask the user to adjust
approval_deniedThe user denied, or the approval timed outNoDo not retry
taken_overThe user took over or pressed the kill keyNoStop and wait for the user
device_busyAnother Run holds the deviceNoTell the user
device_not_grantedThe caller is not granted the deviceNoDo not retry
stoppedThe person pressed the kill key or the banner's Stop button on their own computer; every later action of this run answers it, and the device's lease is releasedNoEnd the task and tell the person where it stands
sandbox_unavailableThe conversation's sandbox container could not start (docker missing or not running, the image fails) or its agent did not connect within 90 sNoTell the operator; the message names the cause
agent_offlineThe agent is not connected; when devices are declared, or an agent connected before, the call first waits up to 10 s for one to reconnectNoTell the user to start or wake the computer
display_changedResolution or displays changed after the screenshotNoTake a screenshot first
partial_inputThe action was interrupted by takeover or disconnection, for example type entered only part of the textYes, partlyCheck with a screenshot before deciding
timeoutThe agent did not finish in timeUnknownCheck with a screenshot; do not retry blindly

Every error except partial_input and timeout guarantees that no input was injected. Error messages go through pkg/i18n; the codes themselves never change with the language.