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

# Get a run's tool addresses



## OpenAPI

````yaml /openapi.json get /v1/runs/{id}/tools
openapi: 3.1.0
info:
  title: testworld API
  version: 1.0.0
  description: >-
    Start a run on a simulated workplace, point your agent at its tools, and
    read back the trace and the evaluation. The hosted API opens with early
    access.
  x-fingerprint: d223e1b42e3f0279
servers:
  - url: https://api.testworld.dev
    description: Hosted, opens with early access
security:
  - bearer: []
paths:
  /v1/runs/{id}/tools:
    get:
      tags:
        - Runs
      summary: Get a run's tool addresses
      operationId: getRunTools
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The run id.
      responses:
        '200':
          description: The addresses and the token again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolsAnswer'
        '401':
          description: No key, or a wrong one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: run_ended once the run has ended.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ToolsAnswer:
      type: object
      properties:
        run_id:
          type: string
        tools_url:
          type: string
        mcp_url:
          type: string
        token:
          type: string
        expires_at:
          type: string
          format: date-time
        tools:
          type: array
          items:
            $ref: '#/components/schemas/ToolAddress'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - message
          properties:
            type:
              type: string
              enum:
                - invalid_request
                - unauthorized
                - not_found
                - run_ended
                - idempotency_conflict
                - rate_limited
              description: Stable. Use it in code.
            message:
              type: string
              description: For people. It can change.
    ToolAddress:
      type: object
      properties:
        provider:
          type: string
          enum:
            - google.gmail
            - slack
            - google.calendar
        surface:
          type: string
          enum:
            - rest
            - web-api
            - mcp
        url:
          type: string
          description: Absolute address.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: Your API key. Tool calls under tools_url use the run token instead.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.