Skip to main content

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

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.5.tar.gz (114.0 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.5-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hanzo_tools_computer-0.5.5.tar.gz
  • Upload date:
  • Size: 114.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.14

File hashes

Hashes for hanzo_tools_computer-0.5.5.tar.gz
Algorithm Hash digest
SHA256 e6753c557016bcfa5e24bc2dc3e8c553eafa7ab2ef36792064b0a3b802cef565
MD5 2b07a04e911f7a29fa986bc45779401e
BLAKE2b-256 6481e68731705f044b9c1ab1d13f70c5a96fc7a8ab59c99f8bdc459d22963e0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hanzo_tools_computer-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 154d53dc61cc4a3adeba0b0afd63019ffc5c3ad5f44bbff3e69ea3664c115bbc
MD5 35f25fc8ef956cb5f6029162e593659b
BLAKE2b-256 b7ad8fea6e548e192c5a1e0b20cc5af2d4a4e4a049c108bd0d4f7c96ff4b1226

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.5 This release

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page