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
Updated README.md
Dillon DuPontf9d6edd1c76a
diff --git a/README.md b/README.mdindex a14643865d..1465276959 100644--- a/README.md+++ b/README.md@@ -247,6 +247,9 @@ docker run -it --rm \For complete examples, see [computer_examples.py](./examples/computer_examples.py) or [computer_nb.ipynb](./notebooks/computer_nb.ipynb)```python+# Shell Actions+await computer.interface.run_command(cmd) # Run shell command+# Mouse Actionsawait computer.interface.left_click(x, y) # Left click at coordinatesawait computer.interface.right_click(x, y) # Right click at coordinates@@ -254,11 +257,20 @@ await computer.interface.double_click(x, y) # Double click at coordinatesawait computer.interface.move_cursor(x, y) # Move cursor to coordinatesawait computer.interface.drag_to(x, y, duration) # Drag to coordinatesawait computer.interface.get_cursor_position() # Get current cursor position+await computer.interface.mouse_down(x, y, button="left") # Press and hold a mouse button+await computer.interface.mouse_up(x, y, button="left") # Release a mouse button# Keyboard Actionsawait computer.interface.type_text("Hello") # Type textawait computer.interface.press_key("enter") # Press a single keyawait computer.interface.hotkey("command", "c") # Press key combination+await computer.interface.key_down("command") # Press and hold a key+await computer.interface.key_up("command") # Release a key++# Scrolling Actions+await computer.interface.scroll(x, y) # Scroll the mouse wheel+await computer.interface.scroll_down(clicks) # Scroll down+await computer.interface.scroll_up(clicks) # Scroll up# Screen Actionsawait computer.interface.screenshot() # Take a screenshot@@ -271,7 +283,14 @@ await computer.interface.copy_to_clipboard() # Get clipboard content# File System Operationsawait computer.interface.file_exists(path) # Check if file existsawait computer.interface.directory_exists(path) # Check if directory exists-await computer.interface.run_command(cmd) # Run shell command+await computer.interface.read_text(path) # Read file content+await computer.interface.write_text(path, content) # Write file content+await computer.interface.read_bytes(path) # Read file content as bytes+await computer.interface.write_bytes(path, content) # Write file content as bytes+await computer.interface.delete_file(path) # Delete file+await computer.interface.create_dir(path) # Create directory+await computer.interface.delete_dir(path) # Delete directory+await computer.interface.list_dir(path) # List directory contents# Accessibilityawait computer.interface.get_accessibility_tree() # Get accessibility tree