computer.act and screen.snapshot, whose result must include a displayFrameId. The tool captures a screenshot as its reference frame, then drives the pointer and keyboard through computer.act. The action set follows the core Anthropic computer-use actions; optional computer_20251124 zoom is not exposed. A vision-capable model drives it through the built-in computer agent tool.
The agent emits one uniform command, computer.act; it cannot tell how a node fulfills it. The bundled macOS app handles the command in-process with embedded Peekaboo services plus narrow CoreGraphics primitives (correct TCC permissions, no extra process). Windows and Linux can use the optional, experimental cua-computer plugin, which calls the packaged CUA Driver SDK directly. Both fulfillers use the same durable local enablement and pairing policy.
Requirements
- A paired, connected node advertising both
computer.actandscreen.snapshot, withscreen.snapshotreturningdisplayFrameId. - macOS fulfiller: app setting Allow Computer Control enabled. It defaults on; an explicit off choice stays off.
- macOS fulfiller: Accessibility and Event Posting access granted to OpenClaw (for pointer/keyboard injection), plus Screen Recording permission (for
screen.snapshot). - Windows/Linux fulfiller: bundled
cua-computerplugin enabled. Its package includes the pinned CUA Driver SDK 0.14.1 runtime; nocua-driverexecutable, daemon, or MCP server is configured. - The pairing update that includes
computer.actapproved on the gateway. - A vision-capable agent model.
- Tool policy that exposes
computer. The defaultcodingprofile does not. Addcomputertotools.alsoAllow; sandboxed agents also need it intools.sandbox.tools.alsoAllow.
The computer agent tool
The built-in computer tool takes one action per call. Coordinates are non-negative integer pixels in the most recent screenshot; the node maps them to display points. Coordinate actions must echo the screenshot result’s frameId, and an explicit screenIndex must match that frame. OpenClaw also carries a node-issued display identity from the screenshot into the action, so a display reconnect or geometry change fails closed instead of silently retargeting the same index. These checks reject guessed tokens and tokens from another delivered frame or display. A token is not a freshness guarantee: apps can change pixels on the same display after capture, so take a new screenshot whenever the scene may have changed.
- Reads:
screenshot. - Pointer:
left_click,right_click,middle_click,double_click,triple_click,mouse_move,left_click_drag(withstartCoordinate),left_mouse_down,left_mouse_up. - Scroll:
scrollwithscrollDirection(up|down|left|right) andscrollAmount(wheel ticks). - Keyboard:
type(text),key(combo such ascmd+shift+torReturn),hold_key(textcombo held fordurationseconds). - Pacing:
wait(durationseconds).
text field on click and scroll actions (shift, ctrl, alt, cmd). After an input action the tool returns a fresh screenshot so the model can observe the result. If more than one computer-capable node is connected, pass node explicitly.
Screenshots are kept model-only: they are never auto-delivered to the chat channel. Treat all on-screen content as untrusted input; the tool warns the model not to follow on-screen instructions that conflict with the user’s request.
Windows and Linux (experimental, via CUA Driver SDK)
The bundledcua-computer plugin provides an experimental fulfiller for Windows and Linux node hosts. It is disabled by default and uses the pinned CUA Driver SDK 0.14.1 contract directly:
-
Enable the plugin:
-
Start
openclaw node runfrom the interactive desktop session. The plugin creates its configured SDK runtime lazily, then creates one OpenClaw-owned trusted session for the node-host command execution. It closes that session and shuts down the runtime when the command host stops or restarts.
hold_key, left_mouse_down, and left_mouse_up are unavailable because the CUA Driver SDK has no desktop-scope held-input contract. Modifier-held clicks, scrolling, and dragging are rejected because the typed desktop methods do not accept modifiers. The key action accepts named keys, letters, and modifier combos (for example cmd+c or Return); digit and punctuation keys are rejected because the driver drops their layout-dependent shift state, so send that text through the type action instead. Cancellation is passed to the SDK for each node invocation.
The plugin calls CuaDriver.createConfigured, never bare create(). Its authorization ceiling, trusted session identifier, TTLs, and desktop scope are fixed by OpenClaw; model-facing screen.snapshot and computer.act inputs cannot select a session or widen that authority. Because the driver reports no stable display identity, frame authorization binds to the trusted session generation plus live primary-display geometry. A new session invalidates outstanding frames, but a same-geometry primary-display substitution inside one session cannot be detected; prefer a stable single-display session for this fulfiller.
This is a hard replacement of the former 0.10 daemon/MCP integration. OpenClaw does not spawn a CUA process, proxy an MCP client, or fall back to another CUA runtime.
Troubleshooting
Thecua-computer fulfiller surfaces typed error codes in the tool result and node logs. Common ones:
The computer.act node command
computer.act is the single node command the tool routes input through (node.invoke with command: "computer.act"). It is:
- Locally enabled: the node advertises it only while Computer Control is enabled. The gateway can approve that advertised surface once at pairing.
- Capability-based: the tool requires a connected node to advertise both
computer.actandscreen.snapshot. The bundled macOS app and the opt-in experimentalcua-computerplugin fulfill the same command pair.
screen.snapshot; there is no second capture path. See Camera and screen nodes for the shared capture command.
Authorization
-
Enable the platform fulfiller: on macOS, Settings → Allow Computer Control starts enabled, then grant Accessibility and Screen Recording under Settings → Permissions; on Windows/Linux, follow the experimental
cua-computersetup above. - Approve the pairing update on the gateway (a new command forces re-pairing).
-
Expose the tool to the vision-capable agent. For the default
codingprofile:
computer.act is durably available while the node continues to advertise it. There is no lease, expiry, or arm/disarm command. Disabling Computer Control locally removes the advertised command and the node rechecks the toggle at invocation time.
On macOS, default-on means a paired gateway can drive pointer and keyboard input as soon as the required macOS grants exist. There is no per-action confirmation. Turn off Allow Computer Control before pairing, or at any later time, to stop advertising and accepting computer.act.
gateway.nodes.commands.deny remains an explicit global revocation and always wins. computer.act does not need a gateway.nodes.commands.allow entry. An authenticated operator with operator.write can invoke an enabled, paired command through node.invoke; there is no per-action admin check.
Safety
- Every layer (tool policy, gateway command policy, pairing, node-app setting, and platform permissions) must agree. For the current macOS fulfiller, that includes Allow Computer Control, Accessibility, and Screen Recording. Actions execute while those durable controls remain enabled; there is no per-action confirmation.
- The macOS fulfiller posts text one grapheme at a time, so cancellation, disconnect, pause, disable, or endpoint replacement stops it before the next grapheme. The experimental CUA Driver fulfiller passes node cancellation to the SDK for each call.
- Screenshots are model-only and never auto-sent to chat (issue #44759).
- Treat screen content as untrusted; it can carry prompt injection.
macOS permission troubleshooting
The Computer Control status in Settings → General → Capabilities checks Accessibility, Event Posting, and Screen Recording separately. Screen capture can work while input remains denied because macOS stores those grants in separate TCC buckets. If the status says Accessibility grant may be stale, OpenClaw may already appear enabled under System Settings → Privacy & Security → Accessibility even though macOS rejects it. This happens when the Accessibility entry is pinned to an older app build. Select OpenClaw in that list, remove it with −, then re-add/Applications/OpenClaw.app. Quit and reopen OpenClaw after changing the grant because macOS can cache Accessibility trust for the lifetime of the process.
Relationship to other desktop-control paths
This is the agent-driven path. See Peekaboo bridge for how it relates to the PeekabooBridge host, Codex Computer Use, and the directcua-driver MCP.