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:
{"action": "click", "capture_id": "c_7f3a", "x": 412, "y": 288, "intent": "Click Send"}| Common parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
action | enum, see sections 3–7 | yes | — | |
device | string | no | the session's current device | Must be a device granted to the caller; otherwise device_not_granted |
capture_id | string | for actions with coordinates | — | Must be the id of the latest screenshot on that device; older ones return stale_capture |
intent | string, ≤ 200 characters | no | — | One sentence on the purpose of this step; shown on the desktop banner, in approval texts and in the audit log |
target | string | no | — | 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: allcomposite 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) ornormalized_1000(0–999, for Qwen, Doubao, UI-TARS and similar). - ◆Out-of-range values return
out_of_boundsand 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
| Mark | Meaning |
|---|---|
| Full | Uses the platform's native capability and behaves as a real person's input |
| Partial | Works with stated limits or by emulation; the result carries warnings explaining it |
| Unsupported | Refused with unsupported_on_platform before any injection, never silently ignored |
| Deliberately not | A 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
| Item | Default | Configurable range |
|---|---|---|
| Press to release | 30 ms | 10–500 ms |
| Multi-click interval | 80 ms | 30–400 ms, never above the system double-click time |
| Text chunking | 20 UTF-16 units per chunk, 5 ms between chunks | 0–100 ms |
| Waiting for the screen to settle after an action | up to 2 s; settled after two unchanged frames | 0–10 s |
2. Completeness Measured Against a Person
| What a person can do | Action | Verdict |
|---|---|---|
| Look at the screen, at several screens, lean in for detail | screenshot (including display: all), zoom | Covered |
| Wait for a page to load or an animation to finish | wait (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 buttons | click | Covered |
| Long-press the mouse | click with hold_ms | Covered |
| Hover for a tooltip | move | Covered |
| Drag, rubber-band select, drag a file into a window, drag across displays | drag (composite screenshot coordinates span displays) | Covered |
| Double-click then drag (select by word), press two buttons at once | mouse_down (with count), move, mouse_up | Covered |
| Scroll in four directions, smooth scrolling, Shift/Ctrl plus wheel | scroll (unit, duration_ms, modifiers) | Covered |
| Type (Chinese, emoji, any language) | type | Covered; input methods in section 8.2 |
| Apps that require real keystrokes or the input method (remote desktops, games, terminals) | type with method: keystrokes | Covered, 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_up | Covered |
| Left vs right modifiers, keys by physical position (game WASD) | key names such as shift_left, layout: physical | Covered |
| Touchscreen tap, long press, swipe, pinch | touch (phase 2) | Platform-limited: Windows and Wayland |
| Pen pressure and tilt | pen (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 windows | window | Covered, except on Wayland |
| Switch and open apps | apps, open_app, focus | Covered |
| Switch virtual desktops or Spaces | key (system shortcuts) | Partial: no direct interface |
| Copy and paste text, rich text, images, files | clipboard (format) | Covered |
| Bring one's own files to the computer and take result files away | file_push, file_pull | Covered, limited to the Orquelo exchange folder |
| Click notifications, use the menu bar and tray | screenshot plus click | Covered |
| 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
| Action | Parameters | Notes |
|---|---|---|
screenshot | display: 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 limit | Returns the image, capture_id, width and height, the display list (id, name, primary, scale), cursor position, frontmost app and window |
zoom | capture_id; region: [x, y, w, h] in that screenshot's coordinates | Returns that region at full resolution, for viewing only; later action coordinates still refer to the original screenshot |
wait | ms: 0–30000; or until: stable with timeout_ms: ≤ 30000, default 5000 | until: 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
| Action | Parameters | Notes |
|---|---|---|
click | x, 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 down | Moves, then clicks |
mouse_down | button; 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_up | button; optional x, y | |
move | x, y; duration_ms: 0 (default, jump)–2000 | With a duration, interpolated at 60 Hz |
drag | path: 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 50 | Many apps accept a drop only after a short pause over the target |
scroll | x, 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 0 | dx and dy cannot both be 0 |
5. Keyboard
5.1 Actions
| Action | Parameters | Notes |
|---|---|---|
type | text: 1–4000 characters; method: auto (default), unicode, paste, keystrokes | auto 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 |
key | keys: 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_down | keys: one key or one combo | Stays down until key_up or the release of section 1.4 |
key_up | keys |
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 variantsshift_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 aliascmdorctrl(metaon macOS,ctrlelsewhere). - ◆Letters and digits:
a–z,0–9. Withlayout: char,ctrl+ameans the key that producesain the current layout, so it is also right on AZERTY; withlayout: 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), keypadnum0–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_argumentwith 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)
| Action | Parameters | Notes |
|---|---|---|
touch | gesture: 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 300 | Offered only on devices whose capability table declares a touchscreen |
pen | path: [[x,y,pressure,t_ms],…], pressure 0–1; tilt_x, tilt_y: -90–90; button: none (default), barrel, eraser | Offered only on devices whose capability table declares pen support |
7. Apps, Windows, Clipboard and Files
| Action | Parameters | Notes |
|---|---|---|
apps | running_only: default true | Returns app name, stable identifier (bundle id, AUMID/executable, .desktop id), whether it is frontmost, and its tier |
windows | optional app | Returns window id, title, position and size, display, owning app, whether minimized or full screen |
open_app | app: stable identifier or name; args: optional argument array; file: optional file to open with the app | Subject 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 |
focus | app or window | Brings it forward; when the system refuses, clicks the window and checks the frontmost app |
window | window; 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 |
clipboard | op: 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_tree | optional 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 |
act | element: an id from the latest ui_tree; op: press, focus, set_value (with text), show_menu | Acts through the accessibility interface, without the pointer; click also takes element (its center); an older id is refused as stale_capture |
file_push | artifact: an artifact of the Run; optional name | Writes 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_pull | path: a file in the exchange folder's out, or a path the user approved | Stored 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
| Parameter | macOS | Windows | X11 | Wayland |
|---|---|---|---|---|
screenshot / zoom | Full (ScreenCaptureKit) | Full (DXGI, WGC fallback) | Full (XShm) | Partial: PipeWire streams need cgo; not in the first version |
display: all | Full (per display, then composited) | Full | Full (root window) | Partial: one stream per display, each needing consent |
| Screenshots exclude the overlay and Orquelo windows | Full (filtered by window id) | Full (WDA_EXCLUDEFROMCAPTURE) | Partial: hidden before a capture, restored after | Partial: same |
left/right/middle, hold_ms | Full | Full | Full | Full |
back/forward | Partial: sent as buttons 4 and 5; depends on the app handling them | Full (XBUTTON1/2) | Full (buttons 8, 9) | Full (BTN_SIDE/EXTRA) |
count: 2 | Full (click-state field) | Full (within the system double-click time) | Full (by timing) | Full (by timing) |
count: 3 | Full | Partial: the app decides by timing; some apps do not recognize it | Partial: same | Partial: same |
modifiers (clicks, drags, scrolls) | Full (event flags) | Full (modifiers pressed first) | Full | Full |
move, drag, mouse_down/mouse_up | Full | Full | Full | Full |
| Dragging across displays | Full | Full | Full | Partial: only between displays in the same consented session |
scroll line, vertical and horizontal | Full | Full (WHEEL/HWHEEL, 120 per notch) | Full (buttons 4–7) | Full (discrete scroll) |
scroll pixel | Full (pixel-unit scroll events) | Partial: converted to sub-notch deltas; some apps handle only whole notches | Unsupported: X11 has whole notches only, so it is refused rather than rounded | Full (continuous scroll) |
scroll duration_ms | Partial: sent in steps, without trackpad momentum | Partial: same | Partial: same | Partial: same |
cursor_position | Full | Full | Full | Partial: only the last injected position is known (unverified) |
| Multiple displays, negative origins | Full | Full (needs per-monitor DPI awareness v2) | Full (Xinerama/RandR) | Partial: one stream per display |
| High-DPI scaling | Full (points vs pixels) | Full | Partial: integer scaling only; fractional scaling depends on the desktop environment | Full (logical coordinates) |
8.2 Keyboard
| Parameter | macOS | Windows | X11 | Wayland |
|---|---|---|---|---|
type unicode (including Chinese and emoji) | Full (CGEventKeyboardSetUnicodeString) | Partial: KEYEVENTF_UNICODE works for most apps; games and raw-input apps ignore it | Partial: temporarily maps a spare keycode to the character (as xdotool does); some apps reject it | Unsupported: libei has keycodes only; auto pastes instead |
type paste | Full | Full | Full (the agent keeps clipboard ownership until the target has read it) | Partial: through the portal clipboard, requested before the session starts |
type keystrokes | Full | Full | Full | Full |
unicode with a Chinese or other input method active | Partial: usually bypasses the input method; some apps are still intercepted (unverified) | Partial: same | Partial: depends on IBus/Fcitx | Partial: pasting is unaffected |
| Password and other secure input fields | Partial: while another process has secure input enabled, injection may be dropped; the result is secure_input_active | Full (except the UAC secure desktop) | Full | Full |
| Letters, digits, F1–F12, arrows, punctuation, keypad | Full | Full | Full | Full |
f13–f24 | Partial: F13–F20 | Full | Partial: depends on the keymap | Partial: same |
| Left and right modifiers | Full | Full (right Alt is AltGr on some layouts) | Full | Full |
fn | Partial: only as a modifier flag; pressing it alone has no effect | Unsupported | Unsupported | Unsupported |
meta | Full (Command) | Partial: Win combos trigger system shortcuts and fall under the section 5.3 deny list | Full | Full |
key_down / key_up | Full | Full | Full | Full |
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: physical | Full (virtual keycodes are physical positions) | Full (scan codes) | Full (keycodes are physical positions) | Full |
hold_ms and auto-repeat | Full | Full | Partial: server-side auto-repeat may add characters, so the agent turns auto-repeat off while injecting | Full |
| Volume and playback keys | Partial: sent as system-defined events (unverified) | Full (VK_MEDIA_, VK_VOLUME_) | Partial: needs the desktop environment to bind XF86 keys | Partial: same |
| Brightness keys | Partial (unverified) | Unsupported: no virtual key | Partial: needs a desktop binding | Partial: same |
8.3 Touch and pen
| Parameter | macOS | Windows | X11 | Wayland |
|---|---|---|---|---|
touch (all gestures) | Unsupported: no public touch injection interface | Full (InjectSyntheticPointerInput, 1809 and later; up to 10 contacts) | Unsupported: XTest cannot inject touch | Full (the portal's touchscreen device type, through libei) |
pen pressure, tilt, buttons | Unsupported | Full (PT_PEN synthetic pointer) | Unsupported | Unsupported |
| Trackpad gestures | Unsupported | Unsupported | Unsupported | Unsupported |
8.4 Apps, windows, clipboard and files
| Action or parameter | macOS | Windows | X11 | Wayland |
|---|---|---|---|---|
apps | Full (bundle id) | Full (AUMID or executable path) | Full (.desktop id and WM_CLASS) | Partial: through AT-SPI or desktop-specific interfaces |
windows | Full (titles need Screen Recording) | Full | Full (EWMH) | Partial: wlroots has foreign-toplevel, GNOME has none |
open_app | Full | Full | Full | Full (launched by .desktop file) |
focus | Partial: the system may refuse to bring an app forward; the agent clicks and checks instead | Partial: the foreground lock may only flash the taskbar; handled the same way | Full (_NET_ACTIVE_WINDOW, needs an EWMH window manager) | Unsupported |
window move, resize, minimize, maximize, close | Full (through AX, needs Accessibility) | Full (SetWindowPos, ShowWindow) | Full (EWMH, depends on the window manager) | Unsupported |
window full screen | Full (AXFullScreen) | Partial: no common interface; sends F11 per app or maximizes | Full (_NET_WM_STATE_FULLSCREEN) | Unsupported |
clipboard text | Full (reading may raise a privacy prompt on macOS 26, unverified) | Full | Full | Partial: through the portal |
clipboard html, image | Full | Full (CF_HTML, CF_DIB) | Full (text/html, image/png targets) | Partial: through the portal |
clipboard files | Full (file URLs) | Full (CF_HDROP) | Partial: text/uri-list, depends on the app | Partial: same |
ui_tree / act | Full (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_pull | Full | Full | Full | Full |
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
| Field | Notes |
|---|---|
ok | true |
device | The device name, also at the start of the result text (for example [my-mac]) |
capture_id, image part | With screenshot_after: always, the settled new screenshot after the action |
observed | Frontmost app identifier, window title, cursor position, and any keys and mouse buttons still held down |
timing | Milliseconds 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 |
warnings | Explanations when a partial path was used, for example "triple click emulated by timing", "pasted instead", "held state timed out and was released" |
10. Errors
| Code | When | Input injected? | What the model should do |
|---|---|---|---|
invalid_argument | Missing parameter, out-of-range number, unknown key name, a character the current layout cannot produce | No | Fix the arguments as hinted |
out_of_bounds | Coordinates outside the screenshot | No | Look at the screenshot again |
stale_capture | capture_id is not the latest, or belongs to another device | No | Take a screenshot first |
unsupported_on_platform | The action or parameter value is unsupported on this device | No | Use another way (for example line scrolling, or a shortcut instead of a gesture) |
permission_missing | The agent lacks a system permission | No | Tell the user the fix |
desktop_unavailable | Lock screen, UAC secure desktop, disconnected RDP, fast user switching | No | Tell the user; do not retry |
target_elevated | The Windows target window has higher integrity than the agent | No | Tell the user |
secure_input_active | Another macOS process has secure input enabled | No | Tell the user |
app_not_allowed | App tier, key deny list, or a deliberately-not operation | No | Use another route or ask the user to adjust |
approval_denied | The user denied, or the approval timed out | No | Do not retry |
taken_over | The user took over or pressed the kill key | No | Stop and wait for the user |
device_busy | Another Run holds the device | No | Tell the user |
device_not_granted | The caller is not granted the device | No | Do not retry |
stopped | The 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 released | No | End the task and tell the person where it stands |
sandbox_unavailable | The conversation's sandbox container could not start (docker missing or not running, the image fails) or its agent did not connect within 90 s | No | Tell the operator; the message names the cause |
agent_offline | The agent is not connected; when devices are declared, or an agent connected before, the call first waits up to 10 s for one to reconnect | No | Tell the user to start or wake the computer |
display_changed | Resolution or displays changed after the screenshot | No | Take a screenshot first |
partial_input | The action was interrupted by takeover or disconnection, for example type entered only part of the text | Yes, partly | Check with a screenshot before deciding |
timeout | The agent did not finish in time | Unknown | Check 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.