> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hunch.tools/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Stream Block Outputs

> This endpoint streams real-time updates for a specific block using Server-Sent Events (SSE).

The client will receive SSE events with the current output state as it changes.

This is useful for watching a block's output being generated in real-time, similar to the
streaming experience in the UI.

A valid token is required as a query parameter to access this endpoint.



## OpenAPI

````yaml https:/api.hunch.tools/openapi.json get /v1beta2/tool/stream
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.hunch.tools
security: []
paths:
  /v1beta2/tool/stream:
    get:
      tags:
        - Tools
      summary: Stream Block Outputs
      description: >-
        This endpoint streams real-time updates for a specific block using
        Server-Sent Events (SSE).


        The client will receive SSE events with the current output state as it
        changes.


        This is useful for watching a block's output being generated in
        real-time, similar to the

        streaming experience in the UI.


        A valid token is required as a query parameter to access this endpoint.
      operationId: stream_node_outputs
      parameters:
        - name: token
          in: query
          required: true
          schema:
            type: string
            description: Security token for stream access
            title: Token
          description: Security token for stream access
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPBadRequestError'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPUnauthorizedError'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPForbiddenError'
          description: Forbidden
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '456':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExposedError'
          description: Additional Response
components:
  schemas:
    HTTPBadRequestError:
      properties:
        detail:
          type: string
          title: Detail
      additionalProperties: false
      type: object
      required:
        - detail
      title: HTTPBadRequestError
    HTTPUnauthorizedError:
      properties:
        detail:
          type: string
          title: Detail
      additionalProperties: false
      type: object
      required:
        - detail
      title: HTTPUnauthorizedError
    HTTPForbiddenError:
      properties:
        detail:
          type: string
          title: Detail
      additionalProperties: false
      type: object
      required:
        - detail
      title: HTTPForbiddenError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    HTTPExposedError:
      properties:
        severity:
          $ref: '#/components/schemas/Severity'
          default: error
        title:
          type: string
          title: Title
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
      additionalProperties: false
      type: object
      required:
        - title
      title: HTTPExposedError
      description: >-
        An error that is exposed to the frontend via the API that can be
        rendered as

        a notification.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    Severity:
      type: string
      enum:
        - error
        - warning
        - info
      title: Severity

````