Package-level declarations
Types
Link copied to clipboard
The page size a WebBrowser presents, in CSS pixels, and whether it asks sites for their desktop layout. Desktop is Playwright's default viewport (as the Pydantic AI Harness browser uses); Mobile a typical phone.
Link copied to clipboard
class WebBrowser(context: Context, val maxContentTokens: Int, val actionTimeoutMs: Long, val navigationTimeoutMs: Long, val viewport: BrowserViewport = BrowserViewport.Desktop, val screenshots: Boolean = true, val screenshotOnNavigate: Boolean = false) : Capability
A web browser for the agent, with the tools and result texts of the Pydantic AI Harness browser capability (navigate, snapshot, click, type_text, press_key, select_option, hover, wait_for, get_text, scroll, go_back, go_forward), on an off-screen Android WebView.