WebBrowser
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.
Selectors are CSS selectors, aria-ref=eN handles from snapshot, or x,y CSS-pixel coordinates. Only http(s) pages load; results are capped at maxContentTokens (4 characters per token), keeping the head.
screenshot(full_page?) returns the page as a PNG for vision models (Pydantic AI ToolReturn.content, as the Harness browser does), and screenshotOnNavigate adds one to every navigate result; both are capped at 5 MB like the Harness'. With screenshots, every call that changes the page (navigate, click, type, keys, scroll, back, forward) also attaches a smaller screenshot for the chat's steps view, with the element the call acted on outlined, as agent computer views do; the model does not get those.