stream_agent_run
Retrieve server-sent events for an agent run. Use for real-time streaming of run progress; prefer polling get_agent_run for long-lived watches.
Instructions
Fetch SSE events for a run (GET .../runs/{runId}/stream).
Collects the stream body until the server closes or the timeout elapses. Prefer polling get_agent_run for long-lived watches.
Args: agent_id: Agent id (for example bc-...). run_id: Run id (for example run-...). timeout_seconds: HTTP timeout for the stream request (default 60).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "<agent_id>",
"run_id": "<run_id>"
},
"name": "stream_agent_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | ||
| agent_id | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||