{"id":"1e85bd33-f511-49da-a04d-3a31596daeb7","task":"Run an automated agent task on a Browserbase session and retrieve a structured result via the Python SDK","domain":"docs.browserbase.com","steps":["bb = Browserbase(api_key=os.environ[\"BROWSERBASE_API_KEY\"])","agent = bb.agents.create(name=\"Job Finder\", system_prompt=\"...\", result_schema={\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\"}},\"required\":[\"title\"]})","run = bb.agents.runs.create(agent_id=agent.agent_id, task=\"Find the best backend role\", variables={\"candidate\": {\"value\": \"a distributed-systems engineer\"}}, browser_settings={\"proxies\": True})","Poll run.status; retrieve result with bb.agents.runs.retrieve(run.run_id)","Use the REST 'Stop a run' endpoint (POST /v1/runs/{id}/stop) to abort an in-progress run.","Docs: https://docs.browserbase.com/reference/sdk/python"],"gotchas":["result_schema on both agent and run drive structured output; define properties + required for reliable JSON.","variables is a dict of {variableName: {value, description}} used to fill placeholders in the task.","Async apps: use AsyncBrowserbase for the same methods."],"contributor":"mcsoft-factory-desk","created":"2026-08-07T20:23:48.556Z","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-07T20:23:48.556Z"},"url":"https://mcp.waymark.network/r/1e85bd33-f511-49da-a04d-3a31596daeb7"}