From 8810997301d50eb1794504383fd564d0ac46a965 Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Wed, 1 Jul 2026 00:39:47 -0700 Subject: [PATCH 01/11] =?UTF-8?q?docs(cua-driver):=20fix=20macOS=20audit?= =?UTF-8?q?=20findings=20=E2=80=94=2042=20not=20391,=200.7.0,=20permission?= =?UTF-8?q?s=20status?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Iteration 1 live-audit fixes (verified against cua-driver 0.7.0): - tutorial: result was reported as 391, contradicting its own step 4 (42) - install: --version/doctor showed 0.5.x; live is 0.7.0 - install: pretty ✅ TCC output belongs to 'permissions status', not 'check_permissions' (which returns JSON) Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Th8TxivbUjS6NUT2cKVo6s --- DOCS_AUDIT.md | 77 +++++++++++++++++++ .../docs/how-to-guides/driver/install.mdx | 6 +- .../docs/tutorials/drive-your-first-app.mdx | 2 +- 3 files changed, 81 insertions(+), 4 deletions(-) create mode 100644 DOCS_AUDIT.md diff --git a/DOCS_AUDIT.md b/DOCS_AUDIT.md new file mode 100644 index 00000000000..0fdf5b2f141 --- /dev/null +++ b/DOCS_AUDIT.md @@ -0,0 +1,77 @@ +# cua-driver docs audit (macOS / Linux / Windows) + +Autonomous audit started 2026-07-01. Method: walk the docs as a human would — +install → tutorial → how-to guides → recipes → reference — running every +documented command against live cua-driver 0.7.0, on each platform, and record +mistakes, things that don't make sense, and inconsistencies. Fixes land on the +`docs/driver-audit-fixes` branch as they're confirmed. + +Ground truth: cua-driver 0.7.0, 38 MCP tools. + +## Status + +| Platform | Install | Tutorial | How-to | Recipes | Reference | +|---|---|---|---|---|---| +| macOS (local) | ✅ audited | ✅ audited | — | — | in progress | +| Linux (Azure) | — | — | — | — | — | +| Windows (Azure) | — | — | — | — | — | + +Severity: **[blocker]** wrong + blocks a user · **[confusing]** works but +misleads · **[inconsistent]** disagrees with another doc or the CLI · +**[polish]** small. + +## Findings — macOS (iteration 1, live v0.7.0) + +1. **[blocker] tutorials/drive-your-first-app.mdx §5** — said "The agent reports + 391" while step 4 (and 6×7) is 42; live drive read 42. Self-contradiction. + → FIXED (391 → 42). +2. **[inconsistent] how-to-guides/driver/install.mdx §Verify** — `--version` and + `doctor` printed `0.5.x`; live is 0.7.0. → FIXED (both → 0.7.0). +3. **[inconsistent] how-to-guides/driver/install.mdx §Grant TCC** — the ✅ + "Accessibility/Screen Recording: granted" pretty output was shown under + `cua-driver check_permissions`, but that command returns JSON; the pretty + format is `cua-driver permissions status`. → FIXED (command → `permissions + status`). +4. **[inconsistent] tutorials/drive-your-first-app.mdx §3 (Claude Code tab)** — + the live registration helper emits `claude mcp add-json --scope user … {"args":["mcp"]…}` + (adds `--scope user`, omits `--claude-code-computer-use-compat`). The flag is + intentionally documented in connect-your-agent.mdx (kept for future + compat-gated tools), so tutorial + that guide agree with each other but drift + from the live helper. → DEFERRED: needs a maintainer decision on whether the + helper or the docs are canonical; do not strip the flag blindly. Verify + whether Claude Code now requires `--scope user`. +5. **[polish] install.mdx §Verify** — the `doctor` sample elides real lines + (argv exe/resolved, telemetry, legacy LaunchAgent, TCC+cdhash) and shows an + `.local/bin` install dir; a bundle install reports `/Applications/CuaDriver.app/…`. + Illustrative, low impact. → note; consider marking the sample abbreviated. +6. **[polish] tutorials §4** — element_index values in the sample transcript + don't match a live snapshot (indices vary per snapshot). Consider a + "indices vary" note. + +### Omissions a first-time user hits (macOS) +- Tutorial never starts the daemon (`open -n -g -a CuaDriver --args serve`); + install.mdx does. The step-4 element_index drive silently depends on a + persistent daemon. → add a one-line callout. +- Every button `click` returns `effect: unverifiable, verified: false` (a press + has no AX post-condition); correctness only appears on the re-snapshot. Raw + CLI watchers may think clicks failed. → worth a sentence. +- Driving needs Screen Recording; a user who dismisses that TCC dialog hits + failures the tutorial never mentions. + +### Verified working verbatim (coverage) +`--version`, `doctor` (all [ok]), `permissions status` (+`--json`), +`check-update` (+`--json`, on-latest nulls correct), `status`, `call list_apps`, +`list-tools`, and the full drive loop: start_session → launch_app Calculator +(backgrounded, `self_activation_suppressed`) → get_window_state (full AX tree) → +5× click by element_index → re-snapshot → read 42. No-foreground contract holds. + +## Fixes applied +- tutorials/drive-your-first-app.mdx: 391 → 42. +- how-to-guides/driver/install.mdx: version 0.5.x → 0.7.0 (×2); TCC check + command `check_permissions` → `permissions status` to match its shown output. + +## Open / deferred +- Finding 4 (mcp-config helper vs docs) — needs maintainer decision. +- Findings 5, 6 and the three omissions — pending the next fix pass. +- Consistency audit (agent B) — in progress. +- Linux + Windows (Azure) — not started. diff --git a/docs/content/docs/how-to-guides/driver/install.mdx b/docs/content/docs/how-to-guides/driver/install.mdx index 2efcbcc17c6..acbe849d09c 100644 --- a/docs/content/docs/how-to-guides/driver/install.mdx +++ b/docs/content/docs/how-to-guides/driver/install.mdx @@ -58,14 +58,14 @@ X11 is fully supported. Native Wayland input and capture remain opt-in with `CUA ```bash cua-driver --version -# cua-driver 0.5.x +# cua-driver 0.7.0 ``` For a full environment and install report: ```bash cua-driver doctor -# [ok ] binary: cua-driver 0.5.x (aarch64-macos) +# [ok ] binary: cua-driver 0.7.0 (aarch64-macos) # [ok ] install dir: /Users/you/.local/bin/cua-driver # [ok ] home dir: /Users/you/.cua-driver (3 release dirs cached) # ... @@ -98,7 +98,7 @@ cua-driver check_permissions macOS opens the Accessibility and Screen Recording prompts. Grant both permissions, then run the check again: ```bash -cua-driver check_permissions +cua-driver permissions status # ✅ Accessibility: granted. # ✅ Screen Recording: granted. ``` diff --git a/docs/content/docs/tutorials/drive-your-first-app.mdx b/docs/content/docs/tutorials/drive-your-first-app.mdx index 22a0b2ad463..9e7bd1aa595 100644 --- a/docs/content/docs/tutorials/drive-your-first-app.mdx +++ b/docs/content/docs/tutorials/drive-your-first-app.mdx @@ -186,7 +186,7 @@ To explore capture and dispatch modes, see [Choose a capture and dispatch mode]( ## 5. Confirm what happened -The agent reports 391. Cua Driver kept the calculator in the background the whole time. It never stole your keyboard focus and never moved your cursor. That is the *no-foreground contract*: the agent drives the app while you keep working. See [The no-foreground contract](/explanation/the-no-foreground-contract). +The agent reports 42. Cua Driver kept the calculator in the background the whole time. It never stole your keyboard focus and never moved your cursor. That is the *no-foreground contract*: the agent drives the app while you keep working. See [The no-foreground contract](/explanation/the-no-foreground-contract). ## What you did From 0e524f68f6c67b1dc457381cdb36935d292d698d Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Wed, 1 Jul 2026 00:43:17 -0700 Subject: [PATCH 02/11] =?UTF-8?q?docs(cua-driver):=20fix=20consistency=20f?= =?UTF-8?q?indings=20=E2=80=94=20phantom=20tools,=20anchors,=20axes,=20mcp?= =?UTF-8?q?-config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Iteration 1 cross-doc consistency fixes (verified vs live cua-driver 0.7.0): - remove phantom 'screenshot' tool refs (no such tool among the 38) - fix action-response-shape anchor to mcp-tool-notes - explanation index: three axes -> four (adds the action-rung axis) - demonstrations: video is not recorded 'by default' - connect-your-agent: Pi examples need 'call'; mcp-config claude example matches live output (--scope user, no compat flag) Source/generator-level findings (type_text_chars, manifest, flag docs) recorded in DOCS_AUDIT.md for a coordinated fix with cua#2088. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Th8TxivbUjS6NUT2cKVo6s --- DOCS_AUDIT.md | 58 +++++++++++++++++-- .../capture-and-dispatch-modalities.mdx | 4 +- ...demonstrations-skills-and-trajectories.mdx | 2 +- docs/content/docs/explanation/index.mdx | 2 +- .../driver/connect-your-agent.mdx | 8 +-- .../docs/how-to-guides/driver/windows-ssh.mdx | 2 +- 6 files changed, 63 insertions(+), 13 deletions(-) diff --git a/DOCS_AUDIT.md b/DOCS_AUDIT.md index 0fdf5b2f141..1403a46884b 100644 --- a/DOCS_AUDIT.md +++ b/DOCS_AUDIT.md @@ -65,13 +65,63 @@ misleads · **[inconsistent]** disagrees with another doc or the CLI · (backgrounded, `self_activation_suppressed`) → get_window_state (full AX tree) → 5× click by element_index → re-snapshot → read 42. No-foreground contract holds. +## Findings — cross-doc consistency (iteration 1, vs live CLI) + +Tool inventory fully in sync (all 38 documented, none missing/extra); no broken +internal *page* links. Issues: + +7. **[confusing] mcp-tools.mdx §set_value** — references `type_text_chars`, which + is not one of the 38 tools; the real tool is `type_text`. Copied verbatim from + the binary's `describe set_value`, so the bug is UPSTREAM (Rust tool + description). → SOURCE FIX needed; mcp-tools.mdx is auto-generated. +8. **[confusing] capture-and-dispatch-modalities.mdx / windows-ssh.mdx** — phantom + `screenshot` tool (no such tool; connect-your-agent correctly says so). + → FIXED (removed both mentions). +9. **[confusing] capture-and-dispatch-modalities.mdx:63** — anchor pointed at + `mcp-tools#action-response-shape`; that section is in `mcp-tool-notes`. + → FIXED. +10. **[inconsistent] explanation/index.mdx** — "three axes" vs the page's "four". + → FIXED (three → four, added the rung axis). +11. **[inconsistent] demonstrations…mdx** — line 30 "video off by default" vs + table "recording.mp4 by default"; live confirms off. → FIXED (table). +12. **[inconsistent] connect-your-agent.mdx Pi section** — `cua-driver list_apps` + / `cua-driver click …` should be `cua-driver call …`. → FIXED. +13. **[inconsistent] connect-your-agent.mdx mcp-config claude example** — stale; + live emits `--scope user` and omits `--claude-code-computer-use-compat`. + → FIXED (example + explanation; corroborates macOS finding 4). +14. **[inconsistent] cli-reference.mdx** — missing `manifest` subcommand; root + cause `dump-docs` omits it. → GENERATOR FIX needed. +15. **[inconsistent] cli-reference.mdx §mcp flag** — description overstates the + now-inert `--claude-code-computer-use-compat`. → GENERATOR/SOURCE FIX. +16. **[polish] cli-reference / personalize-cursor** — serve/mcp cursor + pip + flags undocumented (`--no-overlay`, `--cursor-id/icon/shape/palette`, + `--experimental-pip*`); `dump-docs` reports `serve args: []`. → GENERATOR FIX. +17. **[inconsistent] choose-a-modality.mdx title vs inbound link text** — real + title "Choose an Action Rung and Dispatch Mode"; several docs link it as + "Choose a capture and dispatch mode". → pending (multi-file link-text unify). +18. **[polish] stale sample versions** — update.mdx (0.3.x), install/recipes + (0.5.x), windows-ssh (0.2.7 floor) vs live 0.7.0. → pending. +19. **[polish] no-foreground-contract page** — file title "Background + Computer-Use" but linked under 2–3 different names. → pending. + ## Fixes applied - tutorials/drive-your-first-app.mdx: 391 → 42. - how-to-guides/driver/install.mdx: version 0.5.x → 0.7.0 (×2); TCC check - command `check_permissions` → `permissions status` to match its shown output. + command `check_permissions` → `permissions status`. +- capture-and-dispatch-modalities.mdx: fixed the action-response-shape anchor + (→ mcp-tool-notes); removed the phantom `screenshot`-tool parenthetical. +- explanation/index.mdx: three axes → four (added the action-rung axis). +- demonstrations-skills-and-trajectories.mdx: video is not recorded "by default". +- windows-ssh.mdx: removed `screenshot` from the sample tool list. +- connect-your-agent.mdx: Pi examples use `cua-driver call …`; mcp-config claude + example updated to live output (`--scope user`, no compat flag) + explanation. ## Open / deferred -- Finding 4 (mcp-config helper vs docs) — needs maintainer decision. -- Findings 5, 6 and the three omissions — pending the next fix pass. -- Consistency audit (agent B) — in progress. +- SOURCE/GENERATOR fixes (need cua-driver Rust / dump-docs changes, since the + reference MDX is auto-generated): #7 `type_text_chars`→`type_text` in set_value + description; #14 add `manifest` to dump-docs; #15 compat-flag description; #16 + undocumented serve/mcp flags. Coordinate with cua#2088 (reference auto-gen). +- Hand-doc polish pending: #17 link-text unify, #18 sample-version refresh, #19 + page-name drift; plus macOS omissions (daemon-start callout, unverifiable + clicks, screen-recording dependency). - Linux + Windows (Azure) — not started. diff --git a/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx b/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx index ea76bf6f97d..7f47ec7b4ce 100644 --- a/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx +++ b/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx @@ -17,7 +17,7 @@ The accessibility tree is the ground truth for *what is clickable* — roles, la > **Perf opt-out — `include_screenshot`.** `include_screenshot` (boolean, default `true`) is the one knob, and it is a **performance** knob, not a modality choice. The default returns both. Pass `include_screenshot: false` to skip the screen grab and get the tree only — the cheap path when you are re-indexing before an element ax action and don't need fresh pixels. The `ax`-versus-`px` decision still lives at action time, not here. -> **`capture_mode` is deprecated and ignored.** It is still *accepted* on `get_window_state` so old callers don't error, but it has **no effect** — both the tree and the screenshot come back regardless of what you pass. The old `ax` / `vision` / `som` / `screenshot` values all decode (`som` mapped to `ax`, `screenshot` to `vision`) but none changes what is captured. There is no capture-mode choice anymore; perception is always both. (The separately named `screenshot` tool — raw PNG, no AX walk — is unrelated.) +> **`capture_mode` is deprecated and ignored.** It is still *accepted* on `get_window_state` so old callers don't error, but it has **no effect** — both the tree and the screenshot come back regardless of what you pass. The old `ax` / `vision` / `som` / `screenshot` values all decode (`som` mapped to `ax`, `screenshot` to `vision`) but none changes what is captured. There is no capture-mode choice anymore; perception is always both. ### 2. Action rung — how the target is addressed @@ -60,7 +60,7 @@ Dispatch success is not the same thing as application state change. The driver c `effect` is the confidence signal that separates those cases. `"confirmed"` means the driver verified the result through AX read-back. `"unverifiable"` means the dispatch path ran, but the driver cannot prove the application applied it. `"suspected_noop"` means an AX action dispatched but almost certainly did not change the target. Callers should treat `effect`, not the transport-level success status, as the action outcome. -`escalation` is the machine-readable climb-the-ladder hint. When present, it tells the caller which surface to try next: `"px"` for acting off the screenshot, `"foreground"` for explicitly fronting the target, or `"page"` for the browser-tab DOM path through the `page` tool. See [Choose an action rung and dispatch mode](/how-to-guides/driver/choose-a-modality) for the procedural ladder and [MCP tools](/reference/cua-driver/mcp-tools#action-response-shape) for the field table. +`escalation` is the machine-readable climb-the-ladder hint. When present, it tells the caller which surface to try next: `"px"` for acting off the screenshot, `"foreground"` for explicitly fronting the target, or `"page"` for the browser-tab DOM path through the `page` tool. See [Choose an action rung and dispatch mode](/how-to-guides/driver/choose-a-modality) for the procedural ladder and [MCP tool notes](/reference/cua-driver/mcp-tool-notes#action-response-shape) for the field table. ### When the tree lies diff --git a/docs/content/docs/explanation/demonstrations-skills-and-trajectories.mdx b/docs/content/docs/explanation/demonstrations-skills-and-trajectories.mdx index cc414888a56..0d74b642d16 100644 --- a/docs/content/docs/explanation/demonstrations-skills-and-trajectories.mdx +++ b/docs/content/docs/explanation/demonstrations-skills-and-trajectories.mdx @@ -54,5 +54,5 @@ The systems differ by the actor recorded and the layer where the recording happe | System | Records | Artifact | Replay means | Use for | | --- | --- | --- | --- | --- | | Demonstration skills | Human demo over VNC | `~/.cua/skills//SKILL.md` plus `trajectory/` assets | Watch the MP4 with `cua skills replay`, or reuse by giving `SKILL.md` to a `ComputerAgent` as context | Teaching a reusable GUI workflow from one human demonstration | -| Cua Driver recording | Agent action-tool calls | `turn-NNNNN` folders under `output_dir`, plus `recording.mp4` by default | Re-invoke recorded driver tools in order with `replay_trajectory` | Demos, regression diffs, and tool-level data collection | +| Cua Driver recording | Agent action-tool calls | `turn-NNNNN` folders under `output_dir`, plus `recording.mp4` when `record_video` is set | Re-invoke recorded driver tools in order with `replay_trajectory` | Demos, regression diffs, and tool-level data collection | | Agent trajectories | Agent loop state, actions, next states, messages, model outputs, computer calls, outputs, and screenshots | Saved trajectory session files | Inspect sessions with `cua trajectory view` in the trajectory viewer | Debugging agent behavior and collecting training or eval data | diff --git a/docs/content/docs/explanation/index.mdx b/docs/content/docs/explanation/index.mdx index ad8c52de145..3c0e03a24e3 100644 --- a/docs/content/docs/explanation/index.mdx +++ b/docs/content/docs/explanation/index.mdx @@ -5,4 +5,4 @@ description: "Understand the design ideas behind Cua and how its main pieces fit Explanation is for the parts of Cua that are easier to use once the model is clear. These pages are not recipes or API listings. They describe the **concepts, constraints, and tradeoffs** behind Cua's two main ways of giving an agent a computer: driving an existing machine with Cua Driver, or running an isolated cloud desktop with Cua Sandbox. Read this section when you want to understand why the system behaves the way it does, what guarantees it is trying to preserve, and where each component sits in the stack. -The section starts with [What is computer use?](/explanation/what-is-computer-use), which defines computer-use agents and where Cua fits. [The no foreground contract](/explanation/the-no-foreground-contract) explains the central invariant in Cua Driver: agent actions must not steal focus, move the real pointer, or interrupt the person using the machine. [Capture and dispatch modalities](/explanation/capture-and-dispatch-modalities) lays out the three axes of every action — what the agent observes, how input is delivered, and the coordinate space it targets — and which combinations are valid. [Process model](/explanation/process-model) describes how Cua Driver runs as an MCP stdio server, daemon, and CLI. [How sandboxes work](/explanation/how-sandboxes-work) covers cloud desktop sandboxes, their lifecycle, and snapshots. [Architecture](/explanation/architecture) ties the pieces together: Cua Driver, Cua Sandbox, and the computer-server. +The section starts with [What is computer use?](/explanation/what-is-computer-use), which defines computer-use agents and where Cua fits. [The no foreground contract](/explanation/the-no-foreground-contract) explains the central invariant in Cua Driver: agent actions must not steal focus, move the real pointer, or interrupt the person using the machine. [Capture and dispatch modalities](/explanation/capture-and-dispatch-modalities) lays out the four axes of every action — what the agent observes, which rung dispatches it, how input is delivered, and the coordinate space it targets — and which combinations are valid. [Process model](/explanation/process-model) describes how Cua Driver runs as an MCP stdio server, daemon, and CLI. [How sandboxes work](/explanation/how-sandboxes-work) covers cloud desktop sandboxes, their lifecycle, and snapshots. [Architecture](/explanation/architecture) ties the pieces together: Cua Driver, Cua Sandbox, and the computer-server. diff --git a/docs/content/docs/how-to-guides/driver/connect-your-agent.mdx b/docs/content/docs/how-to-guides/driver/connect-your-agent.mdx index 657d05673df..c266bb34170 100644 --- a/docs/content/docs/how-to-guides/driver/connect-your-agent.mdx +++ b/docs/content/docs/how-to-guides/driver/connect-your-agent.mdx @@ -49,10 +49,10 @@ cua-driver mcp-config --client claude It emits: ```bash -claude mcp add-json cua-computer-use '{"command":"cua-driver","args":["mcp","--claude-code-computer-use-compat"]}' +claude mcp add-json --scope user cua-computer-use '{"command":"cua-driver","args":["mcp"]}' ``` -This registers the server under the key `cua-computer-use` and passes `--claude-code-computer-use-compat`. The flag selects the Claude Code compat surface. The compat screenshot tool was removed in #1692, so the flag has no tool-surface effect today; the wiring stays in place for any future compat-gated tool. Capture the target window with `get_window_state`, which returns a screenshot alongside the tree by default. +This registers the server under the key `cua-computer-use` at user scope, so it is available across your projects. Every client gets the same driver tools. There is no standalone screenshot tool, so capture the target window with `get_window_state`, which returns a screenshot alongside the tree by default. This is NOT Anthropic's native computer-use API. It is Cua Driver's MCP compatibility mode for Claude Code. Start with `launch_app` or `list_windows`, then capture the target window with `get_window_state`. @@ -196,8 +196,8 @@ cua-driver mcp-config --client pi The output tells you to use Cua Driver as a plain CLI from inside Pi instead: ```bash -cua-driver list_apps -cua-driver click '{"pid": 1234, "x": 100, "y": 200}' +cua-driver call list_apps +cua-driver call click '{"pid": 1234, "x": 100, "y": 200}' cua-driver --help # full tool catalog ``` diff --git a/docs/content/docs/how-to-guides/driver/windows-ssh.mdx b/docs/content/docs/how-to-guides/driver/windows-ssh.mdx index 5a311b5103c..9e3c2a25fee 100644 --- a/docs/content/docs/how-to-guides/driver/windows-ssh.mdx +++ b/docs/content/docs/how-to-guides/driver/windows-ssh.mdx @@ -22,7 +22,7 @@ cua-driver call list_windows ``` [warn] interactive session: running in Session 0 (services); window-driving - tools (list_windows, click, type_text, screenshot, get_window_state) + tools (list_windows, click, type_text, get_window_state) will return empty results — these APIs need an attached interactive desktop. ``` From 2054a9ee879735b352e96d8f880fb9ccc9acb4b0 Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Wed, 1 Jul 2026 00:50:08 -0700 Subject: [PATCH 03/11] =?UTF-8?q?docs(cua-driver):=20fix=20how-to=20+=20re?= =?UTF-8?q?cipe=20findings=20=E2=80=94=20permissions=20status,=20versions,?= =?UTF-8?q?=20autostart,=20cursor-palette?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Iteration 2 (macOS how-to guides + recipes, verified vs 0.7.0): - recipes: 'call check_permissions' (JSON) -> 'permissions status' (matches shown output); stale 0.5.x placeholder -> 0.7.0 - keep-running: macOS autostart helper is repo-relative and breaks for curl-installed users; reframed around the plist - personalize-cursor: document the live --cursor-palette launch flag Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Th8TxivbUjS6NUT2cKVo6s --- DOCS_AUDIT.md | 12 +++++++++++- .../docs/how-to-guides/driver/keep-running.mdx | 6 ++++-- .../docs/how-to-guides/driver/personalize-cursor.mdx | 10 ++++++++++ .../recipes/build-a-report-in-a-native-app.mdx | 4 ++-- .../recipes/export-contacts-overnight.mdx | 2 +- .../recipes/fill-a-form-from-a-local-file.mdx | 6 +++--- 6 files changed, 31 insertions(+), 9 deletions(-) diff --git a/DOCS_AUDIT.md b/DOCS_AUDIT.md index 1403a46884b..ebe05186584 100644 --- a/DOCS_AUDIT.md +++ b/DOCS_AUDIT.md @@ -12,10 +12,13 @@ Ground truth: cua-driver 0.7.0, 38 MCP tools. | Platform | Install | Tutorial | How-to | Recipes | Reference | |---|---|---|---|---|---| -| macOS (local) | ✅ audited | ✅ audited | — | — | in progress | +| macOS (local) | ✅ | ✅ | ✅ | ✅ | ✅ | | Linux (Azure) | — | — | — | — | — | | Windows (Azure) | — | — | — | — | — | +macOS how-to guides largely clean (verified live: drove a real Chrome tab through +the `page` tool; cursor/recording/modality flags match `describe`). Fixes below. + Severity: **[blocker]** wrong + blocks a user · **[confusing]** works but misleads · **[inconsistent]** disagrees with another doc or the CLI · **[polish]** small. @@ -115,6 +118,13 @@ internal *page* links. Issues: - windows-ssh.mdx: removed `screenshot` from the sample tool list. - connect-your-agent.mdx: Pi examples use `cua-driver call …`; mcp-config claude example updated to live output (`--scope user`, no compat flag) + explanation. +- recipes (fill-a-form, build-a-report, export-contacts): `call check_permissions` + (returns JSON) → `permissions status` (matches the shown ✅ output); recipe + version placeholder `0.5.x` → `0.7.0`. +- keep-running.mdx: the macOS autostart helper is repo-relative and fails for + curl-installed users — reframed so the plist is the path without a checkout. +- personalize-cursor.mdx: documented the live `--cursor-palette ` launch + flag (was missing from the cursor-personalization guide). ## Open / deferred - SOURCE/GENERATOR fixes (need cua-driver Rust / dump-docs changes, since the diff --git a/docs/content/docs/how-to-guides/driver/keep-running.mdx b/docs/content/docs/how-to-guides/driver/keep-running.mdx index acec889330c..06b87f881cc 100644 --- a/docs/content/docs/how-to-guides/driver/keep-running.mdx +++ b/docs/content/docs/how-to-guides/driver/keep-running.mdx @@ -11,13 +11,15 @@ Use a **persistent daemon** for element-indexed workflows. The per-pid element c -`cua-driver autostart` is not implemented for macOS yet. Write a LaunchAgent with `install-local.sh --autostart`: +`cua-driver autostart` is not implemented for macOS yet, so write a LaunchAgent instead. + +If you have a checkout of the [cua repo](https://github.com/trycua/cua), the helper script writes it for you (run from the repo root): ```bash bash libs/cua-driver/scripts/install-local.sh --autostart ``` -You can also create the plist yourself. Save this file at `~/Library/LaunchAgents/com.trycua.cua-driver.plist`: +If you installed via the one-line installer and have no checkout, create the plist yourself. Save this file at `~/Library/LaunchAgents/com.trycua.cua-driver.plist`: ```xml diff --git a/docs/content/docs/how-to-guides/driver/personalize-cursor.mdx b/docs/content/docs/how-to-guides/driver/personalize-cursor.mdx index acdbcd5cb2b..20ac7786708 100644 --- a/docs/content/docs/how-to-guides/driver/personalize-cursor.mdx +++ b/docs/content/docs/how-to-guides/driver/personalize-cursor.mdx @@ -56,6 +56,16 @@ Custom cursor assets are rendered with no rotation compensation — the driver a 2. **Stick with PNG / static art** if you don't care about motion-aligned rotation — the cursor will render at a fixed orientation regardless of motion direction. This is what most OS cursor packs do. +## Recolour at launch + +`--cursor-palette ` picks a built-in colour palette for the cursor at launch — the launch-time counterpart to the runtime `set_agent_cursor_style` palette. Like the other cursor flags it is parsed on `serve` and `mcp` only. + +```bash +cua-driver serve --cursor-palette +``` + +Run `cua-driver serve --help` for the available palette names. + ## How the built-ins render ### `arrow` diff --git a/docs/content/docs/how-to-guides/recipes/build-a-report-in-a-native-app.mdx b/docs/content/docs/how-to-guides/recipes/build-a-report-in-a-native-app.mdx index 2f7befaf163..b1f622ad98e 100644 --- a/docs/content/docs/how-to-guides/recipes/build-a-report-in-a-native-app.mdx +++ b/docs/content/docs/how-to-guides/recipes/build-a-report-in-a-native-app.mdx @@ -38,7 +38,7 @@ Numbers is a **macOS-only** app with **no clean automation API** for building a ```bash cua-driver --version - # cua-driver 0.5.x + # cua-driver 0.7.0 ``` @@ -48,7 +48,7 @@ Numbers is a **macOS-only** app with **no clean automation API** for building a Grant Accessibility and Screen Recording to the driver, then verify both grants: ```bash - cua-driver call check_permissions + cua-driver permissions status ``` If either permission is missing, approve it in macOS System Settings, then run the check again. diff --git a/docs/content/docs/how-to-guides/recipes/export-contacts-overnight.mdx b/docs/content/docs/how-to-guides/recipes/export-contacts-overnight.mdx index 0f27c923c56..fb8599e367c 100644 --- a/docs/content/docs/how-to-guides/recipes/export-contacts-overnight.mdx +++ b/docs/content/docs/how-to-guides/recipes/export-contacts-overnight.mdx @@ -47,7 +47,7 @@ cua-driver --version On macOS, grant Accessibility and Screen Recording. Then verify the driver can see its permission state: ```bash -cua-driver call check_permissions +cua-driver permissions status ``` For overnight runs, keep the daemon running instead of depending on a terminal session. See [Keep Cua Driver running](/how-to-guides/driver/keep-running). diff --git a/docs/content/docs/how-to-guides/recipes/fill-a-form-from-a-local-file.mdx b/docs/content/docs/how-to-guides/recipes/fill-a-form-from-a-local-file.mdx index be67e8d908b..a50d0bea6d6 100644 --- a/docs/content/docs/how-to-guides/recipes/fill-a-form-from-a-local-file.mdx +++ b/docs/content/docs/how-to-guides/recipes/fill-a-form-from-a-local-file.mdx @@ -36,7 +36,7 @@ Use this recipe when the data already lives on your machine, for example in a PD ```bash cua-driver --version - # cua-driver 0.5.x + # cua-driver 0.7.0 ``` @@ -46,13 +46,13 @@ Use this recipe when the data already lives on your machine, for example in a PD On macOS, grant Accessibility and Screen Recording so Cua Driver can inspect windows, click controls, and type into apps. ```bash - cua-driver call check_permissions + cua-driver permissions status ``` Approve both prompts, then run the check again: ```bash - cua-driver call check_permissions + cua-driver permissions status # Accessibility: granted. # Screen Recording: granted. ``` From 21158d59844afdf35b0d31d17b1ef7cf93dd55d5 Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Wed, 1 Jul 2026 00:51:25 -0700 Subject: [PATCH 04/11] docs: note Azure resource-group for audit VM cleanup Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Th8TxivbUjS6NUT2cKVo6s --- DOCS_AUDIT.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DOCS_AUDIT.md b/DOCS_AUDIT.md index ebe05186584..8b6895cad9b 100644 --- a/DOCS_AUDIT.md +++ b/DOCS_AUDIT.md @@ -134,4 +134,8 @@ internal *page* links. Issues: - Hand-doc polish pending: #17 link-text unify, #18 sample-version refresh, #19 page-name drift; plus macOS omissions (daemon-start callout, unverifiable clicks, screen-recording dependency). -- Linux + Windows (Azure) — not started. +- Linux + Windows (Azure) — Linux leg in progress. + +## Azure cleanup (wind-down MUST run) +All audit VMs live in resource group **`cua-docs-audit`**. To tear everything +down: `az group delete -n cua-docs-audit --yes --no-wait`. From 8c3bc5834773fa2d7e5b1c6fb5494f85b4f90a81 Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Wed, 1 Jul 2026 01:01:04 -0700 Subject: [PATCH 05/11] =?UTF-8?q?docs(cua-driver):=20fix=20Linux=20finding?= =?UTF-8?q?s=20=E2=80=94=20libXi=20prereq,=20headless=20gap,=20ffmpeg,=20s?= =?UTF-8?q?ystemd=20target?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Iteration 3 (Linux, live-verified on fresh Azure Ubuntu 22.04): - install (Linux): [blocker] binary won't launch without libXi.so.6; add 'sudo apt install libxi6 at-spi2-core' prereq + sudo caveat + headless-desktop note; drop the phantom ffmpeg claim from the doctor sentence - keep-running (Linux): headless boxes need WantedBy=default.target Recorded (generator fix, cua#2088): mcp-tools tool count is platform-specific — Linux exposes 43 (5 Linux-only tools incl type_text_chars), macOS 38. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Th8TxivbUjS6NUT2cKVo6s --- DOCS_AUDIT.md | 41 ++++++++++++++++++- .../docs/how-to-guides/driver/install.mdx | 10 ++++- .../how-to-guides/driver/keep-running.mdx | 2 + 3 files changed, 50 insertions(+), 3 deletions(-) diff --git a/DOCS_AUDIT.md b/DOCS_AUDIT.md index 8b6895cad9b..977d8395bfe 100644 --- a/DOCS_AUDIT.md +++ b/DOCS_AUDIT.md @@ -13,9 +13,12 @@ Ground truth: cua-driver 0.7.0, 38 MCP tools. | Platform | Install | Tutorial | How-to | Recipes | Reference | |---|---|---|---|---|---| | macOS (local) | ✅ | ✅ | ✅ | ✅ | ✅ | -| Linux (Azure) | — | — | — | — | — | +| Linux (Azure) | ✅ | gui¹ | ✅ | gui¹ | ✅ | | Windows (Azure) | — | — | — | — | — | +¹ GUI-driving legs not run live: a stock Ubuntu server has no desktop, and the +docs never say how to bootstrap one. Verified CLI + doc-consistency instead. + macOS how-to guides largely clean (verified live: drove a real Chrome tab through the `page` tool; cursor/recording/modality flags match `describe`). Fixes below. @@ -125,6 +128,42 @@ internal *page* links. Issues: curl-installed users — reframed so the plist is the path without a checkout. - personalize-cursor.mdx: documented the live `--cursor-palette ` launch flag (was missing from the cursor-personalization guide). +- install.mdx (Linux): **[blocker]** fresh Ubuntu 22.04 can't launch the binary + (`libXi.so.6` missing) — added `sudo apt install libxi6 at-spi2-core` prereq + with the sudo caveat + a note that headless servers have no desktop to drive; + dropped the phantom "ffmpeg" claim from the `doctor` sentence (no ffmpeg probe). +- keep-running.mdx (Linux): headless boxes have no `graphical-session.target` — + noted to use `WantedBy=default.target` there. + +## Findings — Linux (Azure Ubuntu 22.04, live v0.7.0) + +20. **[blocker] install.mdx Linux** — missing `libXi.so.6` on stock Ubuntu; docs + list no apt prereqs and claim "no admin access". → FIXED. +21. **[inconsistent] mcp-tools.mdx:15 — tool count is platform-specific.** Linux + `list-tools` returns **43**, not 38; the 5 Linux-only tools are + `mouse_button_down`, `mouse_button_up`, `mouse_drag`, `parallel_mouse_drag`, + `type_text_chars`. This resolves the earlier `type_text_chars` puzzle (exists + on Linux, not macOS). mcp-tools.mdx is auto-generated from one platform and + documents 38. → GENERATOR FIX: emit a per-platform tool surface (or note the + Linux-only tools) + correct the count. Coordinate with cua#2088. The + `set_value` "prefer type_text_chars" line is then correct on Linux, wrong on + macOS — needs a platform qualifier. +22. **[inconsistent] install.mdx §doctor** — sentence claims doctor checks + "ffmpeg"; it has no ffmpeg probe. → FIXED. +23. **[polish] keep-running Linux systemd** — `graphical-session.target` vs the + headless case. → FIXED. +24. **[confusing] install.sh post-install output (script, not doc)** — Linux + "Next steps" are macOS-centric (TCC/CuaDriver.app). → eng: make installer + output platform-aware. + +### Linux verified accurate +Install path/layout exact; full serve/status/stop lifecycle after `libxi6`; +`check_permissions` honest Linux JSON; `install_ffmpeg` report-only; +`health_report` platform_supported=pass; explanation/linux-and-wayland.mdx claims +(AT-SPI dependency, X11/Wayland detection, graceful headless `doctor` warnings) +all hold. + +Azure VM torn down (RG `cua-docs-audit` delete accepted). ## Open / deferred - SOURCE/GENERATOR fixes (need cua-driver Rust / dump-docs changes, since the diff --git a/docs/content/docs/how-to-guides/driver/install.mdx b/docs/content/docs/how-to-guides/driver/install.mdx index acbe849d09c..792999f4efc 100644 --- a/docs/content/docs/how-to-guides/driver/install.mdx +++ b/docs/content/docs/how-to-guides/driver/install.mdx @@ -41,7 +41,13 @@ To skip the PATH change, pass the no-update flag: -**Requirements:** an x86_64 Linux desktop session with X11 or XWayland, plus AT-SPI 2 for accessibility-tree tools. +**Requirements:** an x86_64 Linux desktop session with X11 or XWayland, plus AT-SPI 2 for accessibility-tree tools. The window-driving tools (`click`, `type_text`, `get_window_state`) need a live display server and a running app, so a headless server has no windows to drive until you start a desktop session (for example `xfce4` under `Xvfb`). + +On a minimal or server image, install the runtime libraries the binary links against first. Unlike the installer itself, this step needs `sudo`; without `libXi` the binary fails to launch with `libXi.so.6: cannot open shared object file`, before `doctor` can even run: + +```bash +sudo apt install libxi6 at-spi2-core +``` ```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/cua-driver/scripts/install.sh)" @@ -49,7 +55,7 @@ To skip the PATH change, pass the no-update flag: The installer downloads the binary to `~/.cua-driver/packages/releases/`, points `~/.cua-driver/packages/current` at that release, and creates the `~/.local/bin/cua-driver` symlink. It does not use sudo. -X11 is fully supported. Native Wayland input and capture remain opt-in with `CUA_DRIVER_RS_ENABLE_WAYLAND=1` and are still maturing; Wayland sessions use XWayland by default. After installation, run `cua-driver doctor` to check distro-specific requirements such as the AT-SPI bus and ffmpeg. +X11 is fully supported. Native Wayland input and capture remain opt-in with `CUA_DRIVER_RS_ENABLE_WAYLAND=1` and are still maturing; Wayland sessions use XWayland by default. After installation, run `cua-driver doctor` to check distro-specific requirements such as the AT-SPI bus and the display server. diff --git a/docs/content/docs/how-to-guides/driver/keep-running.mdx b/docs/content/docs/how-to-guides/driver/keep-running.mdx index 06b87f881cc..624740efb9f 100644 --- a/docs/content/docs/how-to-guides/driver/keep-running.mdx +++ b/docs/content/docs/how-to-guides/driver/keep-running.mdx @@ -122,6 +122,8 @@ On CI runners or headless machines where the daemon should survive user logout, loginctl enable-linger $USER ``` +A headless box has no `graphical-session.target`, so on those machines also change the unit's `[Install]` section to `WantedBy=default.target` — otherwise `enable` has nothing to hook into and the daemon won't start on boot. + From d4246c54794e4ba7961a1bc8bc6adec0273fa658 Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Wed, 1 Jul 2026 01:02:49 -0700 Subject: [PATCH 06/11] docs(cua-driver): refresh update.mdx sample versions 0.3.x -> 0.7.0 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Th8TxivbUjS6NUT2cKVo6s --- DOCS_AUDIT.md | 1 + .../docs/how-to-guides/driver/update.mdx | 30 +++++++++---------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/DOCS_AUDIT.md b/DOCS_AUDIT.md index 977d8395bfe..31ca29d7cfc 100644 --- a/DOCS_AUDIT.md +++ b/DOCS_AUDIT.md @@ -133,6 +133,7 @@ internal *page* links. Issues: with the sudo caveat + a note that headless servers have no desktop to drive; dropped the phantom "ffmpeg" claim from the `doctor` sentence (no ffmpeg probe). - keep-running.mdx (Linux): headless boxes have no `graphical-session.target` — +- update.mdx: refreshed stale sample versions (0.3.x → 0.7.0 / 0.6.9 outdated example). noted to use `WantedBy=default.target` there. ## Findings — Linux (Azure Ubuntu 22.04, live v0.7.0) diff --git a/docs/content/docs/how-to-guides/driver/update.mdx b/docs/content/docs/how-to-guides/driver/update.mdx index 9a6f9d4d073..3bfb22191d6 100644 --- a/docs/content/docs/how-to-guides/driver/update.mdx +++ b/docs/content/docs/how-to-guides/driver/update.mdx @@ -16,18 +16,18 @@ cua-driver check-update When you're behind: ``` -Current: 0.3.1 -Latest: 0.3.2 +Current: 0.6.9 +Latest: 0.7.0 Update available. Run `cua-driver update --apply` to install. -Release notes: https://github.com/trycua/cua/releases/tag/cua-driver-rs-v0.3.2 +Release notes: https://github.com/trycua/cua/releases/tag/cua-driver-rs-v0.7.0 ``` When you're current: ``` -Current: 0.3.1 -Latest: 0.3.1 +Current: 0.7.0 +Latest: 0.7.0 You're on the latest release. ``` @@ -47,11 +47,11 @@ cua-driver update --apply Output: ``` -Current version: 0.3.1 +Current version: 0.6.9 Checking for updates… -New version available: 0.3.2 -Downloading and installing Cua Driver 0.3.2… -Installed Cua Driver 0.3.2. +New version available: 0.7.0 +Downloading and installing Cua Driver 0.7.0… +Installed Cua Driver 0.7.0. ``` `update --apply` calls the canonical installer script, the same one-line installer used for the first install. @@ -72,14 +72,14 @@ cua-driver check-update --json ```json { - "current_version": "0.3.1", - "latest_version": "0.3.2", + "current_version": "0.6.9", + "latest_version": "0.7.0", "update_available": true, "source": "github_releases", - "checked_at": "2026-05-27T14:30:00Z", + "checked_at": "2026-07-01T14:30:00Z", "cache_hit": false, "install_command": "curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/cua-driver/scripts/install.sh | bash", - "release_notes_url": "https://github.com/trycua/cua/releases/tag/cua-driver-rs-v0.3.2", + "release_notes_url": "https://github.com/trycua/cua/releases/tag/cua-driver-rs-v0.7.0", "error": null } ``` @@ -102,9 +102,9 @@ The same payload is available over MCP through the `check_for_update` tool. MCP Every `cua-driver mcp`, `serve`, and `doctor` invocation starts a background version check. If it finds a newer release, Cua Driver prints a two-line banner to stderr: ``` -✨ cua-driver v0.3.2 is available (you have v0.3.1). +✨ cua-driver v0.7.0 is available (you have v0.6.9). Update with: cua-driver update - Release notes: https://github.com/trycua/cua/releases/tag/cua-driver-rs-v0.3.2 + Release notes: https://github.com/trycua/cua/releases/tag/cua-driver-rs-v0.7.0 ``` The check uses a 20-hour cache and never blocks startup. One-shot commands such as `--version`, `call`, and `list-tools` skip it so piped output remains clean. From 4f04f7aa99563634f7658e5901696b2abd3b4bfd Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Wed, 1 Jul 2026 01:18:26 -0700 Subject: [PATCH 07/11] docs(cua-driver): fix Windows findings + finalize audit summary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Iteration 4 (Windows, live on Azure Server 2022 via run-command/Session 0): - install (Windows): note the installer registers the cua-driver-serve autostart task + its interactive requirement - keep-running (Windows): autostart from a non-interactive/SSH context fails with a cryptic SID error — use RDP/local console Windows list-tools = 39 (macOS 38 / Linux 43) — reinforces the platform-specific tool-surface finding for cua#2088. Full audit summary in DOCS_AUDIT.md. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Th8TxivbUjS6NUT2cKVo6s --- DOCS_AUDIT.md | 54 ++++++++++++++++++- .../docs/how-to-guides/driver/install.mdx | 2 +- .../how-to-guides/driver/keep-running.mdx | 2 +- 3 files changed, 55 insertions(+), 3 deletions(-) diff --git a/DOCS_AUDIT.md b/DOCS_AUDIT.md index 31ca29d7cfc..57a0e72b643 100644 --- a/DOCS_AUDIT.md +++ b/DOCS_AUDIT.md @@ -14,7 +14,7 @@ Ground truth: cua-driver 0.7.0, 38 MCP tools. |---|---|---|---|---|---| | macOS (local) | ✅ | ✅ | ✅ | ✅ | ✅ | | Linux (Azure) | ✅ | gui¹ | ✅ | gui¹ | ✅ | -| Windows (Azure) | — | — | — | — | — | +| Windows (Azure) | ✅ | gui¹ | ✅ | gui¹ | ✅ | ¹ GUI-driving legs not run live: a stock Ubuntu server has no desktop, and the docs never say how to bootstrap one. Verified CLI + doc-consistency instead. @@ -166,6 +166,58 @@ all hold. Azure VM torn down (RG `cua-docs-audit` delete accepted). +## Findings — Windows (Azure Win Server 2022, live v0.7.0) + +Verified over `az vm run-command` (Session 0 / SYSTEM) — validates the +non-interactive story windows-ssh.mdx targets, but interactive-only paths +(autostart happy path, a real `session:` number, GUI tools) couldn't be exercised. +Live `list-tools` = **39** (macOS 38 / Linux 43 / Windows 39 — platform-specific). + +25. **[blocker] windows-ssh.mdx** — the quoted Session-0 `doctor` warning lists a + `screenshot` tool that doesn't exist. → FIXED on branch (already removed); + the binary's own doctor string still says it → upstream eng fix. +26. **[confusing] install.mdx (Windows)** — the installer silently attempts + `autostart enable`; keep-running presents it as a manual step. → FIXED (noted + the installer registers it + the interactive requirement). +27. **[confusing] keep-running.mdx (Windows)** — `autostart enable/kick` from a + non-interactive/SSH/Session-0 context fails with a cryptic SID error. → FIXED + (added the symptom + "use RDP/local console"). +28. **[inconsistent] windows-ssh.mdx / keep-running.mdx** — both show `status` + printing a `session:` line; live Session-0 `status` printed only socket+pid. + Likely conditional on session ≥1 but unconfirmed. → DEFERRED (needs an + interactive RDP session to verify before changing). +29. **[polish]** `cua-driver-uia.exe` ships beside `cua-driver.exe`, undocumented; + `list_windows` shows `[]` vs the real structured object; PATH append doesn't + reach SYSTEM/SSH processes. → minor, noted. + +### Windows verified verbatim +install one-liner + documented paths/PATH/`-NoPathUpdate`; `--version` 0.7.0; +`doctor` all [ok] (UIA); serve/status/stop lifecycle (`\\.\pipe\cua-driver`); +`list_apps`, `check_permissions` (elevated/System/uia), `autostart status/disable`. + +Azure VM torn down (RG `cua-docs-audit-win` delete accepted). + +## Summary + +Audited cua-driver 0.7.0 docs end-to-end on **macOS (local, full live drive), +Linux (Azure Ubuntu 22.04), and Windows (Azure Server 2022)** — install → +tutorial → how-to → recipes → reference → explanation. ~20 hand-doc issues fixed +on `docs/driver-audit-fixes` (1 macOS blocker, 1 Linux blocker, plus consistency +and staleness). Biggest wins: the Linux `libXi` launch blocker, the tutorial's +self-contradiction, and the stale `mcp-config` example. + +**Left for the generator (coordinate with cua#2088; not edited here to avoid +conflicts):** the reference is generated from ONE platform, but the tool surface +is platform-specific — macOS 38 / Linux 43 / Windows 39. mcp-tools.mdx should +emit per-platform tools (incl. the Linux-only `type_text_chars` that `set_value` +references) and a correct count; cli-reference needs `manifest`, the compat-flag +no-op note, and the undocumented serve/mcp flags. + +**Upstream eng (binary), not docs:** the Windows/Linux `doctor` warning string +names a nonexistent `screenshot` tool; `autostart enable` should detect Session 0 +and print a friendly message; `recording render` help advertises `--output` but +takes a positional arg. + ## Open / deferred - SOURCE/GENERATOR fixes (need cua-driver Rust / dump-docs changes, since the reference MDX is auto-generated): #7 `type_text_chars`→`type_text` in set_value diff --git a/docs/content/docs/how-to-guides/driver/install.mdx b/docs/content/docs/how-to-guides/driver/install.mdx index 792999f4efc..ed7a79dae4d 100644 --- a/docs/content/docs/how-to-guides/driver/install.mdx +++ b/docs/content/docs/how-to-guides/driver/install.mdx @@ -30,7 +30,7 @@ If `~/.local/bin` is missing from your PATH, the installer detects your shell (` irm https://raw.githubusercontent.com/trycua/cua/main/libs/cua-driver/scripts/install.ps1 | iex ``` -The installer downloads the release under `%USERPROFILE%\.cua-driver\packages\releases\` and exposes `cua-driver.exe` from `%LOCALAPPDATA%\Programs\Cua\cua-driver\bin`. It runs without administrator privileges, detects whether the host is x64 or arm64, and appends the install directory to your User-scope `Path` so new PowerShell windows can resolve `cua-driver.exe`. +The installer downloads the release under `%USERPROFILE%\.cua-driver\packages\releases\` and exposes `cua-driver.exe` from `%LOCALAPPDATA%\Programs\Cua\cua-driver\bin`. It runs without administrator privileges, detects whether the host is x64 or arm64, and appends the install directory to your User-scope `Path` so new PowerShell windows can resolve `cua-driver.exe`. It also attempts to register the `cua-driver-serve` autostart task; that step needs an interactive session, so on a non-interactive or SSH install it is skipped — set it up later with [`cua-driver autostart enable`](/how-to-guides/driver/keep-running). To skip the PATH change, pass the no-update flag: diff --git a/docs/content/docs/how-to-guides/driver/keep-running.mdx b/docs/content/docs/how-to-guides/driver/keep-running.mdx index 624740efb9f..80912a29112 100644 --- a/docs/content/docs/how-to-guides/driver/keep-running.mdx +++ b/docs/content/docs/how-to-guides/driver/keep-running.mdx @@ -62,7 +62,7 @@ cua-driver autostart enable cua-driver autostart kick ``` -`enable` registers a Scheduled Task named `cua-driver-serve` with `LogonType: Interactive`. That keeps the daemon in Session 1+ instead of Session 0. The command is idempotent, so running it again after an upgrade updates the binary path automatically. +`enable` registers a Scheduled Task named `cua-driver-serve` with `LogonType: Interactive`. That keeps the daemon in Session 1+ instead of Session 0. The command is idempotent, so running it again after an upgrade updates the binary path automatically. Run it from a non-interactive context (over SSH, or in Session 0 as `SYSTEM`) and it fails with a confusing `No mapping between account names and security IDs was done` error — use RDP or the local console instead. `kick` starts the task immediately, so you do not need to wait for the next logon. From c300a9176b81ddf5fb630f89294af8d3cbd6be49 Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Wed, 1 Jul 2026 01:19:07 -0700 Subject: [PATCH 08/11] chore: drop working audit log (kept out of the docs PR) --- DOCS_AUDIT.md | 233 -------------------------------------------------- 1 file changed, 233 deletions(-) delete mode 100644 DOCS_AUDIT.md diff --git a/DOCS_AUDIT.md b/DOCS_AUDIT.md deleted file mode 100644 index 57a0e72b643..00000000000 --- a/DOCS_AUDIT.md +++ /dev/null @@ -1,233 +0,0 @@ -# cua-driver docs audit (macOS / Linux / Windows) - -Autonomous audit started 2026-07-01. Method: walk the docs as a human would — -install → tutorial → how-to guides → recipes → reference — running every -documented command against live cua-driver 0.7.0, on each platform, and record -mistakes, things that don't make sense, and inconsistencies. Fixes land on the -`docs/driver-audit-fixes` branch as they're confirmed. - -Ground truth: cua-driver 0.7.0, 38 MCP tools. - -## Status - -| Platform | Install | Tutorial | How-to | Recipes | Reference | -|---|---|---|---|---|---| -| macOS (local) | ✅ | ✅ | ✅ | ✅ | ✅ | -| Linux (Azure) | ✅ | gui¹ | ✅ | gui¹ | ✅ | -| Windows (Azure) | ✅ | gui¹ | ✅ | gui¹ | ✅ | - -¹ GUI-driving legs not run live: a stock Ubuntu server has no desktop, and the -docs never say how to bootstrap one. Verified CLI + doc-consistency instead. - -macOS how-to guides largely clean (verified live: drove a real Chrome tab through -the `page` tool; cursor/recording/modality flags match `describe`). Fixes below. - -Severity: **[blocker]** wrong + blocks a user · **[confusing]** works but -misleads · **[inconsistent]** disagrees with another doc or the CLI · -**[polish]** small. - -## Findings — macOS (iteration 1, live v0.7.0) - -1. **[blocker] tutorials/drive-your-first-app.mdx §5** — said "The agent reports - 391" while step 4 (and 6×7) is 42; live drive read 42. Self-contradiction. - → FIXED (391 → 42). -2. **[inconsistent] how-to-guides/driver/install.mdx §Verify** — `--version` and - `doctor` printed `0.5.x`; live is 0.7.0. → FIXED (both → 0.7.0). -3. **[inconsistent] how-to-guides/driver/install.mdx §Grant TCC** — the ✅ - "Accessibility/Screen Recording: granted" pretty output was shown under - `cua-driver check_permissions`, but that command returns JSON; the pretty - format is `cua-driver permissions status`. → FIXED (command → `permissions - status`). -4. **[inconsistent] tutorials/drive-your-first-app.mdx §3 (Claude Code tab)** — - the live registration helper emits `claude mcp add-json --scope user … {"args":["mcp"]…}` - (adds `--scope user`, omits `--claude-code-computer-use-compat`). The flag is - intentionally documented in connect-your-agent.mdx (kept for future - compat-gated tools), so tutorial + that guide agree with each other but drift - from the live helper. → DEFERRED: needs a maintainer decision on whether the - helper or the docs are canonical; do not strip the flag blindly. Verify - whether Claude Code now requires `--scope user`. -5. **[polish] install.mdx §Verify** — the `doctor` sample elides real lines - (argv exe/resolved, telemetry, legacy LaunchAgent, TCC+cdhash) and shows an - `.local/bin` install dir; a bundle install reports `/Applications/CuaDriver.app/…`. - Illustrative, low impact. → note; consider marking the sample abbreviated. -6. **[polish] tutorials §4** — element_index values in the sample transcript - don't match a live snapshot (indices vary per snapshot). Consider a - "indices vary" note. - -### Omissions a first-time user hits (macOS) -- Tutorial never starts the daemon (`open -n -g -a CuaDriver --args serve`); - install.mdx does. The step-4 element_index drive silently depends on a - persistent daemon. → add a one-line callout. -- Every button `click` returns `effect: unverifiable, verified: false` (a press - has no AX post-condition); correctness only appears on the re-snapshot. Raw - CLI watchers may think clicks failed. → worth a sentence. -- Driving needs Screen Recording; a user who dismisses that TCC dialog hits - failures the tutorial never mentions. - -### Verified working verbatim (coverage) -`--version`, `doctor` (all [ok]), `permissions status` (+`--json`), -`check-update` (+`--json`, on-latest nulls correct), `status`, `call list_apps`, -`list-tools`, and the full drive loop: start_session → launch_app Calculator -(backgrounded, `self_activation_suppressed`) → get_window_state (full AX tree) → -5× click by element_index → re-snapshot → read 42. No-foreground contract holds. - -## Findings — cross-doc consistency (iteration 1, vs live CLI) - -Tool inventory fully in sync (all 38 documented, none missing/extra); no broken -internal *page* links. Issues: - -7. **[confusing] mcp-tools.mdx §set_value** — references `type_text_chars`, which - is not one of the 38 tools; the real tool is `type_text`. Copied verbatim from - the binary's `describe set_value`, so the bug is UPSTREAM (Rust tool - description). → SOURCE FIX needed; mcp-tools.mdx is auto-generated. -8. **[confusing] capture-and-dispatch-modalities.mdx / windows-ssh.mdx** — phantom - `screenshot` tool (no such tool; connect-your-agent correctly says so). - → FIXED (removed both mentions). -9. **[confusing] capture-and-dispatch-modalities.mdx:63** — anchor pointed at - `mcp-tools#action-response-shape`; that section is in `mcp-tool-notes`. - → FIXED. -10. **[inconsistent] explanation/index.mdx** — "three axes" vs the page's "four". - → FIXED (three → four, added the rung axis). -11. **[inconsistent] demonstrations…mdx** — line 30 "video off by default" vs - table "recording.mp4 by default"; live confirms off. → FIXED (table). -12. **[inconsistent] connect-your-agent.mdx Pi section** — `cua-driver list_apps` - / `cua-driver click …` should be `cua-driver call …`. → FIXED. -13. **[inconsistent] connect-your-agent.mdx mcp-config claude example** — stale; - live emits `--scope user` and omits `--claude-code-computer-use-compat`. - → FIXED (example + explanation; corroborates macOS finding 4). -14. **[inconsistent] cli-reference.mdx** — missing `manifest` subcommand; root - cause `dump-docs` omits it. → GENERATOR FIX needed. -15. **[inconsistent] cli-reference.mdx §mcp flag** — description overstates the - now-inert `--claude-code-computer-use-compat`. → GENERATOR/SOURCE FIX. -16. **[polish] cli-reference / personalize-cursor** — serve/mcp cursor + pip - flags undocumented (`--no-overlay`, `--cursor-id/icon/shape/palette`, - `--experimental-pip*`); `dump-docs` reports `serve args: []`. → GENERATOR FIX. -17. **[inconsistent] choose-a-modality.mdx title vs inbound link text** — real - title "Choose an Action Rung and Dispatch Mode"; several docs link it as - "Choose a capture and dispatch mode". → pending (multi-file link-text unify). -18. **[polish] stale sample versions** — update.mdx (0.3.x), install/recipes - (0.5.x), windows-ssh (0.2.7 floor) vs live 0.7.0. → pending. -19. **[polish] no-foreground-contract page** — file title "Background - Computer-Use" but linked under 2–3 different names. → pending. - -## Fixes applied -- tutorials/drive-your-first-app.mdx: 391 → 42. -- how-to-guides/driver/install.mdx: version 0.5.x → 0.7.0 (×2); TCC check - command `check_permissions` → `permissions status`. -- capture-and-dispatch-modalities.mdx: fixed the action-response-shape anchor - (→ mcp-tool-notes); removed the phantom `screenshot`-tool parenthetical. -- explanation/index.mdx: three axes → four (added the action-rung axis). -- demonstrations-skills-and-trajectories.mdx: video is not recorded "by default". -- windows-ssh.mdx: removed `screenshot` from the sample tool list. -- connect-your-agent.mdx: Pi examples use `cua-driver call …`; mcp-config claude - example updated to live output (`--scope user`, no compat flag) + explanation. -- recipes (fill-a-form, build-a-report, export-contacts): `call check_permissions` - (returns JSON) → `permissions status` (matches the shown ✅ output); recipe - version placeholder `0.5.x` → `0.7.0`. -- keep-running.mdx: the macOS autostart helper is repo-relative and fails for - curl-installed users — reframed so the plist is the path without a checkout. -- personalize-cursor.mdx: documented the live `--cursor-palette ` launch - flag (was missing from the cursor-personalization guide). -- install.mdx (Linux): **[blocker]** fresh Ubuntu 22.04 can't launch the binary - (`libXi.so.6` missing) — added `sudo apt install libxi6 at-spi2-core` prereq - with the sudo caveat + a note that headless servers have no desktop to drive; - dropped the phantom "ffmpeg" claim from the `doctor` sentence (no ffmpeg probe). -- keep-running.mdx (Linux): headless boxes have no `graphical-session.target` — -- update.mdx: refreshed stale sample versions (0.3.x → 0.7.0 / 0.6.9 outdated example). - noted to use `WantedBy=default.target` there. - -## Findings — Linux (Azure Ubuntu 22.04, live v0.7.0) - -20. **[blocker] install.mdx Linux** — missing `libXi.so.6` on stock Ubuntu; docs - list no apt prereqs and claim "no admin access". → FIXED. -21. **[inconsistent] mcp-tools.mdx:15 — tool count is platform-specific.** Linux - `list-tools` returns **43**, not 38; the 5 Linux-only tools are - `mouse_button_down`, `mouse_button_up`, `mouse_drag`, `parallel_mouse_drag`, - `type_text_chars`. This resolves the earlier `type_text_chars` puzzle (exists - on Linux, not macOS). mcp-tools.mdx is auto-generated from one platform and - documents 38. → GENERATOR FIX: emit a per-platform tool surface (or note the - Linux-only tools) + correct the count. Coordinate with cua#2088. The - `set_value` "prefer type_text_chars" line is then correct on Linux, wrong on - macOS — needs a platform qualifier. -22. **[inconsistent] install.mdx §doctor** — sentence claims doctor checks - "ffmpeg"; it has no ffmpeg probe. → FIXED. -23. **[polish] keep-running Linux systemd** — `graphical-session.target` vs the - headless case. → FIXED. -24. **[confusing] install.sh post-install output (script, not doc)** — Linux - "Next steps" are macOS-centric (TCC/CuaDriver.app). → eng: make installer - output platform-aware. - -### Linux verified accurate -Install path/layout exact; full serve/status/stop lifecycle after `libxi6`; -`check_permissions` honest Linux JSON; `install_ffmpeg` report-only; -`health_report` platform_supported=pass; explanation/linux-and-wayland.mdx claims -(AT-SPI dependency, X11/Wayland detection, graceful headless `doctor` warnings) -all hold. - -Azure VM torn down (RG `cua-docs-audit` delete accepted). - -## Findings — Windows (Azure Win Server 2022, live v0.7.0) - -Verified over `az vm run-command` (Session 0 / SYSTEM) — validates the -non-interactive story windows-ssh.mdx targets, but interactive-only paths -(autostart happy path, a real `session:` number, GUI tools) couldn't be exercised. -Live `list-tools` = **39** (macOS 38 / Linux 43 / Windows 39 — platform-specific). - -25. **[blocker] windows-ssh.mdx** — the quoted Session-0 `doctor` warning lists a - `screenshot` tool that doesn't exist. → FIXED on branch (already removed); - the binary's own doctor string still says it → upstream eng fix. -26. **[confusing] install.mdx (Windows)** — the installer silently attempts - `autostart enable`; keep-running presents it as a manual step. → FIXED (noted - the installer registers it + the interactive requirement). -27. **[confusing] keep-running.mdx (Windows)** — `autostart enable/kick` from a - non-interactive/SSH/Session-0 context fails with a cryptic SID error. → FIXED - (added the symptom + "use RDP/local console"). -28. **[inconsistent] windows-ssh.mdx / keep-running.mdx** — both show `status` - printing a `session:` line; live Session-0 `status` printed only socket+pid. - Likely conditional on session ≥1 but unconfirmed. → DEFERRED (needs an - interactive RDP session to verify before changing). -29. **[polish]** `cua-driver-uia.exe` ships beside `cua-driver.exe`, undocumented; - `list_windows` shows `[]` vs the real structured object; PATH append doesn't - reach SYSTEM/SSH processes. → minor, noted. - -### Windows verified verbatim -install one-liner + documented paths/PATH/`-NoPathUpdate`; `--version` 0.7.0; -`doctor` all [ok] (UIA); serve/status/stop lifecycle (`\\.\pipe\cua-driver`); -`list_apps`, `check_permissions` (elevated/System/uia), `autostart status/disable`. - -Azure VM torn down (RG `cua-docs-audit-win` delete accepted). - -## Summary - -Audited cua-driver 0.7.0 docs end-to-end on **macOS (local, full live drive), -Linux (Azure Ubuntu 22.04), and Windows (Azure Server 2022)** — install → -tutorial → how-to → recipes → reference → explanation. ~20 hand-doc issues fixed -on `docs/driver-audit-fixes` (1 macOS blocker, 1 Linux blocker, plus consistency -and staleness). Biggest wins: the Linux `libXi` launch blocker, the tutorial's -self-contradiction, and the stale `mcp-config` example. - -**Left for the generator (coordinate with cua#2088; not edited here to avoid -conflicts):** the reference is generated from ONE platform, but the tool surface -is platform-specific — macOS 38 / Linux 43 / Windows 39. mcp-tools.mdx should -emit per-platform tools (incl. the Linux-only `type_text_chars` that `set_value` -references) and a correct count; cli-reference needs `manifest`, the compat-flag -no-op note, and the undocumented serve/mcp flags. - -**Upstream eng (binary), not docs:** the Windows/Linux `doctor` warning string -names a nonexistent `screenshot` tool; `autostart enable` should detect Session 0 -and print a friendly message; `recording render` help advertises `--output` but -takes a positional arg. - -## Open / deferred -- SOURCE/GENERATOR fixes (need cua-driver Rust / dump-docs changes, since the - reference MDX is auto-generated): #7 `type_text_chars`→`type_text` in set_value - description; #14 add `manifest` to dump-docs; #15 compat-flag description; #16 - undocumented serve/mcp flags. Coordinate with cua#2088 (reference auto-gen). -- Hand-doc polish pending: #17 link-text unify, #18 sample-version refresh, #19 - page-name drift; plus macOS omissions (daemon-start callout, unverifiable - clicks, screen-recording dependency). -- Linux + Windows (Azure) — Linux leg in progress. - -## Azure cleanup (wind-down MUST run) -All audit VMs live in resource group **`cua-docs-audit`**. To tear everything -down: `az group delete -n cua-docs-audit --yes --no-wait`. From a6336e80cf593ff183c1606f58b2a7870f152a73 Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Wed, 1 Jul 2026 01:25:15 -0700 Subject: [PATCH 09/11] docs(cua-driver): unify inbound link text to the choose-a-modality title The page title is 'Choose an Action Rung and Dispatch Mode' but several docs linked it as 'Choose a capture and dispatch mode'. Unify to match. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Th8TxivbUjS6NUT2cKVo6s --- docs/content/docs/explanation/linux-and-wayland.mdx | 2 +- docs/content/docs/how-to-guides/driver/drive-a-web-page.mdx | 4 ++-- docs/content/docs/tutorials/drive-your-first-app.mdx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/docs/explanation/linux-and-wayland.mdx b/docs/content/docs/explanation/linux-and-wayland.mdx index 85f8b1054f5..a10ede7fa5b 100644 --- a/docs/content/docs/explanation/linux-and-wayland.mdx +++ b/docs/content/docs/explanation/linux-and-wayland.mdx @@ -46,7 +46,7 @@ One more place X11 assumptions leak: native Wayland apps have no X11 window ID, ## Further reading -- **Decide what to call**: [Choose a capture and dispatch mode](/how-to-guides/driver/choose-a-modality) +- **Decide what to call**: [Choose an action rung and dispatch mode](/how-to-guides/driver/choose-a-modality) - **The contract this all serves**: [Background computer-use](/explanation/the-no-foreground-contract) - **The three axes in full**: [Capture and dispatch modalities](/explanation/capture-and-dispatch-modalities) - **The exact limits**: [Known limits](/reference/cua-driver/limits) · [Modality test suite](/reference/cua-driver/modality-test-suite) diff --git a/docs/content/docs/how-to-guides/driver/drive-a-web-page.mdx b/docs/content/docs/how-to-guides/driver/drive-a-web-page.mdx index 624678b9caa..aa26fc5a786 100644 --- a/docs/content/docs/how-to-guides/driver/drive-a-web-page.mdx +++ b/docs/content/docs/how-to-guides/driver/drive-a-web-page.mdx @@ -5,7 +5,7 @@ description: 'Read and act on the page already loaded in a browser or Electron a # Drive a Web Page -Use the `page` tool on the page already loaded in a running browser or Electron app. It does not navigate; open the URL first, either through `launch_app` or by having the user open it. This is the DOM/CDP path, the same rung that honest-verification `escalation.recommended: 'page'` points to when AX typing echoes but the DOM does not observe it. For the surrounding ladder, see [Choose a capture and dispatch mode](/how-to-guides/driver/choose-a-modality) and [Capture and dispatch modalities](/explanation/capture-and-dispatch-modalities). +Use the `page` tool on the page already loaded in a running browser or Electron app. It does not navigate; open the URL first, either through `launch_app` or by having the user open it. This is the DOM/CDP path, the same rung that honest-verification `escalation.recommended: 'page'` points to when AX typing echoes but the DOM does not observe it. For the surrounding ladder, see [Choose an action rung and dispatch mode](/how-to-guides/driver/choose-a-modality) and [Capture and dispatch modalities](/explanation/capture-and-dispatch-modalities). ## Actions @@ -84,5 +84,5 @@ page({ ## Related - [page tool reference](/reference/cua-driver/mcp-tools#page) -- [Choose a capture and dispatch mode](/how-to-guides/driver/choose-a-modality) +- [Choose an action rung and dispatch mode](/how-to-guides/driver/choose-a-modality) - [Capture and dispatch modalities](/explanation/capture-and-dispatch-modalities) diff --git a/docs/content/docs/tutorials/drive-your-first-app.mdx b/docs/content/docs/tutorials/drive-your-first-app.mdx index 9e7bd1aa595..e020ddb1093 100644 --- a/docs/content/docs/tutorials/drive-your-first-app.mdx +++ b/docs/content/docs/tutorials/drive-your-first-app.mdx @@ -182,7 +182,7 @@ You can now prompt your agent in plain English, and it will drive Cua Driver for Everything runs in the background, and the agent picks the right calculator for your OS (Calculator on macOS and Windows, the system calculator on Linux), so the same prompt works on all three platforms. -To explore capture and dispatch modes, see [Choose a capture and dispatch mode](/how-to-guides/driver/choose-a-modality). +To explore capture and dispatch modes, see [Choose an action rung and dispatch mode](/how-to-guides/driver/choose-a-modality). ## 5. Confirm what happened From 9d825c761e8022089998384731eb9c6382d7fba5 Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Wed, 1 Jul 2026 07:48:36 -0700 Subject: [PATCH 10/11] =?UTF-8?q?docs(cua-driver):=20address=20CodeRabbit?= =?UTF-8?q?=20=E2=80=94=20revert=20anchor,=20fix=20permission-grant=20reci?= =?UTF-8?q?pe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - capture-and-dispatch-modalities: mcp-tool-notes doesn't exist on main (it's introduced by #2088), so point action-response-shape back to mcp-tools - fill-a-form recipe: 'permissions status' is read-only and won't trigger the prompts the step tells you to approve — use 'permissions grant' first Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Th8TxivbUjS6NUT2cKVo6s --- .../docs/explanation/capture-and-dispatch-modalities.mdx | 2 +- .../how-to-guides/recipes/fill-a-form-from-a-local-file.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx b/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx index 7f47ec7b4ce..d35002b888b 100644 --- a/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx +++ b/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx @@ -60,7 +60,7 @@ Dispatch success is not the same thing as application state change. The driver c `effect` is the confidence signal that separates those cases. `"confirmed"` means the driver verified the result through AX read-back. `"unverifiable"` means the dispatch path ran, but the driver cannot prove the application applied it. `"suspected_noop"` means an AX action dispatched but almost certainly did not change the target. Callers should treat `effect`, not the transport-level success status, as the action outcome. -`escalation` is the machine-readable climb-the-ladder hint. When present, it tells the caller which surface to try next: `"px"` for acting off the screenshot, `"foreground"` for explicitly fronting the target, or `"page"` for the browser-tab DOM path through the `page` tool. See [Choose an action rung and dispatch mode](/how-to-guides/driver/choose-a-modality) for the procedural ladder and [MCP tool notes](/reference/cua-driver/mcp-tool-notes#action-response-shape) for the field table. +`escalation` is the machine-readable climb-the-ladder hint. When present, it tells the caller which surface to try next: `"px"` for acting off the screenshot, `"foreground"` for explicitly fronting the target, or `"page"` for the browser-tab DOM path through the `page` tool. See [Choose an action rung and dispatch mode](/how-to-guides/driver/choose-a-modality) for the procedural ladder and [MCP tools](/reference/cua-driver/mcp-tools#action-response-shape) for the field table. ### When the tree lies diff --git a/docs/content/docs/how-to-guides/recipes/fill-a-form-from-a-local-file.mdx b/docs/content/docs/how-to-guides/recipes/fill-a-form-from-a-local-file.mdx index a50d0bea6d6..0174626daa1 100644 --- a/docs/content/docs/how-to-guides/recipes/fill-a-form-from-a-local-file.mdx +++ b/docs/content/docs/how-to-guides/recipes/fill-a-form-from-a-local-file.mdx @@ -46,7 +46,7 @@ Use this recipe when the data already lives on your machine, for example in a PD On macOS, grant Accessibility and Screen Recording so Cua Driver can inspect windows, click controls, and type into apps. ```bash - cua-driver permissions status + cua-driver permissions grant ``` Approve both prompts, then run the check again: From 2de405812ddbda436f9c22e374bba9cfaf166b49 Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Wed, 1 Jul 2026 08:11:10 -0700 Subject: [PATCH 11/11] docs(cua-driver): point action-response-shape anchor to mcp-tool-notes Now that #2088 has merged, the 'Action response shape' section lives in mcp-tool-notes.mdx (moved out of the auto-generated mcp-tools.mdx). Point the capture-and-dispatch-modalities link at its new home. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Th8TxivbUjS6NUT2cKVo6s --- .../docs/explanation/capture-and-dispatch-modalities.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx b/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx index d35002b888b..7f47ec7b4ce 100644 --- a/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx +++ b/docs/content/docs/explanation/capture-and-dispatch-modalities.mdx @@ -60,7 +60,7 @@ Dispatch success is not the same thing as application state change. The driver c `effect` is the confidence signal that separates those cases. `"confirmed"` means the driver verified the result through AX read-back. `"unverifiable"` means the dispatch path ran, but the driver cannot prove the application applied it. `"suspected_noop"` means an AX action dispatched but almost certainly did not change the target. Callers should treat `effect`, not the transport-level success status, as the action outcome. -`escalation` is the machine-readable climb-the-ladder hint. When present, it tells the caller which surface to try next: `"px"` for acting off the screenshot, `"foreground"` for explicitly fronting the target, or `"page"` for the browser-tab DOM path through the `page` tool. See [Choose an action rung and dispatch mode](/how-to-guides/driver/choose-a-modality) for the procedural ladder and [MCP tools](/reference/cua-driver/mcp-tools#action-response-shape) for the field table. +`escalation` is the machine-readable climb-the-ladder hint. When present, it tells the caller which surface to try next: `"px"` for acting off the screenshot, `"foreground"` for explicitly fronting the target, or `"page"` for the browser-tab DOM path through the `page` tool. See [Choose an action rung and dispatch mode](/how-to-guides/driver/choose-a-modality) for the procedural ladder and [MCP tool notes](/reference/cua-driver/mcp-tool-notes#action-response-shape) for the field table. ### When the tree lies