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 stringpress- Press single keyhotkey- Press key combination
Screen
screenshot- Capture screenlocate- Find image on screeninfo- 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.2.tar.gz
(109.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hanzo_tools_computer-0.5.2.tar.gz.
File metadata
- Download URL: hanzo_tools_computer-0.5.2.tar.gz
- Upload date:
- Size: 109.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdec76dad07d01587ed5358ef1581ddcf83cb462b30e8eff2a2884905acef404
|
|
| MD5 |
394501588b4cd09fa2a3f438b6d4b6f6
|
|
| BLAKE2b-256 |
bcbd00d4e47a49c33b057ff443f33b8b836b7b0ccbeb10972d3d2944664bf63f
|
File details
Details for the file hanzo_tools_computer-0.5.2-py3-none-any.whl.
File metadata
- Download URL: hanzo_tools_computer-0.5.2-py3-none-any.whl
- Upload date:
- Size: 31.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88baadcec8463d585cf7adc06cfa61acf13a08d967e81fd9a99805adb401c5d2
|
|
| MD5 |
7acbe235b1eac8936f491536b6cf0974
|
|
| BLAKE2b-256 |
8090143881ff12f14e10f87ae33a5c19087df74e9a71ecf131caa5159fd84403
|