Computer control tools for Hanzo AI - automation, screen recording, activity detection, session compression for Claude (100 images/32MB/1568px 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.0.tar.gz
(120.3 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.0.tar.gz.
File metadata
- Download URL: hanzo_tools_computer-0.5.0.tar.gz
- Upload date:
- Size: 120.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbb2450b40340308ac8f2ac42612869c9ff8ffda0abedd663553895fdfc3662e
|
|
| MD5 |
75e7c5ea237654e1e4114ce744c783be
|
|
| BLAKE2b-256 |
eabf16f22a1bc25635a44fce2b9c26d4a4f896c3a113a1b6671bae279ba7f6ee
|
File details
Details for the file hanzo_tools_computer-0.5.0-py3-none-any.whl.
File metadata
- Download URL: hanzo_tools_computer-0.5.0-py3-none-any.whl
- Upload date:
- Size: 45.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c12187639014f333b701c58c22267563c92dd8c73ff3d63847438850830d893e
|
|
| MD5 |
72cdc0f8e82b0dfadc276b8074dd4aca
|
|
| BLAKE2b-256 |
02c2481e099bc7e872db3fa99b9c4c544cdfa5e0273b754cb17ceebd8d649567
|