Skip to main content

Browser automation tools — zapd consumer. The MCP hosts no server; it routes CDP commands to the browser extension through the shared local zapd router (~/.zap/run/zapd.sock). No in-process server, no HTTP bridge, no mDNS, no port pool.

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


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_browser-0.5.8.tar.gz (34.3 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_browser-0.5.8-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

Details for the file hanzo_tools_browser-0.5.8.tar.gz.

File metadata

  • Download URL: hanzo_tools_browser-0.5.8.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for hanzo_tools_browser-0.5.8.tar.gz
Algorithm Hash digest
SHA256 ca7bf73d95906c88f6d0a233767560d6010435b096b50e46f1c92527738d8cd0
MD5 49be4f8654cfb9db3361dc6c9fc92f55
BLAKE2b-256 539f29c4e5342ff1194b33f3e1ef9cb2b35f8671ddba876ea1944ece7ddd4b93

See more details on using hashes here.

File details

Details for the file hanzo_tools_browser-0.5.8-py3-none-any.whl.

File metadata

File hashes

Hashes for hanzo_tools_browser-0.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ef8671b631732228c1a6bdb1e2f22374ce3c72bcc648864370aeee154cb27aa1
MD5 6baf4ee1138e2fefd96e660364936f8c
BLAKE2b-256 36ef0d8207933b3f96d9fabf0047c0a02a8dcb60f1f07b498be30d902c9c1888

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page