Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
fix(cua-driver): scope macOS health permission guidance (#4674)
injaneity4addd869b6a1
diff --git a/.github/workflows/ci-rust-macos.yml b/.github/workflows/ci-rust-macos.ymlindex 603dd11035..9bb3bece3b 100644--- a/.github/workflows/ci-rust-macos.yml+++ b/.github/workflows/ci-rust-macos.yml@@ -7,6 +7,8 @@ on:- "libs/cua-driver/rust/Cargo.toml"- "libs/cua-driver/rust/Cargo.lock"- "libs/cua-driver/rust/rust-toolchain.toml"+ - "libs/cua-driver/rust/crates/cua-driver/**"+ - "libs/cua-driver/rust/crates/cua-driver-sdk/**"- "libs/cua-driver/rust/crates/cua-driver-contract/**"- "libs/cua-driver/rust/crates/cua-driver-core/**"- "libs/cua-driver/rust/crates/cursor-overlay/**"@@ -22,6 +24,8 @@ on:- "libs/cua-driver/rust/Cargo.toml"- "libs/cua-driver/rust/Cargo.lock"- "libs/cua-driver/rust/rust-toolchain.toml"+ - "libs/cua-driver/rust/crates/cua-driver/**"+ - "libs/cua-driver/rust/crates/cua-driver-sdk/**"- "libs/cua-driver/rust/crates/cua-driver-contract/**"- "libs/cua-driver/rust/crates/cua-driver-core/**"- "libs/cua-driver/rust/crates/cursor-overlay/**"@@ -66,6 +70,14 @@ jobs:- name: Run cua-driver-core unit tests on macOSworking-directory: libs/cua-driver/rustrun: cargo test --locked -p cua-driver-core --lib+ - name: Run macOS protocol schema contract+ working-directory: libs/cua-driver/rust+ env:+ CUA_TEST_REQUIRE_DRIVER_BIN: "1"+ CUA_TEST_DRIVER_STDERR: "1"+ run: |+ cargo build --locked -p cua-driver+ cargo test --locked -p cua-driver --test protocol_schema_test# Desktop E2E suites are #[ignore] and run in the Lume harness. Their# hermetic oracle and parser tests run here as a whole crate, including# the macOS-gated ones that have no other runner: the harness's FIFOdiff --git a/docs/content/docs/cua-driver/reference/mcp-tools/maintenance.mdx b/docs/content/docs/cua-driver/reference/mcp-tools/maintenance.mdxindex 00b959de82..d4e01af03b 100644--- a/docs/content/docs/cua-driver/reference/mcp-tools/maintenance.mdx+++ b/docs/content/docs/cua-driver/reference/mcp-tools/maintenance.mdx@@ -197,7 +197,7 @@ Check required permissions for cua-driver-rs on Windows.## `health_report`-Single-call end-to-end driver diagnostics. Designed to let downstream consumers ship one stable call instead of stitching together check_permissions, doctor, version, bundle attribution, and platform capability status. On macOS, prompt-capable direct capture is deliberately skipped; use `cua-driver permissions grant` to verify it explicitly. cua-driver owns the health model; consumers stay thin.+Single-call end-to-end driver diagnostics. Designed to let downstream consumers ship one stable call instead of stitching together check_permissions, doctor, version, bundle attribution, and platform capability status. On macOS, prompt-capable direct capture is deliberately skipped. For standalone CuaDriver, use `cua-driver permissions grant` to verify it explicitly. For an embedded or linked driver, use the host's permission flow for the app or executable macOS attributes this process's permission request to; the standalone command does not verify the host's capture readiness. cua-driver owns the health model; consumers stay thin.Input: all optional:{diff --git a/libs/cua-driver/rust/crates/cua-driver-core/src/health_report.rs b/libs/cua-driver/rust/crates/cua-driver-core/src/health_report.rsindex a122a3b357..e9a8e80f3d 100644--- a/libs/cua-driver/rust/crates/cua-driver-core/src/health_report.rs+++ b/libs/cua-driver/rust/crates/cua-driver-core/src/health_report.rs@@ -373,7 +373,7 @@ fn def() -> &'static ToolDef {// The description is part of the public contract — downstream// consumers depend on it spelling out `schema_version="1"` and the per-// platform check matrix. A test pins this commitment.- description: r#"Single-call end-to-end driver diagnostics. Designed to let downstream consumers ship one stable call instead of stitching together check_permissions, doctor, version, bundle attribution, and platform capability status. On macOS, prompt-capable direct capture is deliberately skipped; use `cua-driver permissions grant` to verify it explicitly. cua-driver owns the health model; consumers stay thin.+ description: r#"Single-call end-to-end driver diagnostics. Designed to let downstream consumers ship one stable call instead of stitching together check_permissions, doctor, version, bundle attribution, and platform capability status. On macOS, prompt-capable direct capture is deliberately skipped. For standalone CuaDriver, use `cua-driver permissions grant` to verify it explicitly. For an embedded or linked driver, use the host's permission flow for the app or executable macOS attributes this process's permission request to; the standalone command does not verify the host's capture readiness. cua-driver owns the health model; consumers stay thin.Input — all optional:{@@ -593,6 +593,14 @@ mod tests {assert!(chosen.contains(NAME_BINARY_VERSION));}+ #[test]+ fn advertised_capture_remediation_is_owner_scoped() {+ let description = &def().description;+ assert!(description.contains("For standalone CuaDriver"));+ assert!(description.contains("does not verify"));+ assert!(def().read_only);+ }+// ── compute_overall ──────────────────────────────────────────────#[test]diff --git a/libs/cua-driver/rust/crates/platform-macos/src/tools/health_report.rs b/libs/cua-driver/rust/crates/platform-macos/src/tools/health_report.rsindex 235671c5fa..9cbadeada9 100644--- a/libs/cua-driver/rust/crates/platform-macos/src/tools/health_report.rs+++ b/libs/cua-driver/rust/crates/platform-macos/src/tools/health_report.rs@@ -108,6 +108,10 @@ pub(crate) fn check_bundle_identity() -> CheckEntry {);}+ standalone_bundle_identity(bid, exe)+}++fn standalone_bundle_identity(bid: Option<String>, exe: String) -> CheckEntry {let data = CheckData {bundle_identifier: bid.clone(),executable_path: if exe.is_empty() { None } else { Some(exe) },@@ -121,23 +125,15 @@ pub(crate) fn check_bundle_identity() -> CheckEntry {).with_data(data);}- let (message, hint) = match bid.as_deref() {- None | Some("") => (- "Process has no CFBundleIdentifier.".to_owned(),- "Run the binary inside CuaDriver.app so TCC grants attribute correctly. \- Start the daemon with `open -n -g -a CuaDriver --args serve` and \- connect via `cua-driver mcp`."- .to_owned(),- ),- Some(other) => (- format!("Bundle is {other}, not {CANONICAL_BUNDLE_ID}."),- format!(- "TCC grants will be attributed to {other}, not the cua-driver daemon. \- Run via `cua-driver mcp` (auto-relaunches inside CuaDriver.app) or \- start the daemon manually: `open -n -g -a CuaDriver --args serve`."- ),- ),+ let message = match bid.as_deref() {+ None | Some("") => "Process has no CFBundleIdentifier.".to_owned(),+ Some(other) => format!("Bundle is {other}, not {CANONICAL_BUNDLE_ID}."),};+ let hint = "This bundle check does not identify the app or executable macOS attributes \+ this process's permission request to. For standalone CuaDriver, start the \+ daemon inside CuaDriver.app with `open -n -g -a CuaDriver --args serve` and \+ connect via `cua-driver mcp`. For an embedded or linked driver, use the \+ host's launch and permission setup instead.";CheckEntry::fail(NAME_BUNDLE_IDENTITY, message, hint).with_data(data)}@@ -192,29 +188,37 @@ fn check_embedded_bundle_identity(fn check_tcc_accessibility() -> CheckEntry {// Reuse the shared probe — do not duplicate AXIsProcessTrusted.let status = current_status();+ accessibility_check(status.accessibility, current_bundle_identifier())+}++fn accessibility_check(granted: bool, bundle_identifier: Option<String>) -> CheckEntry {let data = CheckData {- bundle_identifier: current_bundle_identifier(),+ bundle_identifier,..Default::default()};- if status.accessibility {+ if granted {return CheckEntry::pass(NAME_TCC_ACCESSIBILITY, "Accessibility is granted.").with_data(data);}CheckEntry::fail(NAME_TCC_ACCESSIBILITY,"Accessibility is NOT granted for this process.",- "Grant Accessibility to CuaDriver.app in System Settings → Privacy & Security → \- Accessibility. If the process bundle is not com.trycua.driver (see bundle_identity), \- the grant must target the responsible app — restart via `cua-driver mcp` to relaunch \- inside CuaDriver.app.",+ "Grant Accessibility to the app or executable macOS attributes this process's \+ permission request to in System Settings → Privacy & Security → Accessibility. \+ For standalone CuaDriver, use CuaDriver.app. For an embedded or linked driver, \+ follow the host's permission setup; a grant to a separate CuaDriver.app does not \+ verify this process's access.",).with_data(data)}fn check_tcc_screen_recording() -> CheckEntry {- let granted = screen_recording_granted();+ screen_recording_check(screen_recording_granted(), current_bundle_identifier())+}++fn screen_recording_check(granted: bool, bundle_identifier: Option<String>) -> CheckEntry {let data = CheckData {- bundle_identifier: current_bundle_identifier(),+ bundle_identifier,..Default::default()};if granted {@@ -224,9 +228,11 @@ fn check_tcc_screen_recording() -> CheckEntry {CheckEntry::fail(NAME_TCC_SCREEN_RECORDING,"Screen Recording is NOT granted for this process.",- "Grant Screen Recording to CuaDriver.app in System Settings → Privacy & Security → \- Screen Recording. The grant is attributed to the responsible process — see \- bundle_identity to confirm the right binary is being prompted.",+ "Grant Screen Recording to the app or executable macOS attributes this process's \+ permission request to in System Settings → Privacy & Security → Screen Recording. \+ For standalone CuaDriver, use CuaDriver.app. For an embedded or linked driver, \+ follow the host's permission setup; a grant to a separate CuaDriver.app does not \+ verify this process's access.",).with_data(data)}@@ -252,11 +258,11 @@ fn check_screen_capture_capability() -> CheckEntry {// SCShareableContent::get() is not a read-only probe on recent macOS:// Tahoe may display the separate private-window-picker bypass consent.// `health_report` is declared read-only, so fail closed to an explicit- // unknown/skip state. `permissions grant` is the sole flow allowed to- // explain, request, and verify direct capture.+ // unknown/skip state. Explicit verification must use the permission+ // flow for the app or executable macOS attributes the request to.CheckEntry::skip(NAME_SCREEN_CAPTURE_CAPABILITY,- "Direct ScreenCaptureKit readiness was not probed because health_report is read-only; run `cua-driver permissions grant` to request and verify it explicitly.",+ "Direct ScreenCaptureKit readiness was not probed because health_report is read-only. For standalone CuaDriver, use `cua-driver permissions grant` to request and verify it explicitly. For an embedded or linked driver, use the host's permission flow for the app or executable macOS attributes this process's permission request to; the standalone command does not verify the host's capture readiness.",)}@@ -394,6 +400,86 @@ mod tests {assert!(data.architecture.is_some(), "architecture must be set");}+ #[test]+ fn permission_remediation_preserves_attribution_uncertainty() {+ let mut wrong_hints = Vec::new();+ for check in [accessibility_check, screen_recording_check] {+ for bid in [+ None,+ Some(CANONICAL_BUNDLE_ID.to_owned()),+ Some("com.example.host".to_owned()),+ ] {+ let denied = check(false, bid.clone());+ assert_eq!(denied.status, CheckStatus::Fail);+ assert_eq!(+ denied+ .data+ .as_ref()+ .and_then(|d| d.bundle_identifier.clone()),+ bid+ );+ let hint = denied.hint.unwrap();+ if !hint.contains("app or executable macOS attributes")+ || !hint.contains("For standalone CuaDriver")+ {+ wrong_hints.push(format!("{} {bid:?}: {hint}", denied.name));+ }+ let granted = check(true, bid.clone());+ assert_eq!(granted.status, CheckStatus::Pass);+ assert!(granted.hint.is_none());+ assert_eq!(granted.data.and_then(|d| d.bundle_identifier), bid);+ }+ }+ assert!(wrong_hints.is_empty(), "{}", wrong_hints.join("\n"));+ }++ #[test]+ fn bundle_remediation_qualifies_standalone_launch_in_both_failure_branches() {+ let mut wrong_hints = Vec::new();+ for bid in [+ None,+ Some(String::new()),+ Some("com.example.host".to_owned()),+ ] {+ let entry = standalone_bundle_identity(bid.clone(), "/tmp/host".to_owned());+ assert_eq!(entry.status, CheckStatus::Fail);+ let hint = entry.hint.unwrap();+ if !hint.contains("For standalone CuaDriver")+ || !hint.contains("does not identify")+ || hint.contains("TCC grants will be attributed to")+ {+ wrong_hints.push(format!("{bid:?}: {hint}"));+ }+ let data = entry.data.unwrap();+ assert_eq!(data.bundle_identifier, bid);+ assert_eq!(data.executable_path.as_deref(), Some("/tmp/host"));+ assert_eq!(data.identity_source.as_deref(), Some("current_process"));+ }+ let entry = standalone_bundle_identity(Some(CANONICAL_BUNDLE_ID.to_owned()), String::new());+ assert_eq!(entry.status, CheckStatus::Pass);+ assert!(entry.hint.is_none());+ assert!(wrong_hints.is_empty(), "{}", wrong_hints.join("\n"));+ }++ #[tokio::test]+ async fn capture_remediation_through_actual_provider_dispatcher_is_owner_scoped() {+ let tool = HealthReportTool::new(Arc::new(MacosHealthProvider));+ let result = tool+ .invoke(serde_json::json!({"include": [NAME_SCREEN_CAPTURE_CAPABILITY]}))+ .await;+ let report = result.structured_content.unwrap();+ let check = report["checks"]+ .as_array()+ .unwrap()+ .iter()+ .find(|c| c["name"] == NAME_SCREEN_CAPTURE_CAPABILITY)+ .unwrap();+ assert_eq!(check["status"], "skip");+ let message = check["message"].as_str().unwrap();+ assert!(message.contains("For standalone CuaDriver"), "{message}");+ assert!(message.contains("does not verify"), "{message}");+ }+#[test]fn screen_capture_capability_is_not_probed_by_read_only_health_report() {let entry = check_screen_capture_capability();diff --git a/scripts/docs-generators/cli-specs/cua-driver-mcp-linux.json b/scripts/docs-generators/cli-specs/cua-driver-mcp-linux.jsonindex 7514db9781..e1bd320e28 100644--- a/scripts/docs-generators/cli-specs/cua-driver-mcp-linux.json+++ b/scripts/docs-generators/cli-specs/cua-driver-mcp-linux.json@@ -2226,7 +2226,7 @@"read_only": true},{- "description": "Single-call end-to-end driver diagnostics. Designed to let downstream consumers ship one stable call instead of stitching together check_permissions, doctor, version, bundle attribution, and platform capability status. On macOS, prompt-capable direct capture is deliberately skipped; use `cua-driver permissions grant` to verify it explicitly. cua-driver owns the health model; consumers stay thin.\n\nInput — all optional:\n {\n \"include\": [\"<check_name>\", ...], // run only these\n \"skip\": [\"<check_name>\", ...] // skip these\n }\nIf both are given, `include` wins.\n\nCanonical check names:\n macOS : binary_version, platform_supported, session_active,\n bundle_identity, tcc_accessibility, tcc_screen_recording,\n ax_capability, screen_capture_capability\n Windows: binary_version, platform_supported, session_active,\n ax_capability (via UIA), screen_capture_capability (via DXGI)\n Linux : binary_version, platform_supported, session_active,\n ax_capability (via AT-SPI), screen_capture_capability (via X11)\n\nOutput — stable contract, schema_version=\"1\":\n {\n \"schema_version\": \"1\",\n \"platform\": \"darwin\" | \"win32\" | \"linux\",\n \"driver_version\": \"<semver>\",\n \"overall\": \"ok\" | \"degraded\" | \"failed\",\n \"checks\": [\n {\n \"name\": \"<one of the canonical names above>\",\n \"status\": \"pass\" | \"fail\" | \"skip\",\n \"message\": \"<one-line summary, always present>\",\n \"hint\": \"<remediation step, present when status=fail>\",\n \"data\": { /* check-specific structured fields */ }\n },\n ...\n ]\n }\n\n`overall` rules:\n - `ok` — every non-skipped check passes\n - `degraded` — at least one non-core check fails (binary is still usable)\n - `failed` — any core check fails (binary_version, platform_supported, session_active)\n\nStability: schema_version=\"1\" is the contract. Future breaking changes will be `\"2\"`. Adding new check names under the same schema_version is non-breaking; consumers must tolerate unknown check names.",+ "description": "Single-call end-to-end driver diagnostics. Designed to let downstream consumers ship one stable call instead of stitching together check_permissions, doctor, version, bundle attribution, and platform capability status. On macOS, prompt-capable direct capture is deliberately skipped. For standalone CuaDriver, use `cua-driver permissions grant` to verify it explicitly. For an embedded or linked driver, use the host's permission flow for the app or executable macOS attributes this process's permission request to; the standalone command does not verify the host's capture readiness. cua-driver owns the health model; consumers stay thin.\n\nInput — all optional:\n {\n \"include\": [\"<check_name>\", ...], // run only these\n \"skip\": [\"<check_name>\", ...] // skip these\n }\nIf both are given, `include` wins.\n\nCanonical check names:\n macOS : binary_version, platform_supported, session_active,\n bundle_identity, tcc_accessibility, tcc_screen_recording,\n ax_capability, screen_capture_capability\n Windows: binary_version, platform_supported, session_active,\n ax_capability (via UIA), screen_capture_capability (via DXGI)\n Linux : binary_version, platform_supported, session_active,\n ax_capability (via AT-SPI), screen_capture_capability (via X11)\n\nOutput — stable contract, schema_version=\"1\":\n {\n \"schema_version\": \"1\",\n \"platform\": \"darwin\" | \"win32\" | \"linux\",\n \"driver_version\": \"<semver>\",\n \"overall\": \"ok\" | \"degraded\" | \"failed\",\n \"checks\": [\n {\n \"name\": \"<one of the canonical names above>\",\n \"status\": \"pass\" | \"fail\" | \"skip\",\n \"message\": \"<one-line summary, always present>\",\n \"hint\": \"<remediation step, present when status=fail>\",\n \"data\": { /* check-specific structured fields */ }\n },\n ...\n ]\n }\n\n`overall` rules:\n - `ok` — every non-skipped check passes\n - `degraded` — at least one non-core check fails (binary is still usable)\n - `failed` — any core check fails (binary_version, platform_supported, session_active)\n\nStability: schema_version=\"1\" is the contract. Future breaking changes will be `\"2\"`. Adding new check names under the same schema_version is non-breaking; consumers must tolerate unknown check names.","destructive": false,"idempotent": true,"input_schema": {diff --git a/scripts/docs-generators/cli-specs/cua-driver-mcp-macos.json b/scripts/docs-generators/cli-specs/cua-driver-mcp-macos.jsonindex 673a99fbff..2a84f7a268 100644--- a/scripts/docs-generators/cli-specs/cua-driver-mcp-macos.json+++ b/scripts/docs-generators/cli-specs/cua-driver-mcp-macos.json@@ -1870,7 +1870,7 @@"read_only": false},{- "description": "Single-call end-to-end driver diagnostics. Designed to let downstream consumers ship one stable call instead of stitching together check_permissions, doctor, version, bundle attribution, and platform capability status. On macOS, prompt-capable direct capture is deliberately skipped; use `cua-driver permissions grant` to verify it explicitly. cua-driver owns the health model; consumers stay thin.\n\nInput — all optional:\n {\n \"include\": [\"<check_name>\", ...], // run only these\n \"skip\": [\"<check_name>\", ...] // skip these\n }\nIf both are given, `include` wins.\n\nCanonical check names:\n macOS : binary_version, platform_supported, session_active,\n bundle_identity, tcc_accessibility, tcc_screen_recording,\n ax_capability, screen_capture_capability\n Windows: binary_version, platform_supported, session_active,\n ax_capability (via UIA), screen_capture_capability (via DXGI)\n Linux : binary_version, platform_supported, session_active,\n ax_capability (via AT-SPI), screen_capture_capability (via X11)\n\nOutput — stable contract, schema_version=\"1\":\n {\n \"schema_version\": \"1\",\n \"platform\": \"darwin\" | \"win32\" | \"linux\",\n \"driver_version\": \"<semver>\",\n \"overall\": \"ok\" | \"degraded\" | \"failed\",\n \"checks\": [\n {\n \"name\": \"<one of the canonical names above>\",\n \"status\": \"pass\" | \"fail\" | \"skip\",\n \"message\": \"<one-line summary, always present>\",\n \"hint\": \"<remediation step, present when status=fail>\",\n \"data\": { /* check-specific structured fields */ }\n },\n ...\n ]\n }\n\n`overall` rules:\n - `ok` — every non-skipped check passes\n - `degraded` — at least one non-core check fails (binary is still usable)\n - `failed` — any core check fails (binary_version, platform_supported, session_active)\n\nStability: schema_version=\"1\" is the contract. Future breaking changes will be `\"2\"`. Adding new check names under the same schema_version is non-breaking; consumers must tolerate unknown check names.",+ "description": "Single-call end-to-end driver diagnostics. Designed to let downstream consumers ship one stable call instead of stitching together check_permissions, doctor, version, bundle attribution, and platform capability status. On macOS, prompt-capable direct capture is deliberately skipped. For standalone CuaDriver, use `cua-driver permissions grant` to verify it explicitly. For an embedded or linked driver, use the host's permission flow for the app or executable macOS attributes this process's permission request to; the standalone command does not verify the host's capture readiness. cua-driver owns the health model; consumers stay thin.\n\nInput — all optional:\n {\n \"include\": [\"<check_name>\", ...], // run only these\n \"skip\": [\"<check_name>\", ...] // skip these\n }\nIf both are given, `include` wins.\n\nCanonical check names:\n macOS : binary_version, platform_supported, session_active,\n bundle_identity, tcc_accessibility, tcc_screen_recording,\n ax_capability, screen_capture_capability\n Windows: binary_version, platform_supported, session_active,\n ax_capability (via UIA), screen_capture_capability (via DXGI)\n Linux : binary_version, platform_supported, session_active,\n ax_capability (via AT-SPI), screen_capture_capability (via X11)\n\nOutput — stable contract, schema_version=\"1\":\n {\n \"schema_version\": \"1\",\n \"platform\": \"darwin\" | \"win32\" | \"linux\",\n \"driver_version\": \"<semver>\",\n \"overall\": \"ok\" | \"degraded\" | \"failed\",\n \"checks\": [\n {\n \"name\": \"<one of the canonical names above>\",\n \"status\": \"pass\" | \"fail\" | \"skip\",\n \"message\": \"<one-line summary, always present>\",\n \"hint\": \"<remediation step, present when status=fail>\",\n \"data\": { /* check-specific structured fields */ }\n },\n ...\n ]\n }\n\n`overall` rules:\n - `ok` — every non-skipped check passes\n - `degraded` — at least one non-core check fails (binary is still usable)\n - `failed` — any core check fails (binary_version, platform_supported, session_active)\n\nStability: schema_version=\"1\" is the contract. Future breaking changes will be `\"2\"`. Adding new check names under the same schema_version is non-breaking; consumers must tolerate unknown check names.","destructive": false,"idempotent": true,"input_schema": {diff --git a/scripts/docs-generators/cli-specs/cua-driver-mcp-windows.json b/scripts/docs-generators/cli-specs/cua-driver-mcp-windows.jsonindex c3a73f357b..bbf00bc656 100644--- a/scripts/docs-generators/cli-specs/cua-driver-mcp-windows.json+++ b/scripts/docs-generators/cli-specs/cua-driver-mcp-windows.json@@ -1918,7 +1918,7 @@"read_only": true},{- "description": "Single-call end-to-end driver diagnostics. Designed to let downstream consumers ship one stable call instead of stitching together check_permissions, doctor, version, bundle attribution, and platform capability status. On macOS, prompt-capable direct capture is deliberately skipped; use `cua-driver permissions grant` to verify it explicitly. cua-driver owns the health model; consumers stay thin.\n\nInput — all optional:\n {\n \"include\": [\"<check_name>\", ...], // run only these\n \"skip\": [\"<check_name>\", ...] // skip these\n }\nIf both are given, `include` wins.\n\nCanonical check names:\n macOS : binary_version, platform_supported, session_active,\n bundle_identity, tcc_accessibility, tcc_screen_recording,\n ax_capability, screen_capture_capability\n Windows: binary_version, platform_supported, session_active,\n ax_capability (via UIA), screen_capture_capability (via DXGI)\n Linux : binary_version, platform_supported, session_active,\n ax_capability (via AT-SPI), screen_capture_capability (via X11)\n\nOutput — stable contract, schema_version=\"1\":\n {\n \"schema_version\": \"1\",\n \"platform\": \"darwin\" | \"win32\" | \"linux\",\n \"driver_version\": \"<semver>\",\n \"overall\": \"ok\" | \"degraded\" | \"failed\",\n \"checks\": [\n {\n \"name\": \"<one of the canonical names above>\",\n \"status\": \"pass\" | \"fail\" | \"skip\",\n \"message\": \"<one-line summary, always present>\",\n \"hint\": \"<remediation step, present when status=fail>\",\n \"data\": { /* check-specific structured fields */ }\n },\n ...\n ]\n }\n\n`overall` rules:\n - `ok` — every non-skipped check passes\n - `degraded` — at least one non-core check fails (binary is still usable)\n - `failed` — any core check fails (binary_version, platform_supported, session_active)\n\nStability: schema_version=\"1\" is the contract. Future breaking changes will be `\"2\"`. Adding new check names under the same schema_version is non-breaking; consumers must tolerate unknown check names.",+ "description": "Single-call end-to-end driver diagnostics. Designed to let downstream consumers ship one stable call instead of stitching together check_permissions, doctor, version, bundle attribution, and platform capability status. On macOS, prompt-capable direct capture is deliberately skipped. For standalone CuaDriver, use `cua-driver permissions grant` to verify it explicitly. For an embedded or linked driver, use the host's permission flow for the app or executable macOS attributes this process's permission request to; the standalone command does not verify the host's capture readiness. cua-driver owns the health model; consumers stay thin.\n\nInput — all optional:\n {\n \"include\": [\"<check_name>\", ...], // run only these\n \"skip\": [\"<check_name>\", ...] // skip these\n }\nIf both are given, `include` wins.\n\nCanonical check names:\n macOS : binary_version, platform_supported, session_active,\n bundle_identity, tcc_accessibility, tcc_screen_recording,\n ax_capability, screen_capture_capability\n Windows: binary_version, platform_supported, session_active,\n ax_capability (via UIA), screen_capture_capability (via DXGI)\n Linux : binary_version, platform_supported, session_active,\n ax_capability (via AT-SPI), screen_capture_capability (via X11)\n\nOutput — stable contract, schema_version=\"1\":\n {\n \"schema_version\": \"1\",\n \"platform\": \"darwin\" | \"win32\" | \"linux\",\n \"driver_version\": \"<semver>\",\n \"overall\": \"ok\" | \"degraded\" | \"failed\",\n \"checks\": [\n {\n \"name\": \"<one of the canonical names above>\",\n \"status\": \"pass\" | \"fail\" | \"skip\",\n \"message\": \"<one-line summary, always present>\",\n \"hint\": \"<remediation step, present when status=fail>\",\n \"data\": { /* check-specific structured fields */ }\n },\n ...\n ]\n }\n\n`overall` rules:\n - `ok` — every non-skipped check passes\n - `degraded` — at least one non-core check fails (binary is still usable)\n - `failed` — any core check fails (binary_version, platform_supported, session_active)\n\nStability: schema_version=\"1\" is the contract. Future breaking changes will be `\"2\"`. Adding new check names under the same schema_version is non-breaking; consumers must tolerate unknown check names.","destructive": false,"idempotent": true,"input_schema": {