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

# Get a tool



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/tools/{toolId}
openapi: 3.1.0
info:
  title: Centillion Labs API
  description: >-
    The public API of Centillion Labs: agents, their branches and versions,
    knowledge, tools and the secrets they send, chat, conversations, contacts,
    campaigns, batch calls, agent testing, issues and Helpdesk.
  version: 2.0.0
servers:
  - url: https://app.cntillion.com
security:
  - workspaceApiKey: []
  - workspaceApiKeyHeader: []
tags:
  - name: Agents
    description: Create, read, change, clone and delete agents.
  - name: Branches and versions
    description: Branches, drafts, immutable versions, merges, publishing and traffic.
  - name: Workflow and voice
    description: A branch's workflow and its voice settings.
  - name: Tools
    description: 'Workspace tools: HTTP, client, MCP server and code tools.'
  - name: Secrets
    description: >-
      Named credentials, such as an API key, that HTTP tools and MCP servers
      send as a header by naming the secret's id in
      `configuration.secretHeaders`. A value is encrypted when saved and never
      returned. A new value reaches every tool and published agent that uses the
      secret on its next call, with nothing to publish, and a secret can be
      deleted only once no tool and no published agent sends it.
  - name: Auth connections
    description: >-
      How the workspace's tools sign in to an API, kept once and named by id in
      an HTTP tool's or an MCP server's `configuration.authConnectionId` (or
      `configuration.page.authConnectionId` for a web form's link request).
      Secrets are encrypted when saved and never returned. A change reaches
      every tool and published agent that uses the connection on its next call,
      and a connection can be deleted only once nothing signs in with it.
  - name: Knowledge sources
    description: What an agent knows, and training it on that.
  - name: Chat
    description: Talk to an agent from your own systems.
  - name: Conversations
    description: Conversations, their messages, feedback and analysis.
  - name: Leads and contacts
    description: The leads and contacts an agent collected.
  - name: Contacts and enrollments
    description: Upsert contacts and enroll them in always-open campaigns.
  - name: Batch calls
    description: Outbound call batches, their recipients and their runs.
  - name: Campaigns
    description: >-
      Managed outbound calling: campaigns that call each lead within calling
      windows and retry, call back or redirect as their lead policy allows,
      their leads, calls and attention items, and the workspace's campaign
      settings.
  - name: WhatsApp
    description: WhatsApp templates and template messages.
  - name: Agent testing
    description: Workspace tests, agent suites, execution, and results.
  - name: Issues
    description: >-
      Issues an agent raised or a teammate flagged about how it behaves: triage,
      comment, merge and resolve.
  - name: Helpdesk
    description: Helpdesk tickets, their messages, teams and statuses.
  - name: Status
    description: Whether the API is up.
paths:
  /api/v2/tools/{toolId}:
    get:
      tags:
        - Tools
      summary: Get a tool
      operationId: getTool
      parameters:
        - name: toolId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateToolResponse'
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '404':
          $ref: '#/components/responses/Error404'
        '409':
          $ref: '#/components/responses/Error409'
        '429':
          $ref: '#/components/responses/Error429'
        '500':
          $ref: '#/components/responses/Error500'
        '504':
          $ref: '#/components/responses/Error504'
components:
  schemas:
    CreateToolResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Tool'
      required:
        - data
    Tool:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        kind:
          type: string
          enum:
            - HTTP_TOOL
            - CLIENT_TOOL
            - MCP_SERVER
            - CODE_TOOL
            - BROWSER_FORM
            - INTEGRATION_ACTION
        revision:
          type: integer
        accessRole:
          type: string
          enum:
            - viewer
            - editor
            - admin
        createdBy:
          type:
            - string
            - 'null'
        agentIds:
          type: array
          items:
            type: string
        configuration:
          $ref: '#/components/schemas/ToolConfiguration'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - description
        - kind
        - revision
        - accessRole
        - createdBy
        - agentIds
        - configuration
        - createdAt
        - updatedAt
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: A stable code, such as `NOT_FOUND`.
            message:
              type: string
              description: What went wrong, for a person.
            details:
              description: More about the failure, on some endpoints.
          required:
            - code
            - message
      required:
        - error
    ToolConfiguration:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              const: HTTP_TOOL
            responseMocks:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                    minLength: 1
                    maxLength: 140
                  when:
                    default: {}
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties:
                      $ref: '#/components/schemas/JsonValue'
                  conditions:
                    maxItems: 30
                    type: array
                    items:
                      $ref: '#/components/schemas/TestParameterAssertion'
                  response:
                    $ref: '#/components/schemas/JsonValue'
                  isError:
                    type: boolean
                required:
                  - name
                  - when
                  - response
            voice:
              type: object
              properties:
                interruptions:
                  type: string
                  enum:
                    - allow
                    - execution
                    - whole_turn
                preToolSpeech:
                  type: string
                  enum:
                    - auto
                    - force
                    - 'off'
                speechText:
                  type: string
                  maxLength: 500
                executionMode:
                  type: string
                  enum:
                    - immediate
                    - post_speech
                    - async
                executionSound:
                  type: string
                  enum:
                    - none
                    - typing
                    - hold_music
            errorHandling:
              type: string
              enum:
                - auto
                - summarized
                - passthrough
                - hide
            dynamicVariables:
              type: object
              propertyNames:
                type: string
                minLength: 1
                maxLength: 140
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            assignments:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  variable:
                    type: string
                    minLength: 1
                    maxLength: 140
                  path:
                    type: string
                    minLength: 1
                    maxLength: 500
                required:
                  - variable
                  - path
            url:
              type: string
              maxLength: 2048
              format: uri
            method:
              default: POST
              type: string
              enum:
                - GET
                - POST
                - PUT
                - PATCH
                - DELETE
            headers:
              default: {}
              type: object
              propertyNames:
                type: string
                maxLength: 100
              additionalProperties:
                type: string
                maxLength: 40000
                description: >-
                  A header value. Values are always read back masked as
                  `••••••••`; send the mask back to keep the stored value. A
                  header that has no stored value yet needs its real value.
            secretHeaders:
              description: >-
                Headers whose value is a workspace secret, by header name. The
                secret's value is read when the tool runs, so a new value
                reaches every tool and published version that uses it, and it is
                never returned.
              type: object
              propertyNames:
                type: string
                maxLength: 100
              additionalProperties:
                type: string
                minLength: 1
                maxLength: 64
                description: The id of a workspace secret, as `GET /secrets` lists it.
            auth:
              oneOf:
                - type: object
                  properties:
                    type:
                      type: string
                      const: oauth2_client_credentials
                    tokenUrl:
                      type: string
                      maxLength: 2048
                      format: uri
                      description: >-
                        The HTTPS address the access token is requested from,
                        with the client credentials grant.
                    clientId:
                      type: string
                      minLength: 1
                      maxLength: 500
                    clientSecret:
                      type: string
                      minLength: 1
                      maxLength: 40000
                      description: >-
                        The client secret. It is always read back masked as
                        `••••••••`; send the mask back to keep the stored
                        secret. Changing the token URL's or the tool's server
                        origin needs the real secret again.
                    scope:
                      description: >-
                        Space-separated scopes to request. Left out, the token
                        request names none.
                      type: string
                      maxLength: 1000
                      pattern: >-
                        ^(?:[\x21\x23-\x5B\x5D-\x7E]+(?:
                        [\x21\x23-\x5B\x5D-\x7E]+)*)?$
                    clientAuthentication:
                      description: >-
                        How the client ID and secret reach the token URL:
                        `basic` (the default) in an HTTP Basic `Authorization`
                        header, `body` as `client_id` and `client_secret` form
                        fields.
                      type: string
                      enum:
                        - basic
                        - body
                  required:
                    - type
                    - tokenUrl
                    - clientId
                    - clientSecret
              description: >-
                How the tool signs in. Left out, the tool sends only its
                headers. With OAuth 2.0 client credentials the tool gets an
                access token from `tokenUrl`, reuses it until shortly before it
                expires, and sends it as `Authorization: Bearer`, so the tool
                cannot also have its own `Authorization` header.
            authConnectionId:
              description: >-
                The workspace auth connection the request signs in with, as `GET
                /auth-connections` lists it. The connection sends the
                `Authorization` header, so the request cannot also have its own,
                and cannot also set `auth`.
              type: string
              pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            parameters:
              $ref: '#/components/schemas/ToolParameters'
            timeoutMs:
              type: integer
              minimum: 1000
              maximum: 120000
            followRedirects:
              type: boolean
            bodyEncoding:
              type: string
              enum:
                - json
                - form
            responseFields:
              maxItems: 50
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 500
          required:
            - kind
            - url
            - method
            - headers
            - parameters
        - type: object
          properties:
            kind:
              type: string
              const: CLIENT_TOOL
            responseMocks:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                    minLength: 1
                    maxLength: 140
                  when:
                    default: {}
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties:
                      $ref: '#/components/schemas/JsonValue'
                  conditions:
                    maxItems: 30
                    type: array
                    items:
                      $ref: '#/components/schemas/TestParameterAssertion'
                  response:
                    $ref: '#/components/schemas/JsonValue'
                  isError:
                    type: boolean
                required:
                  - name
                  - when
                  - response
            voice:
              type: object
              properties:
                interruptions:
                  type: string
                  enum:
                    - allow
                    - execution
                    - whole_turn
                preToolSpeech:
                  type: string
                  enum:
                    - auto
                    - force
                    - 'off'
                speechText:
                  type: string
                  maxLength: 500
                executionMode:
                  type: string
                  enum:
                    - immediate
                    - post_speech
                    - async
                executionSound:
                  type: string
                  enum:
                    - none
                    - typing
                    - hold_music
            errorHandling:
              type: string
              enum:
                - auto
                - summarized
                - passthrough
                - hide
            dynamicVariables:
              type: object
              propertyNames:
                type: string
                minLength: 1
                maxLength: 140
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            assignments:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  variable:
                    type: string
                    minLength: 1
                    maxLength: 140
                  path:
                    type: string
                    minLength: 1
                    maxLength: 500
                required:
                  - variable
                  - path
            parameters:
              $ref: '#/components/schemas/ToolParameters'
            waitForResponse:
              default: false
              type: boolean
            timeoutMs:
              default: 20000
              type: integer
              minimum: 1000
              maximum: 120000
          required:
            - kind
            - parameters
            - waitForResponse
            - timeoutMs
        - type: object
          properties:
            kind:
              type: string
              const: MCP_SERVER
            responseMocks:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                    minLength: 1
                    maxLength: 140
                  when:
                    default: {}
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties:
                      $ref: '#/components/schemas/JsonValue'
                  conditions:
                    maxItems: 30
                    type: array
                    items:
                      $ref: '#/components/schemas/TestParameterAssertion'
                  response:
                    $ref: '#/components/schemas/JsonValue'
                  isError:
                    type: boolean
                required:
                  - name
                  - when
                  - response
            voice:
              type: object
              properties:
                interruptions:
                  type: string
                  enum:
                    - allow
                    - execution
                    - whole_turn
                preToolSpeech:
                  type: string
                  enum:
                    - auto
                    - force
                    - 'off'
                speechText:
                  type: string
                  maxLength: 500
                executionMode:
                  type: string
                  enum:
                    - immediate
                    - post_speech
                    - async
                executionSound:
                  type: string
                  enum:
                    - none
                    - typing
                    - hold_music
            errorHandling:
              type: string
              enum:
                - auto
                - summarized
                - passthrough
                - hide
            dynamicVariables:
              type: object
              propertyNames:
                type: string
                minLength: 1
                maxLength: 140
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            assignments:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  variable:
                    type: string
                    minLength: 1
                    maxLength: 140
                  path:
                    type: string
                    minLength: 1
                    maxLength: 500
                required:
                  - variable
                  - path
            url:
              type: string
              maxLength: 2048
              format: uri
            headers:
              default: {}
              type: object
              propertyNames:
                type: string
                maxLength: 100
              additionalProperties:
                type: string
                maxLength: 40000
                description: >-
                  A header value. Values are always read back masked as
                  `••••••••`; send the mask back to keep the stored value. A
                  header that has no stored value yet needs its real value.
            secretHeaders:
              description: >-
                Headers whose value is a workspace secret, by header name. The
                secret's value is read when the tool runs, so a new value
                reaches every tool and published version that uses it, and it is
                never returned.
              type: object
              propertyNames:
                type: string
                maxLength: 100
              additionalProperties:
                type: string
                minLength: 1
                maxLength: 64
                description: The id of a workspace secret, as `GET /secrets` lists it.
            authConnectionId:
              description: >-
                The workspace auth connection the server's requests sign in
                with, as `GET /auth-connections` lists it, on discovery and on
                every tool call. The connection sends the `Authorization`
                header, so the server cannot also have an `Authorization` header
                or secret header of its own.
              type: string
              pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            allowedTools:
              default: []
              maxItems: 100
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 128
            tools:
              default: []
              maxItems: 100
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                    minLength: 1
                    maxLength: 128
                  description:
                    default: ''
                    type: string
                    maxLength: 8000
                  inputSchema:
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties: {}
                required:
                  - name
                  - description
                  - inputSchema
          required:
            - kind
            - url
            - headers
            - allowedTools
            - tools
        - type: object
          properties:
            kind:
              type: string
              const: CODE_TOOL
            responseMocks:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                    minLength: 1
                    maxLength: 140
                  when:
                    default: {}
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties:
                      $ref: '#/components/schemas/JsonValue'
                  conditions:
                    maxItems: 30
                    type: array
                    items:
                      $ref: '#/components/schemas/TestParameterAssertion'
                  response:
                    $ref: '#/components/schemas/JsonValue'
                  isError:
                    type: boolean
                required:
                  - name
                  - when
                  - response
            voice:
              type: object
              properties:
                interruptions:
                  type: string
                  enum:
                    - allow
                    - execution
                    - whole_turn
                preToolSpeech:
                  type: string
                  enum:
                    - auto
                    - force
                    - 'off'
                speechText:
                  type: string
                  maxLength: 500
                executionMode:
                  type: string
                  enum:
                    - immediate
                    - post_speech
                    - async
                executionSound:
                  type: string
                  enum:
                    - none
                    - typing
                    - hold_music
            errorHandling:
              type: string
              enum:
                - auto
                - summarized
                - passthrough
                - hide
            dynamicVariables:
              type: object
              propertyNames:
                type: string
                minLength: 1
                maxLength: 140
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            assignments:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  variable:
                    type: string
                    minLength: 1
                    maxLength: 140
                  path:
                    type: string
                    minLength: 1
                    maxLength: 500
                required:
                  - variable
                  - path
            code:
              type: string
              minLength: 1
              maxLength: 50000
            parameters:
              $ref: '#/components/schemas/ToolParameters'
            timeoutMs:
              default: 1000
              type: integer
              minimum: 50
              maximum: 5000
          required:
            - kind
            - code
            - parameters
            - timeoutMs
        - type: object
          properties:
            kind:
              type: string
              const: INTEGRATION_ACTION
            responseMocks:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                    minLength: 1
                    maxLength: 140
                  when:
                    default: {}
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties:
                      $ref: '#/components/schemas/JsonValue'
                  conditions:
                    maxItems: 30
                    type: array
                    items:
                      $ref: '#/components/schemas/TestParameterAssertion'
                  response:
                    $ref: '#/components/schemas/JsonValue'
                  isError:
                    type: boolean
                required:
                  - name
                  - when
                  - response
            voice:
              type: object
              properties:
                interruptions:
                  type: string
                  enum:
                    - allow
                    - execution
                    - whole_turn
                preToolSpeech:
                  type: string
                  enum:
                    - auto
                    - force
                    - 'off'
                speechText:
                  type: string
                  maxLength: 500
                executionMode:
                  type: string
                  enum:
                    - immediate
                    - post_speech
                    - async
                executionSound:
                  type: string
                  enum:
                    - none
                    - typing
                    - hold_music
            errorHandling:
              type: string
              enum:
                - auto
                - summarized
                - passthrough
                - hide
            dynamicVariables:
              type: object
              propertyNames:
                type: string
                minLength: 1
                maxLength: 140
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            assignments:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  variable:
                    type: string
                    minLength: 1
                    maxLength: 140
                  path:
                    type: string
                    minLength: 1
                    maxLength: 500
                required:
                  - variable
                  - path
            action:
              oneOf:
                - type: object
                  properties:
                    type:
                      type: string
                      const: messaging.send
                    channel:
                      default: sms
                      type: string
                      enum:
                        - sms
                        - email
                        - input
                    templateName:
                      type: string
                      minLength: 1
                      maxLength: 140
                    language:
                      default: en
                      type: string
                      minLength: 2
                      maxLength: 16
                    recipient:
                      default: contact
                      type: string
                      enum:
                        - contact
                        - staff
                    staffAddress:
                      default: ''
                      type: string
                      maxLength: 320
                    consent:
                      default: conversation
                      type: string
                      enum:
                        - conversation
                        - recorded
                    fallbackChannel:
                      default: none
                      type: string
                      enum:
                        - sms
                        - email
                        - none
                  required:
                    - type
                    - channel
                    - templateName
                    - language
                    - recipient
                    - staffAddress
                    - consent
                    - fallbackChannel
                - type: object
                  properties:
                    type:
                      type: string
                      const: esign.prepare
                    connectionId:
                      type: string
                      minLength: 1
                      maxLength: 140
                    source:
                      default: adopt
                      type: string
                      enum:
                        - adopt
                        - template
                    templateId:
                      default: ''
                      type: string
                      maxLength: 100
                    signerRole:
                      default: ''
                      type: string
                      maxLength: 100
                    fields:
                      default: []
                      maxItems: 50
                      type: array
                      items:
                        type: object
                        properties:
                          field:
                            type: string
                            minLength: 1
                            maxLength: 100
                          variable:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_.]{0,63}$
                          required:
                            default: true
                            type: boolean
                        required:
                          - field
                          - variable
                          - required
                    signerSession:
                      default: link
                      type: string
                      enum:
                        - link
                        - docusign_email
                    linkTtlMinutes:
                      default: 60
                      type: integer
                      minimum: 5
                      maximum: 10080
                  required:
                    - type
                    - connectionId
                    - source
                    - templateId
                    - signerRole
                    - fields
                    - signerSession
                    - linkTtlMinutes
                - type: object
                  properties:
                    type:
                      type: string
                      const: esign.sign_on_behalf
                    connectionId:
                      type: string
                      minLength: 1
                      maxLength: 140
                    consentScriptVersion:
                      type: string
                      minLength: 1
                      maxLength: 100
                    deliverChannel:
                      default: sms
                      type: string
                      enum:
                        - sms
                        - email
                    deliverTo:
                      type: string
                      minLength: 3
                      maxLength: 320
                    templateName:
                      type: string
                      minLength: 1
                      maxLength: 140
                    language:
                      default: en
                      type: string
                      minLength: 2
                      maxLength: 16
                    linkTtlMinutes:
                      default: 60
                      type: integer
                      minimum: 5
                      maximum: 10080
                  required:
                    - type
                    - connectionId
                    - consentScriptVersion
                    - deliverChannel
                    - deliverTo
                    - templateName
                    - language
                    - linkTtlMinutes
                - type: object
                  properties:
                    type:
                      type: string
                      const: esign.signing_link
                    connectionId:
                      type: string
                      minLength: 1
                      maxLength: 140
                    linkTtlMinutes:
                      default: 60
                      type: integer
                      minimum: 5
                      maximum: 10080
                  required:
                    - type
                    - connectionId
                    - linkTtlMinutes
                - type: object
                  properties:
                    type:
                      type: string
                      const: esign.status
                    connectionId:
                      type: string
                      minLength: 1
                      maxLength: 140
                  required:
                    - type
                    - connectionId
                - type: object
                  properties:
                    type:
                      type: string
                      const: esign.void
                    connectionId:
                      type: string
                      minLength: 1
                      maxLength: 140
                  required:
                    - type
                    - connectionId
                - type: object
                  properties:
                    type:
                      type: string
                      const: hubspot
                    connectionId:
                      type: string
                      minLength: 1
                      maxLength: 140
                    tool:
                      type: string
                      enum:
                        - find_contact_by_email
                        - get_contact
                        - search_contacts
                        - create_contact
                        - update_contact
                        - find_company_by_domain
                        - get_company
                        - search_companies
                        - create_company
                        - update_company
                        - get_deal
                        - get_deal_with_custom_properties
                        - search_deals
                        - create_deal
                        - update_deal
                        - log_call
                        - create_meeting
                        - create_note
                        - get_note
                        - search_notes
                        - create_task
                        - get_task
                        - update_task
                        - delete_task
                        - search_tasks
                        - get_contact_notes
                        - get_contact_tasks
                        - get_contact_companies
                        - get_contact_deals
                        - create_associations
                        - get_associations
                        - delete_associations
                  required:
                    - type
                    - connectionId
                    - tool
          required:
            - kind
            - action
        - type: object
          properties:
            kind:
              type: string
              const: BROWSER_FORM
            responseMocks:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                    minLength: 1
                    maxLength: 140
                  when:
                    default: {}
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties:
                      $ref: '#/components/schemas/JsonValue'
                  conditions:
                    maxItems: 30
                    type: array
                    items:
                      $ref: '#/components/schemas/TestParameterAssertion'
                  response:
                    $ref: '#/components/schemas/JsonValue'
                  isError:
                    type: boolean
                required:
                  - name
                  - when
                  - response
            voice:
              type: object
              properties:
                interruptions:
                  type: string
                  enum:
                    - allow
                    - execution
                    - whole_turn
                preToolSpeech:
                  type: string
                  enum:
                    - auto
                    - force
                    - 'off'
                speechText:
                  type: string
                  maxLength: 500
                executionMode:
                  type: string
                  enum:
                    - immediate
                    - post_speech
                    - async
                executionSound:
                  type: string
                  enum:
                    - none
                    - typing
                    - hold_music
            errorHandling:
              type: string
              enum:
                - auto
                - summarized
                - passthrough
                - hide
            dynamicVariables:
              type: object
              propertyNames:
                type: string
                minLength: 1
                maxLength: 140
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            assignments:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  variable:
                    type: string
                    minLength: 1
                    maxLength: 140
                  path:
                    type: string
                    minLength: 1
                    maxLength: 500
                required:
                  - variable
                  - path
            page:
              $ref: '#/components/schemas/WebFormPage'
            allowedHosts:
              minItems: 1
              maxItems: 20
              type: array
              items:
                type: string
                pattern: >-
                  ^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$
              description: >-
                The hosts the browser may open, each with its subdomains:
                `example.com` allows `forms.example.com`. A page or a redirect
                anywhere else stops the call before any value is typed.
            before:
              default: []
              description: >-
                Steps taken in order before the fields are filled, such as
                accepting a disclosure. Each waits up to `stepTimeoutMs` for its
                element to show and take a click. A step whose element the page
                never shows, because it shows the fields or the first submit
                step's element instead, is skipped.
              maxItems: 10
              type: array
              items:
                $ref: '#/components/schemas/WebFormStep'
            fields:
              maxItems: 50
              type: array
              items:
                $ref: '#/components/schemas/WebFormField'
              description: >-
                The fields to fill. Leave it empty for a run that only takes its
                steps, such as signing an agreement.
            submit:
              default: []
              description: >-
                Steps clicked in order once every required field is filled. Each
                waits up to `stepTimeoutMs` for its element to show and take a
                click, on an allowed host; the first one that doesn't stops the
                call. After the last one the page may leave the allowed hosts.
                When a step's element never shows before any submit step was
                clicked, the call requests a fresh link and runs once more,
                within `timeoutMs`.
              maxItems: 10
              type: array
              items:
                $ref: '#/components/schemas/WebFormStep'
            doneWhen:
              oneOf:
                - type: object
                  properties:
                    kind:
                      type: string
                      const: text
                    text:
                      type: string
                      minLength: 1
                      maxLength: 500
                  required:
                    - kind
                    - text
                - type: object
                  properties:
                    kind:
                      type: string
                      const: url
                    contains:
                      type: string
                      minLength: 1
                      maxLength: 500
                  required:
                    - kind
                    - contains
              description: >-
                What shows the form went through: text that appears on the page,
                ignoring case, or part of the page address. It is read on
                whatever page the last step leads to, on any host.
            parameters:
              $ref: '#/components/schemas/ToolParameters'
            timeoutMs:
              type: integer
              minimum: 10000
              maximum: 90000
            stepTimeoutMs:
              description: >-
                How long each step, and the fields after the steps before them,
                wait for their element to show, in milliseconds: 5,000 to
                60,000, 20,000 when left out. Never past `timeoutMs`.
              type: integer
              minimum: 5000
              maximum: 60000
          required:
            - kind
            - page
            - allowedHosts
            - before
            - fields
            - submit
            - parameters
    JsonValue:
      anyOf:
        - type: string
        - type: number
        - type: boolean
        - type: 'null'
        - type: array
          items:
            $ref: '#/components/schemas/JsonValue'
        - type: object
          propertyNames:
            type: string
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
    TestParameterAssertion:
      oneOf:
        - type: object
          properties:
            name:
              type: string
              minLength: 1
              maxLength: 150
            validation:
              type: string
              const: anything
            value:
              $ref: '#/components/schemas/JsonValue'
              default: null
              description: >-
                Optional for anything, which requires the named parameter to be
                present.
          required:
            - name
            - validation
            - value
        - type: object
          properties:
            name:
              type: string
              minLength: 1
              maxLength: 150
            validation:
              type: string
              enum:
                - exact
                - regex
                - llm
            value:
              $ref: '#/components/schemas/JsonValue'
          required:
            - name
            - validation
            - value
          description: >-
            `value` is the exact JSON value, a regex string, or an LLM
            requirement string.
    ToolParameters:
      maxItems: 30
      type: array
      items:
        type: object
        properties:
          description:
            default: ''
            type: string
            maxLength: 2000
          type:
            type: string
            enum:
              - string
              - number
              - boolean
              - integer
              - object
              - array
          enumValues:
            maxItems: 100
            type: array
            items:
              type: string
              maxLength: 1000
          properties:
            maxItems: 30
            type: array
            items:
              type: object
              properties:
                description:
                  default: ''
                  type: string
                  maxLength: 2000
                type:
                  type: string
                  enum:
                    - string
                    - number
                    - boolean
                    - integer
                    - object
                    - array
                enumValues:
                  maxItems: 100
                  type: array
                  items:
                    type: string
                    maxLength: 1000
                properties:
                  maxItems: 30
                  type: array
                  items:
                    type: object
                    properties:
                      description:
                        default: ''
                        type: string
                        maxLength: 2000
                      type:
                        type: string
                        enum:
                          - string
                          - number
                          - boolean
                          - integer
                          - object
                          - array
                      enumValues:
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          maxLength: 1000
                      properties:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            description:
                              default: ''
                              type: string
                              maxLength: 2000
                            type:
                              type: string
                              enum:
                                - string
                                - number
                                - boolean
                                - integer
                                - object
                                - array
                            enumValues:
                              maxItems: 100
                              type: array
                              items:
                                type: string
                                maxLength: 1000
                            properties:
                              maxItems: 30
                              type: array
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    maxItems: 30
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        description:
                                          default: ''
                                          type: string
                                          maxLength: 2000
                                        type:
                                          type: string
                                          enum:
                                            - string
                                            - number
                                            - boolean
                                            - integer
                                            - object
                                            - array
                                        enumValues:
                                          maxItems: 100
                                          type: array
                                          items:
                                            type: string
                                            maxLength: 1000
                                        properties:
                                          not: {}
                                        items:
                                          not: {}
                                        name:
                                          type: string
                                          pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                        location:
                                          type: string
                                          enum:
                                            - path
                                            - query
                                            - body
                                        valueSource:
                                          type: string
                                          enum:
                                            - llm
                                            - static
                                            - dynamic
                                        dynamicVariable:
                                          type: string
                                          minLength: 1
                                          maxLength: 140
                                        staticValue:
                                          $ref: '#/components/schemas/JsonValue'
                                        required:
                                          default: true
                                          type: boolean
                                      required:
                                        - description
                                        - type
                                        - name
                                        - required
                                  items:
                                    type: object
                                    properties:
                                      description:
                                        default: ''
                                        type: string
                                        maxLength: 2000
                                      type:
                                        type: string
                                        enum:
                                          - string
                                          - number
                                          - boolean
                                          - integer
                                          - object
                                          - array
                                      enumValues:
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 1000
                                      properties:
                                        not: {}
                                      items:
                                        not: {}
                                    required:
                                      - description
                                      - type
                                  name:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  location:
                                    type: string
                                    enum:
                                      - path
                                      - query
                                      - body
                                  valueSource:
                                    type: string
                                    enum:
                                      - llm
                                      - static
                                      - dynamic
                                  dynamicVariable:
                                    type: string
                                    minLength: 1
                                    maxLength: 140
                                  staticValue:
                                    $ref: '#/components/schemas/JsonValue'
                                  required:
                                    default: true
                                    type: boolean
                                required:
                                  - description
                                  - type
                                  - name
                                  - required
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  maxItems: 30
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      description:
                                        default: ''
                                        type: string
                                        maxLength: 2000
                                      type:
                                        type: string
                                        enum:
                                          - string
                                          - number
                                          - boolean
                                          - integer
                                          - object
                                          - array
                                      enumValues:
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 1000
                                      properties:
                                        not: {}
                                      items:
                                        not: {}
                                      name:
                                        type: string
                                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                      location:
                                        type: string
                                        enum:
                                          - path
                                          - query
                                          - body
                                      valueSource:
                                        type: string
                                        enum:
                                          - llm
                                          - static
                                          - dynamic
                                      dynamicVariable:
                                        type: string
                                        minLength: 1
                                        maxLength: 140
                                      staticValue:
                                        $ref: '#/components/schemas/JsonValue'
                                      required:
                                        default: true
                                        type: boolean
                                    required:
                                      - description
                                      - type
                                      - name
                                      - required
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                  required:
                                    - description
                                    - type
                              required:
                                - description
                                - type
                            name:
                              type: string
                              pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            location:
                              type: string
                              enum:
                                - path
                                - query
                                - body
                            valueSource:
                              type: string
                              enum:
                                - llm
                                - static
                                - dynamic
                            dynamicVariable:
                              type: string
                              minLength: 1
                              maxLength: 140
                            staticValue:
                              $ref: '#/components/schemas/JsonValue'
                            required:
                              default: true
                              type: boolean
                          required:
                            - description
                            - type
                            - name
                            - required
                      items:
                        type: object
                        properties:
                          description:
                            default: ''
                            type: string
                            maxLength: 2000
                          type:
                            type: string
                            enum:
                              - string
                              - number
                              - boolean
                              - integer
                              - object
                              - array
                          enumValues:
                            maxItems: 100
                            type: array
                            items:
                              type: string
                              maxLength: 1000
                          properties:
                            maxItems: 30
                            type: array
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  maxItems: 30
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      description:
                                        default: ''
                                        type: string
                                        maxLength: 2000
                                      type:
                                        type: string
                                        enum:
                                          - string
                                          - number
                                          - boolean
                                          - integer
                                          - object
                                          - array
                                      enumValues:
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 1000
                                      properties:
                                        not: {}
                                      items:
                                        not: {}
                                      name:
                                        type: string
                                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                      location:
                                        type: string
                                        enum:
                                          - path
                                          - query
                                          - body
                                      valueSource:
                                        type: string
                                        enum:
                                          - llm
                                          - static
                                          - dynamic
                                      dynamicVariable:
                                        type: string
                                        minLength: 1
                                        maxLength: 140
                                      staticValue:
                                        $ref: '#/components/schemas/JsonValue'
                                      required:
                                        default: true
                                        type: boolean
                                    required:
                                      - description
                                      - type
                                      - name
                                      - required
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                  required:
                                    - description
                                    - type
                                name:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                location:
                                  type: string
                                  enum:
                                    - path
                                    - query
                                    - body
                                valueSource:
                                  type: string
                                  enum:
                                    - llm
                                    - static
                                    - dynamic
                                dynamicVariable:
                                  type: string
                                  minLength: 1
                                  maxLength: 140
                                staticValue:
                                  $ref: '#/components/schemas/JsonValue'
                                required:
                                  default: true
                                  type: boolean
                              required:
                                - description
                                - type
                                - name
                                - required
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                            required:
                              - description
                              - type
                        required:
                          - description
                          - type
                      name:
                        type: string
                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                      location:
                        type: string
                        enum:
                          - path
                          - query
                          - body
                      valueSource:
                        type: string
                        enum:
                          - llm
                          - static
                          - dynamic
                      dynamicVariable:
                        type: string
                        minLength: 1
                        maxLength: 140
                      staticValue:
                        $ref: '#/components/schemas/JsonValue'
                      required:
                        default: true
                        type: boolean
                    required:
                      - description
                      - type
                      - name
                      - required
                items:
                  type: object
                  properties:
                    description:
                      default: ''
                      type: string
                      maxLength: 2000
                    type:
                      type: string
                      enum:
                        - string
                        - number
                        - boolean
                        - integer
                        - object
                        - array
                    enumValues:
                      maxItems: 100
                      type: array
                      items:
                        type: string
                        maxLength: 1000
                    properties:
                      maxItems: 30
                      type: array
                      items:
                        type: object
                        properties:
                          description:
                            default: ''
                            type: string
                            maxLength: 2000
                          type:
                            type: string
                            enum:
                              - string
                              - number
                              - boolean
                              - integer
                              - object
                              - array
                          enumValues:
                            maxItems: 100
                            type: array
                            items:
                              type: string
                              maxLength: 1000
                          properties:
                            maxItems: 30
                            type: array
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  maxItems: 30
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      description:
                                        default: ''
                                        type: string
                                        maxLength: 2000
                                      type:
                                        type: string
                                        enum:
                                          - string
                                          - number
                                          - boolean
                                          - integer
                                          - object
                                          - array
                                      enumValues:
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 1000
                                      properties:
                                        not: {}
                                      items:
                                        not: {}
                                      name:
                                        type: string
                                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                      location:
                                        type: string
                                        enum:
                                          - path
                                          - query
                                          - body
                                      valueSource:
                                        type: string
                                        enum:
                                          - llm
                                          - static
                                          - dynamic
                                      dynamicVariable:
                                        type: string
                                        minLength: 1
                                        maxLength: 140
                                      staticValue:
                                        $ref: '#/components/schemas/JsonValue'
                                      required:
                                        default: true
                                        type: boolean
                                    required:
                                      - description
                                      - type
                                      - name
                                      - required
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                  required:
                                    - description
                                    - type
                                name:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                location:
                                  type: string
                                  enum:
                                    - path
                                    - query
                                    - body
                                valueSource:
                                  type: string
                                  enum:
                                    - llm
                                    - static
                                    - dynamic
                                dynamicVariable:
                                  type: string
                                  minLength: 1
                                  maxLength: 140
                                staticValue:
                                  $ref: '#/components/schemas/JsonValue'
                                required:
                                  default: true
                                  type: boolean
                              required:
                                - description
                                - type
                                - name
                                - required
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                            required:
                              - description
                              - type
                          name:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                          location:
                            type: string
                            enum:
                              - path
                              - query
                              - body
                          valueSource:
                            type: string
                            enum:
                              - llm
                              - static
                              - dynamic
                          dynamicVariable:
                            type: string
                            minLength: 1
                            maxLength: 140
                          staticValue:
                            $ref: '#/components/schemas/JsonValue'
                          required:
                            default: true
                            type: boolean
                        required:
                          - description
                          - type
                          - name
                          - required
                    items:
                      type: object
                      properties:
                        description:
                          default: ''
                          type: string
                          maxLength: 2000
                        type:
                          type: string
                          enum:
                            - string
                            - number
                            - boolean
                            - integer
                            - object
                            - array
                        enumValues:
                          maxItems: 100
                          type: array
                          items:
                            type: string
                            maxLength: 1000
                        properties:
                          maxItems: 30
                          type: array
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                              name:
                                type: string
                                pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                              location:
                                type: string
                                enum:
                                  - path
                                  - query
                                  - body
                              valueSource:
                                type: string
                                enum:
                                  - llm
                                  - static
                                  - dynamic
                              dynamicVariable:
                                type: string
                                minLength: 1
                                maxLength: 140
                              staticValue:
                                $ref: '#/components/schemas/JsonValue'
                              required:
                                default: true
                                type: boolean
                            required:
                              - description
                              - type
                              - name
                              - required
                        items:
                          type: object
                          properties:
                            description:
                              default: ''
                              type: string
                              maxLength: 2000
                            type:
                              type: string
                              enum:
                                - string
                                - number
                                - boolean
                                - integer
                                - object
                                - array
                            enumValues:
                              maxItems: 100
                              type: array
                              items:
                                type: string
                                maxLength: 1000
                            properties:
                              maxItems: 30
                              type: array
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                  name:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  location:
                                    type: string
                                    enum:
                                      - path
                                      - query
                                      - body
                                  valueSource:
                                    type: string
                                    enum:
                                      - llm
                                      - static
                                      - dynamic
                                  dynamicVariable:
                                    type: string
                                    minLength: 1
                                    maxLength: 140
                                  staticValue:
                                    $ref: '#/components/schemas/JsonValue'
                                  required:
                                    default: true
                                    type: boolean
                                required:
                                  - description
                                  - type
                                  - name
                                  - required
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  not: {}
                                items:
                                  not: {}
                              required:
                                - description
                                - type
                          required:
                            - description
                            - type
                      required:
                        - description
                        - type
                  required:
                    - description
                    - type
                name:
                  type: string
                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                location:
                  type: string
                  enum:
                    - path
                    - query
                    - body
                valueSource:
                  type: string
                  enum:
                    - llm
                    - static
                    - dynamic
                dynamicVariable:
                  type: string
                  minLength: 1
                  maxLength: 140
                staticValue:
                  $ref: '#/components/schemas/JsonValue'
                required:
                  default: true
                  type: boolean
              required:
                - description
                - type
                - name
                - required
          items:
            type: object
            properties:
              description:
                default: ''
                type: string
                maxLength: 2000
              type:
                type: string
                enum:
                  - string
                  - number
                  - boolean
                  - integer
                  - object
                  - array
              enumValues:
                maxItems: 100
                type: array
                items:
                  type: string
                  maxLength: 1000
              properties:
                maxItems: 30
                type: array
                items:
                  type: object
                  properties:
                    description:
                      default: ''
                      type: string
                      maxLength: 2000
                    type:
                      type: string
                      enum:
                        - string
                        - number
                        - boolean
                        - integer
                        - object
                        - array
                    enumValues:
                      maxItems: 100
                      type: array
                      items:
                        type: string
                        maxLength: 1000
                    properties:
                      maxItems: 30
                      type: array
                      items:
                        type: object
                        properties:
                          description:
                            default: ''
                            type: string
                            maxLength: 2000
                          type:
                            type: string
                            enum:
                              - string
                              - number
                              - boolean
                              - integer
                              - object
                              - array
                          enumValues:
                            maxItems: 100
                            type: array
                            items:
                              type: string
                              maxLength: 1000
                          properties:
                            maxItems: 30
                            type: array
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  maxItems: 30
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      description:
                                        default: ''
                                        type: string
                                        maxLength: 2000
                                      type:
                                        type: string
                                        enum:
                                          - string
                                          - number
                                          - boolean
                                          - integer
                                          - object
                                          - array
                                      enumValues:
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 1000
                                      properties:
                                        not: {}
                                      items:
                                        not: {}
                                      name:
                                        type: string
                                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                      location:
                                        type: string
                                        enum:
                                          - path
                                          - query
                                          - body
                                      valueSource:
                                        type: string
                                        enum:
                                          - llm
                                          - static
                                          - dynamic
                                      dynamicVariable:
                                        type: string
                                        minLength: 1
                                        maxLength: 140
                                      staticValue:
                                        $ref: '#/components/schemas/JsonValue'
                                      required:
                                        default: true
                                        type: boolean
                                    required:
                                      - description
                                      - type
                                      - name
                                      - required
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                  required:
                                    - description
                                    - type
                                name:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                location:
                                  type: string
                                  enum:
                                    - path
                                    - query
                                    - body
                                valueSource:
                                  type: string
                                  enum:
                                    - llm
                                    - static
                                    - dynamic
                                dynamicVariable:
                                  type: string
                                  minLength: 1
                                  maxLength: 140
                                staticValue:
                                  $ref: '#/components/schemas/JsonValue'
                                required:
                                  default: true
                                  type: boolean
                              required:
                                - description
                                - type
                                - name
                                - required
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                            required:
                              - description
                              - type
                          name:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                          location:
                            type: string
                            enum:
                              - path
                              - query
                              - body
                          valueSource:
                            type: string
                            enum:
                              - llm
                              - static
                              - dynamic
                          dynamicVariable:
                            type: string
                            minLength: 1
                            maxLength: 140
                          staticValue:
                            $ref: '#/components/schemas/JsonValue'
                          required:
                            default: true
                            type: boolean
                        required:
                          - description
                          - type
                          - name
                          - required
                    items:
                      type: object
                      properties:
                        description:
                          default: ''
                          type: string
                          maxLength: 2000
                        type:
                          type: string
                          enum:
                            - string
                            - number
                            - boolean
                            - integer
                            - object
                            - array
                        enumValues:
                          maxItems: 100
                          type: array
                          items:
                            type: string
                            maxLength: 1000
                        properties:
                          maxItems: 30
                          type: array
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                              name:
                                type: string
                                pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                              location:
                                type: string
                                enum:
                                  - path
                                  - query
                                  - body
                              valueSource:
                                type: string
                                enum:
                                  - llm
                                  - static
                                  - dynamic
                              dynamicVariable:
                                type: string
                                minLength: 1
                                maxLength: 140
                              staticValue:
                                $ref: '#/components/schemas/JsonValue'
                              required:
                                default: true
                                type: boolean
                            required:
                              - description
                              - type
                              - name
                              - required
                        items:
                          type: object
                          properties:
                            description:
                              default: ''
                              type: string
                              maxLength: 2000
                            type:
                              type: string
                              enum:
                                - string
                                - number
                                - boolean
                                - integer
                                - object
                                - array
                            enumValues:
                              maxItems: 100
                              type: array
                              items:
                                type: string
                                maxLength: 1000
                            properties:
                              maxItems: 30
                              type: array
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                  name:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  location:
                                    type: string
                                    enum:
                                      - path
                                      - query
                                      - body
                                  valueSource:
                                    type: string
                                    enum:
                                      - llm
                                      - static
                                      - dynamic
                                  dynamicVariable:
                                    type: string
                                    minLength: 1
                                    maxLength: 140
                                  staticValue:
                                    $ref: '#/components/schemas/JsonValue'
                                  required:
                                    default: true
                                    type: boolean
                                required:
                                  - description
                                  - type
                                  - name
                                  - required
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  not: {}
                                items:
                                  not: {}
                              required:
                                - description
                                - type
                          required:
                            - description
                            - type
                      required:
                        - description
                        - type
                    name:
                      type: string
                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                    location:
                      type: string
                      enum:
                        - path
                        - query
                        - body
                    valueSource:
                      type: string
                      enum:
                        - llm
                        - static
                        - dynamic
                    dynamicVariable:
                      type: string
                      minLength: 1
                      maxLength: 140
                    staticValue:
                      $ref: '#/components/schemas/JsonValue'
                    required:
                      default: true
                      type: boolean
                  required:
                    - description
                    - type
                    - name
                    - required
              items:
                type: object
                properties:
                  description:
                    default: ''
                    type: string
                    maxLength: 2000
                  type:
                    type: string
                    enum:
                      - string
                      - number
                      - boolean
                      - integer
                      - object
                      - array
                  enumValues:
                    maxItems: 100
                    type: array
                    items:
                      type: string
                      maxLength: 1000
                  properties:
                    maxItems: 30
                    type: array
                    items:
                      type: object
                      properties:
                        description:
                          default: ''
                          type: string
                          maxLength: 2000
                        type:
                          type: string
                          enum:
                            - string
                            - number
                            - boolean
                            - integer
                            - object
                            - array
                        enumValues:
                          maxItems: 100
                          type: array
                          items:
                            type: string
                            maxLength: 1000
                        properties:
                          maxItems: 30
                          type: array
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                              name:
                                type: string
                                pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                              location:
                                type: string
                                enum:
                                  - path
                                  - query
                                  - body
                              valueSource:
                                type: string
                                enum:
                                  - llm
                                  - static
                                  - dynamic
                              dynamicVariable:
                                type: string
                                minLength: 1
                                maxLength: 140
                              staticValue:
                                $ref: '#/components/schemas/JsonValue'
                              required:
                                default: true
                                type: boolean
                            required:
                              - description
                              - type
                              - name
                              - required
                        items:
                          type: object
                          properties:
                            description:
                              default: ''
                              type: string
                              maxLength: 2000
                            type:
                              type: string
                              enum:
                                - string
                                - number
                                - boolean
                                - integer
                                - object
                                - array
                            enumValues:
                              maxItems: 100
                              type: array
                              items:
                                type: string
                                maxLength: 1000
                            properties:
                              maxItems: 30
                              type: array
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                  name:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  location:
                                    type: string
                                    enum:
                                      - path
                                      - query
                                      - body
                                  valueSource:
                                    type: string
                                    enum:
                                      - llm
                                      - static
                                      - dynamic
                                  dynamicVariable:
                                    type: string
                                    minLength: 1
                                    maxLength: 140
                                  staticValue:
                                    $ref: '#/components/schemas/JsonValue'
                                  required:
                                    default: true
                                    type: boolean
                                required:
                                  - description
                                  - type
                                  - name
                                  - required
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  not: {}
                                items:
                                  not: {}
                              required:
                                - description
                                - type
                          required:
                            - description
                            - type
                        name:
                          type: string
                          pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                        location:
                          type: string
                          enum:
                            - path
                            - query
                            - body
                        valueSource:
                          type: string
                          enum:
                            - llm
                            - static
                            - dynamic
                        dynamicVariable:
                          type: string
                          minLength: 1
                          maxLength: 140
                        staticValue:
                          $ref: '#/components/schemas/JsonValue'
                        required:
                          default: true
                          type: boolean
                      required:
                        - description
                        - type
                        - name
                        - required
                  items:
                    type: object
                    properties:
                      description:
                        default: ''
                        type: string
                        maxLength: 2000
                      type:
                        type: string
                        enum:
                          - string
                          - number
                          - boolean
                          - integer
                          - object
                          - array
                      enumValues:
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          maxLength: 1000
                      properties:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            description:
                              default: ''
                              type: string
                              maxLength: 2000
                            type:
                              type: string
                              enum:
                                - string
                                - number
                                - boolean
                                - integer
                                - object
                                - array
                            enumValues:
                              maxItems: 100
                              type: array
                              items:
                                type: string
                                maxLength: 1000
                            properties:
                              maxItems: 30
                              type: array
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                  name:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  location:
                                    type: string
                                    enum:
                                      - path
                                      - query
                                      - body
                                  valueSource:
                                    type: string
                                    enum:
                                      - llm
                                      - static
                                      - dynamic
                                  dynamicVariable:
                                    type: string
                                    minLength: 1
                                    maxLength: 140
                                  staticValue:
                                    $ref: '#/components/schemas/JsonValue'
                                  required:
                                    default: true
                                    type: boolean
                                required:
                                  - description
                                  - type
                                  - name
                                  - required
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  not: {}
                                items:
                                  not: {}
                              required:
                                - description
                                - type
                            name:
                              type: string
                              pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            location:
                              type: string
                              enum:
                                - path
                                - query
                                - body
                            valueSource:
                              type: string
                              enum:
                                - llm
                                - static
                                - dynamic
                            dynamicVariable:
                              type: string
                              minLength: 1
                              maxLength: 140
                            staticValue:
                              $ref: '#/components/schemas/JsonValue'
                            required:
                              default: true
                              type: boolean
                          required:
                            - description
                            - type
                            - name
                            - required
                      items:
                        type: object
                        properties:
                          description:
                            default: ''
                            type: string
                            maxLength: 2000
                          type:
                            type: string
                            enum:
                              - string
                              - number
                              - boolean
                              - integer
                              - object
                              - array
                          enumValues:
                            maxItems: 100
                            type: array
                            items:
                              type: string
                              maxLength: 1000
                          properties:
                            maxItems: 30
                            type: array
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  not: {}
                                items:
                                  not: {}
                                name:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                location:
                                  type: string
                                  enum:
                                    - path
                                    - query
                                    - body
                                valueSource:
                                  type: string
                                  enum:
                                    - llm
                                    - static
                                    - dynamic
                                dynamicVariable:
                                  type: string
                                  minLength: 1
                                  maxLength: 140
                                staticValue:
                                  $ref: '#/components/schemas/JsonValue'
                                required:
                                  default: true
                                  type: boolean
                              required:
                                - description
                                - type
                                - name
                                - required
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                not: {}
                              items:
                                not: {}
                            required:
                              - description
                              - type
                        required:
                          - description
                          - type
                    required:
                      - description
                      - type
                required:
                  - description
                  - type
            required:
              - description
              - type
          name:
            type: string
            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
          location:
            type: string
            enum:
              - path
              - query
              - body
          valueSource:
            type: string
            enum:
              - llm
              - static
              - dynamic
          dynamicVariable:
            type: string
            minLength: 1
            maxLength: 140
          staticValue:
            $ref: '#/components/schemas/JsonValue'
          required:
            default: true
            type: boolean
        required:
          - description
          - type
          - name
          - required
    WebFormPage:
      oneOf:
        - type: object
          properties:
            from:
              type: string
              const: url
            url:
              type: string
              maxLength: 2048
              format: uri
              description: >-
                The form's address. Use `{parameter}` in its path for a path
                parameter.
          required:
            - from
            - url
        - type: object
          properties:
            from:
              type: string
              const: request
            method:
              default: POST
              type: string
              enum:
                - GET
                - POST
                - PUT
                - PATCH
            url:
              type: string
              maxLength: 2048
              format: uri
              description: >-
                The API address that answers with a link to the form. Use
                `{parameter}` in its path for a path parameter.
            headers:
              default: {}
              type: object
              propertyNames:
                type: string
                maxLength: 100
              additionalProperties:
                type: string
                maxLength: 40000
                description: >-
                  A header value. Values are always read back masked as
                  `••••••••`; send the mask back to keep the stored value. A
                  header that has no stored value yet needs its real value.
            auth:
              oneOf:
                - type: object
                  properties:
                    type:
                      type: string
                      const: oauth2_client_credentials
                    tokenUrl:
                      type: string
                      maxLength: 2048
                      format: uri
                      description: >-
                        The HTTPS address the access token is requested from,
                        with the client credentials grant.
                    clientId:
                      type: string
                      minLength: 1
                      maxLength: 500
                    clientSecret:
                      type: string
                      minLength: 1
                      maxLength: 40000
                      description: >-
                        The client secret. It is always read back masked as
                        `••••••••`; send the mask back to keep the stored
                        secret. Changing the token URL's or the tool's server
                        origin needs the real secret again.
                    scope:
                      description: >-
                        Space-separated scopes to request. Left out, the token
                        request names none.
                      type: string
                      maxLength: 1000
                      pattern: >-
                        ^(?:[\x21\x23-\x5B\x5D-\x7E]+(?:
                        [\x21\x23-\x5B\x5D-\x7E]+)*)?$
                    clientAuthentication:
                      description: >-
                        How the client ID and secret reach the token URL:
                        `basic` (the default) in an HTTP Basic `Authorization`
                        header, `body` as `client_id` and `client_secret` form
                        fields.
                      type: string
                      enum:
                        - basic
                        - body
                  required:
                    - type
                    - tokenUrl
                    - clientId
                    - clientSecret
              description: >-
                How the tool signs in. Left out, the tool sends only its
                headers. With OAuth 2.0 client credentials the tool gets an
                access token from `tokenUrl`, reuses it until shortly before it
                expires, and sends it as `Authorization: Bearer`, so the tool
                cannot also have its own `Authorization` header.
            authConnectionId:
              description: >-
                The workspace auth connection the request signs in with, as `GET
                /auth-connections` lists it. The connection sends the
                `Authorization` header, so the request cannot also have its own,
                and cannot also set `auth`.
              type: string
              pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            linkPath:
              default: url
              description: >-
                Where the link sits in the JSON response, as a dot path. The
                link is opened once and never stored or logged.
              type: string
              maxLength: 500
              pattern: ^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$
          required:
            - from
            - method
            - url
            - headers
            - linkPath
      description: >-
        Where the form is: a fixed address, or a link an API request answers
        with right before the browser opens it.
    WebFormStep:
      type: object
      properties:
        action:
          type: string
          enum:
            - click
            - check
        target:
          oneOf:
            - type: object
              properties:
                by:
                  type: string
                  const: role
                role:
                  type: string
                  enum:
                    - button
                    - link
                    - checkbox
                    - radio
                    - tab
                    - menuitem
                name:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: >-
                    The element's accessible name, such as a button's text.
                    Matched as part of the name, ignoring case, unless `exact`.
                exact:
                  type: boolean
              required:
                - by
                - role
                - name
            - type: object
              properties:
                by:
                  type: string
                  const: label
                label:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: >-
                    The label of the checkbox or control. Matched as part of the
                    label, ignoring case and a trailing period, colon or
                    asterisk, unless `exact`.
                exact:
                  type: boolean
              required:
                - by
                - label
            - type: object
              properties:
                by:
                  type: string
                  const: css
                selector:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: >-
                    A CSS selector, for an element no name or label finds. Its
                    page can change it without notice.
              required:
                - by
                - selector
          description: What a step clicks or checks.
        delayMs:
          description: >-
            How long to wait before this step, in milliseconds, up to 10
            seconds: for a page that takes a moment to finish what the step
            before did, such as a signature it applies after a click, and
            ignores a click meanwhile.
          type: integer
          minimum: 0
          maximum: 10000
      required:
        - action
        - target
    WebFormField:
      type: object
      properties:
        label:
          type: string
          minLength: 1
          maxLength: 500
          description: >-
            The field's own label. Matched as part of the label, ignoring case,
            extra spaces and a trailing period, colon or asterisk on either
            side, unless `exact` asks for the whole label.
        parameter:
          type: string
          pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
          description: The tool parameter whose value fills the field.
        type:
          default: text
          type: string
          enum:
            - text
            - checkbox
            - select
        required:
          default: true
          description: >-
            A required field the page does not show fails the call before
            anything is submitted; an optional one is skipped.
          type: boolean
        exact:
          type: boolean
        every:
          description: >-
            Fill every field the label names, for a form that asks for the same
            value in several places, such as a Social Security number on each
            page. Without it, a label that names two fields stops the call
            before anything is typed.
          type: boolean
      required:
        - label
        - parameter
        - type
        - required
  responses:
    Error400:
      description: The request is invalid. `error.message` names the first problem.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error401:
      description: No valid workspace API key was sent.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error403:
      description: The key or the workspace's plan does not allow this request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error404:
      description: The endpoint, or a record it names, was not found in this workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error409:
      description: The record changed since it was read, or its state does not allow this.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error429:
      description: Too many requests. Wait for `Retry-After` seconds.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error500:
      description: The request could not be completed. Try again.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error504:
      description: The request took too long. Try again.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    workspaceApiKey:
      type: http
      scheme: bearer
      bearerFormat: cl_api_...
      description: >-
        A workspace API key from Workspace settings > API keys, sent as
        `Authorization: Bearer cl_api_...`. A Read only key can call the GET
        endpoints; every other method needs a Full access key.
    workspaceApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        The same workspace API key, for a gateway that keeps `Authorization` for
        itself.

````

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