Skip to main content

Browser automation tools with ZAP-native extension routing — Python MCP hosts the ZAP server directly, no node bridge in the critical path. Playwright remains as offline 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


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.0.tar.gz (45.0 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.0-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hanzo_tools_browser-0.5.0.tar.gz
  • Upload date:
  • Size: 45.0 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.0.tar.gz
Algorithm Hash digest
SHA256 25a2cdf0949d25588d11de8699c325528a6ba32779f37b578fda873bbaa13d35
MD5 0c3f024ea21cde9e2be220b3c8a79ea2
BLAKE2b-256 5562ea0500a5f577197e4b13015cde8e107cdd1b30c8433c8164e369da249541

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hanzo_tools_browser-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1249250920bc1bf80de792f7c498463b0313529a866928ee06803fb00930d7ea
MD5 e509e06967a8af52dfa2ff5a9bb1413f
BLAKE2b-256 8066350fb2e8d9bf1c5ee69f7b62d8cc95cc990fbae48819d3c1f068dbc678e2

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