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
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)
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6753c557016bcfa5e24bc2dc3e8c553eafa7ab2ef36792064b0a3b802cef565
|
|
| MD5 |
2b07a04e911f7a29fa986bc45779401e
|
|
| BLAKE2b-256 |
6481e68731705f044b9c1ab1d13f70c5a96fc7a8ab59c99f8bdc459d22963e0b
|
File details
Details for the file hanzo_tools_computer-0.5.5-py3-none-any.whl.
File metadata
- Download URL: hanzo_tools_computer-0.5.5-py3-none-any.whl
- Upload date:
- Size: 36.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
154d53dc61cc4a3adeba0b0afd63019ffc5c3ad5f44bbff3e69ea3664c115bbc
|
|
| MD5 |
35f25fc8ef956cb5f6029162e593659b
|
|
| BLAKE2b-256 |
b7ad8fea6e548e192c5a1e0b20cc5af2d4a4e4a049c108bd0d4f7c96ff4b1226
|