diff --git a/box/overall/browser/cookbook.mdx b/box/overall/browser/cookbook.mdx index e66027a6..0aeeaa47 100644 --- a/box/overall/browser/cookbook.mdx +++ b/box/overall/browser/cookbook.mdx @@ -7,29 +7,21 @@ description: "Runnable browser examples grouped by use case. Each one is self-co Every example is a single self-contained file in the [Box SDK repo](https://github.com/upstash/box/tree/main/packages/sdk/examples/browser). All of them need `UPSTASH_BOX_API_KEY`. Examples marked **AI** use metered - browser AI (`run`, `act`, `extract`) and need a model provider key on the box + browser AI (`act`, `extract`, `observe`) and need a model provider key on the box or account. Everything else runs with the Box key alone. -## Agents +## Agentic browsing -Goal-driven browsing with `tab.run()`. +Goal-driven browsing: hand a goal to the box's agent, or drive your own loop. - - Constrained search with a fallback category. The agent evaluates results, rejects with reasons, and switches on its own. **AI** + + Hand a goal to `box.agent.run`; the box's agent drives the browser through the chrome-devtools MCP and writes results to the box (needs an agent key; bills coding-agent tokens). **Agent** - - The same task via Playwright, `act` plus `extract`, and `run`. Pick your autonomy level by token cost. **AI** - - - - The search again with live view, session recording, a decision log, and token accounting. **AI** - - - - One prompt and one schema across three differently structured sites. **AI** + + A live `observe` then `act(action)` then `extract` loop you own, with `extract` as the stop check. **AI** @@ -90,10 +82,6 @@ The box as a test environment. The box hosts the app under test and browses it on its own localhost. - - Agent-driven smoke flow, cross-checked by deterministic DOM assertions, recorded on video. **AI** - - Pixelmatch diffs against baselines stored on the box. diff --git a/llms-full.txt b/llms-full.txt index ee1635f1..9ccee8ae 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -2959,29 +2959,21 @@ Source: https://upstash.com/docs/box/overall/browser/cookbook Every example is a single self-contained file in the [Box SDK repo](https://github.com/upstash/box/tree/main/packages/sdk/examples/browser). All of them need `UPSTASH_BOX_API_KEY`. Examples marked **AI** use metered - browser AI (`run`, `act`, `extract`) and need a model provider key on the box + browser AI (`act`, `extract`, `observe`) and need a model provider key on the box or account. Everything else runs with the Box key alone. -## Agents +## Agentic browsing -Goal-driven browsing with `tab.run()`. +Goal-driven browsing: hand a goal to the box's agent, or drive your own loop. - - Constrained search with a fallback category. The agent evaluates results, rejects with reasons, and switches on its own. **AI** - - - - The same task via Playwright, `act` plus `extract`, and `run`. Pick your autonomy level by token cost. **AI** + + Hand a goal to `box.agent.run`; the box's agent drives the browser through the chrome-devtools MCP and writes results to the box (needs an agent key; bills coding-agent tokens). **Agent** - - The search again with live view, session recording, a decision log, and token accounting. **AI** - - - - One prompt and one schema across three differently structured sites. **AI** + + A live `observe` then `act(action)` then `extract` loop you own, with `extract` as the stop check. **AI** @@ -3042,10 +3034,6 @@ The box as a test environment. The box hosts the app under test and browses it on its own localhost. - - Agent-driven smoke flow, cross-checked by deterministic DOM assertions, recorded on video. **AI** - - Pixelmatch diffs against baselines stored on the box.