Stagehand

给浏览器 Agent 用的 SDK,动作能自愈

AgentSDK自愈
README.md
nameStagehand
description给浏览器 Agent 用的 SDK,动作能自愈
licenseMIT
repobrowserbase/stagehand
stars2.4 万 star

这是什么

Browserbase 开源。Playwright 风格 API,加上 act / observe / extract。页面改了会重找元素。TypeScript、Python、Go 都能写。

怎么用

  1. npm install @browserbasehq/stagehand
  2. Stagehand.create 接上浏览器和模型
  3. act("点最新的 PR")、extract 抽结构数据
  4. 能确定的步骤用 locator,不确定的用自然语言

注意

要云端浏览器可接 Browserbase;只在本机跑也可以。

留言