Skip to main content

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


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.2.2.tar.gz (24.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.2.2-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hanzo_tools_browser-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0f5abece40387e8ba7208d102e0d0a93d7891f2022349829869acb453ba6d627
MD5 c008a82e088747642124451b702b68cc
BLAKE2b-256 a3680d7c90069c91de27c8aee7fe1e465be1f376e7e4689e9d411796fa064009

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hanzo_tools_browser-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f251db5a3630c9c6ff04dc77409b65c3f81e34436818c734f475a076c769dd1b
MD5 f9fa0244ca6c6a3187a3905f079eed53
BLAKE2b-256 6a6ba9e8fb6b657a009d70d1536072024503899bba89ed390e5b141aaf9e9c5a

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