Stream run events

veryfront__stream_run_events

Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

Call type: Read-only.

Arguments

See the full schema below for the accepted shape and constraints.

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__stream_run_events",
    "arguments": {
      "run_id": "00000000-0000-4000-8000-000000000000"
    }
  }
}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

See the full schema below for the accepted shape and constraints.

Full schemas

json
{
  "type": "object",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "run_id": {
          "type": "string",
          "format": "uuid",
          "description": "Canonical run UUID. 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": {
          "type": "string",
          "enum": [
            "run-events-v1",
            "ag-ui"
          ],
          "description": "Provide the event representation."
        },
        "last_event_id": {
          "type": "string",
          "minLength": 1,
          "description": "Resume after this durable event ID or selected representation position."
        }
      },
      "required": [
        "run_id"
      ],
      "additionalProperties": false,
      "description": "Arguments for the stream_run_events tool."
    },
    {
      "type": "object",
      "properties": {
        "run_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[a-zA-Z0-9_-]+$",
          "description": "Run identifier that scopes the request."
        },
        "event_representation": {
          "type": "string",
          "const": "canonical-v1",
          "description": "Provide the event representation."
        },
        "last_event_id": {
          "type": "string",
          "description": "Provide the last event id."
        }
      },
      "required": [
        "run_id",
        "event_representation"
      ],
      "additionalProperties": false,
      "description": "Arguments for the stream_run_events tool."
    }
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Arguments for the stream_run_events tool."
}
json
{
  "type": "object",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "run_id": {
          "type": "string",
          "format": "uuid",
          "description": "Canonical UUID of the streamed run."
        },
        "last_event_id": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "description": "The last event id returned by the tool."
                },
                {
                  "type": "string",
                  "minLength": 1,
                  "description": "The last event id returned by the tool."
                }
              ],
              "description": "The last event id returned by the tool."
            },
            {
              "type": "null",
              "description": "The last event id returned by the tool."
            }
          ],
          "description": "The last event id returned by the tool."
        },
        "delivered_count": {
          "type": "integer",
          "minimum": 0,
          "description": "The delivered count returned by the tool."
        },
        "end_reason": {
          "type": "string",
          "enum": [
            "closed",
            "cancelled"
          ],
          "description": "The end reason returned by the tool."
        }
      },
      "required": [
        "run_id",
        "last_event_id",
        "delivered_count",
        "end_reason"
      ],
      "additionalProperties": false,
      "description": "Structured result returned by the stream_run_events tool."
    },
    {
      "type": "object",
      "properties": {
        "run_id": {
          "type": "string",
          "minLength": 1,
          "description": "Run identifier associated with this result."
        },
        "last_event_id": {
          "$ref": "#/anyOf/0/properties/last_event_id",
          "description": "The last event id returned by the tool."
        },
        "delivered_count": {
          "$ref": "#/anyOf/0/properties/delivered_count",
          "description": "The delivered count returned by the tool."
        },
        "end_reason": {
          "$ref": "#/anyOf/0/properties/end_reason",
          "description": "The end reason returned by the tool."
        }
      },
      "required": [
        "run_id",
        "last_event_id",
        "delivered_count",
        "end_reason"
      ],
      "additionalProperties": false,
      "description": "Structured result returned by the stream_run_events tool."
    }
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Structured result returned by the stream_run_events tool."
}