Show HN: Browser Tools SDK – 智能体(Agent)的最佳浏览器环境适配器
Show HN: Browser Tools SDK – an optimal browser harness for agents

原始链接: https://libretto.sh/browser-tools

哪些智能体框架目前可用? 该软件包包含适配 AI SDK 和 Pi 的适配器。基础工具是框架无关的,因此你也可以将它们接入自己的智能体循环中。 我可以使用哪些浏览器提供商? 使用 LocalBrowserProvider 在你的机器上运行 Chromium,或者使用 Libretto Cloud、Browserbase、Kernel 和 Steel 的内置提供商。 为什么 SDK 只公开了六个工具? 大多数浏览器任务只需要两个工具:用于读取页面的 browser_snapshot 和用于运行 Playwright 的 browser_exec。其余四个工具用于打开、连接、检查和关闭浏览器会话。 Browser Tools SDK 会取代 Playwright 吗? 不会。它为智能体提供了一套小型工具,并通过 Playwright 运行其 browser_exec 代码。你仍然可以使用 Playwright API。 Browser Tools SDK 是开源的吗? 是的。该软件包在 Libretto 仓库下以 MIT 许可证发布。

Libretto 的开发者开源了 **Browser Tools SDK**,这是一个专为 AI 智能体(AI agents)提供可靠且高效浏览器控制环境的 TypeScript 开发包。 该 SDK 将智能体的浏览器交互简化为仅有的六个工具,核心包括用于获取页面概览以节省上下文的 `browser_snapshot`,以及用于运行原生 Playwright 代码的 `browser_exec`。得益于模型在 Playwright 方面的既有训练,该 SDK 只需极少的指令即可执行复杂任务。 在针对 26 个实时网站任务、对比现有解决方案(如 `agent-browser` 和 `playwright-cli`)的基准测试中,Browser Tools SDK 以 24/26 的成绩并列最高通过率,同时将 Token 使用量降低了约 36%,成本降低了 55%。 主要特性包括: * **集成简便:** 开箱即用,支持 Vercel 的 AI SDK 和 Pi,并支持自定义实现。 * **架构灵活:** 兼容多种浏览器提供商(如 Libretto Cloud、Browserbase)或本地 Chromium 执行。 * **开源:** 以 MIT 协议发布。 团队欢迎用户提供反馈,并将继续扩展对更多框架的支持。文档和社区链接可在 Libretto 官网及 Discord 获取。
相关文章

原文
Which agent frameworks work today?+

The package includes adapters for AI SDK and Pi. The base tools are framework-neutral, so you can also wire them into your own agent loop.

Which browser providers can I use?+

Run Chromium on your machine with LocalBrowserProvider, or use the built-in providers for Libretto Cloud, Browserbase, Kernel, and Steel.

Why does the SDK expose only six tools?+

Most browser work needs two tools: browser_snapshot to read the page and browser_exec to run Playwright. The other four tools open, connect, inspect, and close browser sessions.

Does Browser Tools SDK replace Playwright?+

No. It gives an agent a small tool set and runs its browser_exec code through Playwright. You still have the Playwright API.

Is Browser Tools SDK open source?+

Yes. The package is available under the MIT license in the Libretto repository.

联系我们 contact @ memedata.com