Show HN: Browser Tools SDK – an optimal browser harness for agents
4 hours ago
- Six tools enable any AI agent to open a real browser, read the page, and act using Playwright.
- The agent reads a compact page snapshot and runs needed Playwright code, reducing overhead and cost.
- Returns a compact accessibility tree with stable refs, avoiding raw HTML.
- Each Playwright execution returns a compact snapshot diff showing changes on the live page.
- Includes adapters for AI SDK and Pi, with framework-neutral base tools for custom agent loops.
- Supports multiple providers: LocalBrowserProvider, Libretto Cloud, Browserbase, Kernel, and Steel.
- Two core tools are browser_snapshot (to read the page) and browser_exec (to run Playwright); four others manage sessions.
- The agent uses a small tool set and executes Playwright code, giving access to the full Playwright API.
- The package is MIT licensed and available in the Libretto repository.
- Install the package without changing your current model or agent framework.