Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Fix get_accessibility_tree

Dillon DuPont616bbe00524b
diff --git a/libs/computer/computer/interface/macos.py b/libs/computer/computer/interface/macos.py
index 2460086c83..c267435230 100644
--- a/libs/computer/computer/interface/macos.py
+++ b/libs/computer/computer/interface/macos.py
@@ -523,7 +523,7 @@ class MacOSComputerInterface(BaseComputerInterface):
result = await self._send_command("get_accessibility_tree")
if not result.get("success", False):
raise RuntimeError(result.get("error", "Failed to get accessibility tree"))
- return result.get("tree", {})
+ return result
async def get_active_window_bounds(self) -> Dict[str, int]:
"""Get the bounds of the currently active window."""