Browser automation tools with extension-first routing - uses Hanzo browser extension when available, Playwright as fallback
Project description
hanzo-tools-browser
Browser automation tools for Hanzo MCP using Playwright.
Installation
pip install hanzo-tools-browser
Tools
browser - Complete Playwright API
70+ browser actions for full automation.
Navigation:
browser(action="navigate", url="https://example.com")
browser(action="go_back")
browser(action="reload")
Input:
browser(action="click", selector="button.submit")
browser(action="fill", selector="input[name=email]", text="user@example.com")
browser(action="type", selector="textarea", text="Hello")
Touch/Mobile:
browser(action="tap", selector=".button")
browser(action="swipe", selector=".carousel", direction="left")
browser(action="emulate", device="mobile") # or tablet, laptop
Assertions:
browser(action="expect_visible", selector=".modal")
browser(action="expect_text", selector="h1", expected="Welcome")
browser(action="expect_url", expected="*/dashboard*")
Content:
browser(action="get_text", selector=".content")
browser(action="screenshot", full_page=True)
browser(action="pdf")
Parallel Agents:
# Each agent gets isolated session
browser(action="new_context") # Separate cookies/storage
Device Presets:
mobile- iPhone-like (390x844, touch)tablet- iPad-like (1024x1366, touch)laptop- MacBook-like (1440x900)iphone_14,pixel_7,ipad_pro, etc.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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_browser-0.2.1.tar.gz.
File metadata
- Download URL: hanzo_tools_browser-0.2.1.tar.gz
- Upload date:
- Size: 22.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 |
506101bb2625b2fe0d21f6e2000d9b8b1a617cc32f155dc48a0c8399d2207bfa
|
|
| MD5 |
119d53220861b7f84d09ec8119868981
|
|
| BLAKE2b-256 |
a7db6789c7b31bc30a0020e5acf8c48fbf6f594f1769199ccdb279282ecbeb91
|
File details
Details for the file hanzo_tools_browser-0.2.1-py3-none-any.whl.
File metadata
- Download URL: hanzo_tools_browser-0.2.1-py3-none-any.whl
- Upload date:
- Size: 22.3 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 |
57aee2bd780befe50a861ca8b3193d88bf5888ae8095de66fa5d2a1e361b94a6
|
|
| MD5 |
b6076ba6063c0ed8def3f44dce7ffc17
|
|
| BLAKE2b-256 |
ec3dbabe981a2ffc530566183b8834bef70b31f4ffb647d58e9f8514c57c8deb
|