Skip to main content

Browser automation tools with ZAP-native extension routing — Python MCP hosts the ZAP server on an OS-assigned port and advertises via mDNS (HIP-0069). No node bridge, no port pool, no lockfile.

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.5.tar.gz (44.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.5-py3-none-any.whl (41.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hanzo_tools_browser-0.5.5.tar.gz
  • Upload date:
  • Size: 44.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hanzo_tools_browser-0.5.5.tar.gz
Algorithm Hash digest
SHA256 f4e268c53a58b7ea737b9a0089d4ff0814222f57c670ed88cfe3e4538917c5f9
MD5 9fe7e386dc707c3e6feb76b1f81553d5
BLAKE2b-256 3a8dc42151446f770847a2996f06878eb7d2b1f5d80d9d3fe6b5b91088e9ac7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hanzo_tools_browser-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 41.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hanzo_tools_browser-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5c73d2a491063b23b7b92f4a08172e05481f79bfd10a456dbab802a2a734b811
MD5 c5c6bda70ccb82e6fe10ea3a8b48e680
BLAKE2b-256 28b41b5e64d77811a8e97ae158171d6fa0e3e58259a0c137920625160c58bf13

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