mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
- Add hanzo-kms v1.0.0: Secret management SDK compatible with Infisical API - Sync and async clients with multiple auth methods (Universal, AWS IAM, Azure, GCP, K8s) - Full CRUD operations for secrets with environment injection - Add MCP proxy system for lazy-loading external MCP servers - mcp_proxy.py: Dynamic MCP server connection and tool discovery - proxy_tool.py: Tool for managing external MCP server proxies - platform_auth.py: Hanzo Platform authentication utilities - Built-in servers: platform, github, cloudflare, postgres, sqlite, docker, k8s - Add agent reflexion module for self-correction and rule management - ReflexionEngine for reflection and rule-based behavior updates - Integration with hanzo-memory for persistent rules - Add self_learning_agent example demonstrating reflexion capabilities - Update ps_tool with improved process management and log handling - Update browser tools with enhanced CDP bridge and automation - Bump dependency versions across all tool packages All tests pass (3156 passed)
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="[email protected]")
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