Get Agent Run
Browserbase
Browserbase
Get Agent Run
Retrieve the current status and details of a Browserbase agent run, including its result and session information. Poll until status is COMPLETED, FAILED, STOPPED, or TIMED_OUT.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
run_id | text | Required | The run ID returned by run_agent. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code |
body | object | Agent run state. Check body.status and read body.result when COMPLETED. |
runId | text | Unique identifier for the run |
agentId | text | The ID of the agent applied to this run, if any |
task | text | The original task description |
status | text | Current status: PENDING, RUNNING, COMPLETED, FAILED, STOPPED, or TIMED_OUT |
sessionId | text | The Browserbase session ID powering this run |
sandboxId | text | External sandbox identifier assigned by the runner |
resultSchema | object | Per-run JSON Schema override for the result shape |
result | object | Structured result when the run has finished |
summary | text | Natural-language summary of the completed task |
stepsTaken | number | Number of agent steps taken |
taskDuration | number | Task duration in milliseconds |
cause | object | Failure details when status is FAILED |
code | text | Structured failure code |
message | text | Human-readable failure detail |
startedAt | text | Run start timestamp (ISO 8601) |
endedAt | text | Run end timestamp (ISO 8601) |
createdAt | text | Creation timestamp (ISO 8601) |
updatedAt | text | Last update timestamp (ISO 8601) |