Skip to main content

Computer control tools for Hanzo AI - automation, video capture, media processing with activity detection (100 images/32MB limits)

Project description

hanzo-tools-computer

Computer control tools for Hanzo AI - pyautogui-based Mac automation.

Installation

pip install hanzo-tools-computer

Usage

from hanzo_tools.computer import ComputerTool, register_tools

# Register with MCP server
register_tools(mcp_server, permission_manager)

Actions

Mouse

  • click - Click at (x, y)
  • double_click - Double click at (x, y)
  • right_click - Right click at (x, y)
  • move - Move mouse to (x, y)
  • drag - Drag to (x, y)
  • scroll - Scroll by amount

Keyboard

  • type - Type text string
  • press - Press single key
  • hotkey - Press key combination

Screen

  • screenshot - Capture screen
  • locate - Find image on screen
  • info - Get screen/mouse info

Examples

# Click at coordinates
computer(action="click", x=100, y=200)

# Type text
computer(action="type", text="Hello world")

# Keyboard shortcut (Cmd+C on Mac)
computer(action="hotkey", keys=["command", "c"])

# Take screenshot
computer(action="screenshot")

# Get screen info
computer(action="info")

Safety

  • FAILSAFE enabled: Move mouse to corner to abort
  • macOS only (checks platform)
  • All actions run in executor threads (non-blocking)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hanzo_tools_computer-0.4.0.tar.gz (108.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hanzo_tools_computer-0.4.0-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

File details

Details for the file hanzo_tools_computer-0.4.0.tar.gz.

File metadata

  • Download URL: hanzo_tools_computer-0.4.0.tar.gz
  • Upload date:
  • Size: 108.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for hanzo_tools_computer-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8653e9ed187e5793aae747f5b9acfcbfd566c4b980590c88a3134246e67a393e
MD5 3442f56c5117388414e54129c60efabc
BLAKE2b-256 557d19fc8882e03168a764dfe2ff33766a438625b447b8c1965e140539c842f3

See more details on using hashes here.

File details

Details for the file hanzo_tools_computer-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hanzo_tools_computer-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b9b7f4207047aab13acb3987b398fddc22decbc73bb29bd830d20475972d439
MD5 1d9101c398b251d8d6da393259202087
BLAKE2b-256 a2c72c1934fce7d694c7c3a1ad4d7975ab73476312a5aa368261ac84c0e7c5a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page