List Run Messages
Browserbase
Browserbase
List Run Messages
List messages produced by a Browserbase agent run in chronological order. Messages conform to the AI SDK UIMessage format. Use nextSince for pagination or polling.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
run_id | text | Required | The run ID to list messages for. |
since | text | Optional | ID of the last message already received. Omit on first call; pass previous nextSince to continue paging. |
limit | number | Optional | Maximum number of messages to return. Range: 1-100. Default: 20. |
all | yes/no | Optional | Return every message after since in one response, ignoring limit. Default: false. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code |
body | object | Paginated run messages |
data | array of object | Messages in chronological order (oldest first) |
id | text | Message entry ID |
createdAt | text | Message creation timestamp (ISO 8601) |
message | object | AI SDK response message (assistant or tool). Further: nested fields: role, content. |
nextSince | text | ID of the last message in data. Pass as since on the next request to continue paging. |