Skip to main content

Computer control tools for Hanzo AI - automation, screen recording, activity detection, session compression for Claude (100 images/32MB/2000px 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.5.4.tar.gz (111.9 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.5.4-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hanzo_tools_computer-0.5.4.tar.gz
Algorithm Hash digest
SHA256 b06ad8c00e0d523f174bf806783af249b2d48867d12a8727abc2b93bed27c02a
MD5 ec656d742554f88c592e7ee6364606ca
BLAKE2b-256 0bed0a46c4bd920dcc102dc23581fd102872ed237f8d2e3c31e756df9e943f3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hanzo_tools_computer-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd1ae979b8b923d1f3d7a66e0cc72f67eb11b243ee9a083cc8436b2ace82e6ef
MD5 008eaa5b3e903d3142238ccb48d07a3a
BLAKE2b-256 359162cb7defcd7198017249fa717e5c2e324a8ff25d6a674f5eab6364fcc765

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