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

# Get run test case screenshots

> Returns screenshots of selected execution steps of a run test case, so the visible state can be checked directly. Step indices are the 0-based `[step:N]` references and `keyObservations[].stepIndex` from `get_run_test_case`'s assessment. Omit `steps` for the final screenshot. MCP clients receive each screenshot as an image.



## OpenAPI

````yaml /api-reference/api.json get /v1/run-test-case/{shortId}/screenshots
openapi: 3.0.0
info:
  title: QA.tech API
  version: 1.0.0
  contact:
    name: QA.tech
    url: https://qa.tech
    email: support@qa.tech
  description: API for triggering and managing AI-powered test runs
servers:
  - url: https://api.qa.tech
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Runs
  - name: Infrastructure
  - name: Test Cases
  - name: Application Builds
  - name: Status badge
  - name: Remote Tunnels
  - name: Chat
  - name: Applications
  - name: Features
  - name: Metrics
  - name: Release Checks
  - name: Projects
  - name: Knowledge
  - name: Rules
  - name: Issues
  - name: Automations
paths:
  /v1/run-test-case/{shortId}/screenshots:
    get:
      tags:
        - Runs
      summary: Get run test case screenshots
      description: >-
        Returns screenshots of selected execution steps of a run test case, so
        the visible state can be checked directly. Step indices are the 0-based
        `[step:N]` references and `keyObservations[].stepIndex` from
        `get_run_test_case`'s assessment. Omit `steps` for the final screenshot.
        MCP clients receive each screenshot as an image.
      operationId: GetRunTestCaseScreenshots
      parameters:
        - name: shortId
          in: path
          required: true
          schema:
            type: string
        - name: query
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/GetRunTestCaseScreenshotsQuery'
          explode: false
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRunTestCaseScreenshotsResponse'
components:
  schemas:
    GetRunTestCaseScreenshotsQuery:
      type: object
      properties:
        steps:
          type: array
          items:
            type: integer
            format: int32
          maxItems: 6
          description: >-
            0-based execution steps to fetch (the `stepIndex` of key
            observations and the `[step:N]` references in the assessment). Max
            6. Omit for the final screenshot.
        projectShortId:
          allOf:
            - $ref: '#/components/schemas/ProjectShortId'
          description: >-
            Target a specific project by its prefixed short ID
            (proj-slug_shortId or proj_shortId), as returned by the projects
            API. Required for organization-scoped API keys; project-scoped keys
            may only pass their own project's short ID.
    GetRunTestCaseScreenshotsResponse:
      type: object
      required:
        - runTestCaseShortId
        - stepCount
        - screenshots
      properties:
        runTestCaseShortId:
          type: string
        stepCount:
          type: integer
          format: int32
          description: Number of execution steps; valid `steps` are 0 to `stepCount - 1`.
        screenshots:
          type: array
          items:
            $ref: '#/components/schemas/RunTestCaseScreenshot'
      description: Screenshots for selected execution steps of a run test case.
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    RunTestCaseScreenshot:
      type: object
      required:
        - stepIndex
        - pageUrl
        - url
        - mimeType
        - data
        - error
      properties:
        stepIndex:
          type: integer
          format: int32
          nullable: true
          description: 0-based execution step. `null` for the final screenshot.
        pageUrl:
          type: string
          nullable: true
          description: The page URL the agent was on at this step.
        url:
          type: string
          nullable: true
          description: Source image URL. May be time-limited.
        mimeType:
          type: string
          nullable: true
          description: >-
            Image media type, e.g. `image/jpeg`. MCP clients receive the image
            itself as an image content block.
        data:
          type: string
          nullable: true
          description: Base64-encoded image bytes.
        error:
          type: string
          nullable: true
          description: Why the screenshot could not be returned, if it could not.
      description: A screenshot of one execution step.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````