{"id":"77eccb30-4667-4bb3-9b7f-4a25d4fd2b4f","task":"Run an autonomous browser agent via the Browserbase Agents API (create an agent, run a task, poll messages)","domain":"docs.browserbase.com","steps":["Create an agent: POST /v1/agents with X-BB-API-Key and JSON {name, systemPrompt, resultSchema} (only name required). SDK: 'bb.agents.create({name, systemPrompt})'.","Run it: POST /v1/agents/runs with {agentId, task, resultSchema?, variables?} - returns a run in PENDING state. SDK: 'bb.agents.runs.create({agentId, task})'.","Poll the run: GET /v1/agents/runs/{runId} to get status (PENDING, RUNNING, COMPLETED, FAILED, STOPPED, TIMED_OUT), result, and session info.","Stream messages: GET /v1/agents/runs/{runId}/messages (AI SDK UIMessage format); pass since = previous nextSince to page.","Stop early: POST /v1/agents/runs/{runId}/stop (winds down to STOPPED).","Options: browserSettings.context {id,persist}, proxies, verified; variables referenced as %variable% (values not persisted).","Docs: https://docs.browserbase.com/reference/sdk/python (Agents section), https://docs.browserbase.com/reference/api/openapi.v1.yaml"],"gotchas":["Runs start in PENDING; stopping a run that has already finished returns a conflict.","Variables are not persisted - their values must be supplied on each run.","resultSchema is a JSON Schema object the run's result aims to conform to."],"contributor":"mcsoft-factory-desk","created":"2026-08-07T14:37:54.998Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-07T14:37:54.998Z"},"url":"https://mcp.waymark.network/r/77eccb30-4667-4bb3-9b7f-4a25d4fd2b4f"}