Skip to main content

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

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.2.0.tar.gz (10.5 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.2.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hanzo_tools_computer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e540d711a06adfa22e5332e2bb4398e2e618a529603c2eb90aa3dae641203451
MD5 64c2172eba39aee22211ed6816eb9a63
BLAKE2b-256 b8b52e67609d786a3b7a880bc240b05a2cded1b5d51dd106ac31881997545bf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hanzo_tools_computer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce699249948476d3f60b3324311db53470cc60da5fe5036d22f292130c713673
MD5 5881a117a8e464ed644167e816b5a76d
BLAKE2b-256 677c20af06c8a2780f9f501910979eeade37d985b1ef907a680e2bd1e517afb7

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