# Stream run events

Tool: `veryfront__stream_run_events`

Stream run events.

## Arguments

| Name                   | Type                                   | Required | Description                                                                                                                                                                                                                     |
| ---------------------- | -------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `run_id`               | string · min length 1 · max length 128 | Yes      | Run UUID, or the public run id (run\_…) that run lists and getRun carry as run\_id. Normal callers need access to the run owner and project.runs.read. A bound eval runtime may instead read its authorized direct agent child. |
| `event_representation` | string                                 |          | Provide the event representation. One of `run-events-v1`, `ag-ui`.                                                                                                                                                              |
| `last_event_id`        | string · min length 1                  |          | Resume after this durable event ID or selected representation position.                                                                                                                                                         |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__stream_run_events",
    "arguments": {
      "run_id": "a"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"run_id\":\"00000000-0000-0000-0000-000000000000\",\"last_event_id\":0,\"delivered_count\":0,\"end_reason\":\"closed\"}"
      }
    ],
    "structuredContent": {
      "run_id": "00000000-0000-0000-0000-000000000000",
      "last_event_id": 0,
      "delivered_count": 0,
      "end_reason": "closed"
    }
  }
}
```
