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

# Replace the coordinating Session

> Create coordinating generation N+1 from the (optionally updated) coordinator template with a system.message handoff brief, archive generation N through…



## OpenAPI

````yaml /openapi.json post /v1/projects/{id}/coordinator
openapi: 3.1.0
info:
  title: Checkfu API
  version: '2026-08-31'
  description: >-
    Authentication is declared per operation: API-key, runtime, or connector
    bearer; Automation signature; bootstrap poll token; or anonymous bootstrap
    creation and credential-free pairing redemption. Every general Checkfu REST
    request requires the dated `Checkfu-Version` header (one of: 2026-08-31);
    the three MCP JSON-RPC transports use `MCP-Protocol-Version`, A2A uses
    `A2A-Version`, and the provider OAuth callback carries neither Checkfu
    header. API keys resolve one Workspace without a request selector;
    authenticated responses identify it with `Checkfu-Workspace-Id`.
servers:
  - url: https://api.checkfu.com
security:
  - bearerAuth: []
tags:
  - name: organizations
  - name: sourceRepositories
  - name: tenants
  - name: workspaces
  - name: principals
  - name: principalGroups
  - name: principalAccessCredentials
  - name: apiKeys
  - name: agents
  - name: harnesses
  - name: harnessRuntime
  - name: computerProfiles
  - name: permissionAssignments
  - name: actionPolicies
  - name: files
  - name: memoryStores
  - name: dreams
  - name: modelCredentials
  - name: modelRoutingProfiles
  - name: blueprintInstallations
  - name: toolSources
  - name: skills
  - name: skillSources
  - name: agentBlueprints
  - name: skillProposals
  - name: instructionProposals
  - name: catalog
  - name: concepts
  - name: support
  - name: bootstrapRequests
  - name: connections
  - name: connectionVaults
  - name: connectionAssignments
  - name: connectedRuntimes
  - name: fileTrees
  - name: collaboration
  - name: automationGraphs
  - name: automations
  - name: projects
  - name: actionApprovals
  - name: standingApprovals
  - name: workloadReviewPolicies
  - name: usage
  - name: models
  - name: outcomes
  - name: budgets
  - name: billing
  - name: sessions
  - name: audit
  - name: sessionExports
  - name: runs
  - name: runnerPools
  - name: transcripts
  - name: sessionWatches
  - name: sessionHandoffs
  - name: sessionCapsules
  - name: sessionTrajectories
  - name: webhookEndpoints
  - name: integrationGateway
  - name: workEnvironments
  - name: computers
  - name: computerScreens
  - name: computerBrowserObservations
  - name: computerBrowserActions
  - name: environments
  - name: computerHeadlessOperations
  - name: vaults
  - name: apiMcp
  - name: a2a
paths:
  /v1/projects/{id}/coordinator:
    post:
      tags:
        - projects
      summary: Replace the coordinating Session
      description: >-
        Create coordinating generation N+1 from the (optionally updated)
        coordinator template with a `system.message` handoff brief, archive
        generation N through the ordinary Session archive overlay, and bump
        `coordinating_generation`. Undelivered work reports reach the new
        generation through reseeded Watches without rerunning workers; older
        generations remain readable history.


        Checkfu support posture: alpha; hosted. No release evidence journey
        applies to this operation.
      operationId: projects.replaceProjectCoordinator
      parameters:
        - name: id
          in: path
          schema:
            $ref: '#/components/schemas/ProjectId'
          required: true
        - name: checkfu-version
          in: header
          schema:
            type: string
            enum:
              - '2026-08-31'
          required: true
        - name: idempotency-key
          in: header
          schema:
            type: string
            allOf:
              - maxLength: 255
          required: false
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                expected_version:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                coordinator:
                  $ref: '#/components/schemas/ProjectCoordinatorTemplate'
              required:
                - expected_version
              additionalProperties: false
        required: true
      responses:
        '200':
          description: Project
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project_8'
          headers:
            checkfu-workspace-id:
              description: The Workspace resolved from the authenticated bearer credential.
              required: true
              schema:
                $ref: '#/components/schemas/WorkspaceId'
        '400':
          description: Typed Checkfu wire error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationMalformedError'
        '401':
          description: Typed Checkfu wire error
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - message
                      - more
                    properties:
                      type:
                        type: string
                        enum:
                          - auth.invalid_key
                      message:
                        type: string
                      more:
                        type: string
                        enum:
                          - >-
                            https://docs.checkfu.com/reference/errors#auth-invalid-key
                        description: >-
                          Stable public documentation and remedy for this error
                          type.
                    additionalProperties: false
                additionalProperties: false
        '403':
          description: >-
            The organization, tenant, or workspace backing this key is
            administratively disabled. | Deployment governance or retention
            policy denied the request.
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    required:
                      - error
                    properties:
                      error:
                        type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - auth.disabled_tenancy
                          message:
                            type: string
                          more:
                            type: string
                            enum:
                              - >-
                                https://docs.checkfu.com/reference/errors#auth-disabled-tenancy
                            description: >-
                              Stable public documentation and remedy for this
                              error type.
                        required:
                          - type
                          - message
                          - more
                        additionalProperties: false
                    additionalProperties: false
                  - $ref: '#/components/schemas/PolicyDeniedError'
        '404':
          description: >-
            The requested resource does not exist in the resolved deployment
            boundary.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationNotFoundError'
        '409':
          description: >-
            The request conflicts with the resource's current state. | An
            idempotent mutation conflicts with a completed or in-progress
            request for the same key. | The operation is illegal for the
            resource's current lifecycle state. | The Project is paused or
            archived and refuses new work or coordinating messages (D339).
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationConflictError'
                  - $ref: '#/components/schemas/IdempotencyConflictError'
                  - $ref: '#/components/schemas/RuntimeInvalidTransitionError'
                  - $ref: '#/components/schemas/RuntimeProjectFencedError'
        '429':
          description: Typed Checkfu wire error
          headers:
            retry-after:
              description: >-
                Delay in seconds for rate limits or deployment quotas with a
                known release or UTC reset boundary
              required: false
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - message
                      - more
                    properties:
                      type:
                        type: string
                        enum:
                          - budget.exceeded
                      message:
                        type: string
                      more:
                        type: string
                        enum:
                          - >-
                            https://docs.checkfu.com/reference/errors#budget-exceeded
                        description: >-
                          Stable public documentation and remedy for this error
                          type.
                    additionalProperties: false
                additionalProperties: false
        '500':
          description: >-
            An unexpected internal failure occurred; the message contains an
            opaque incident reference.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuntimeInternalError'
      security:
        - bearerAuth: []
components:
  schemas:
    ProjectId:
      type: string
      allOf:
        - pattern: ^proj_[0-9a-f]{32}$
    ProjectCoordinatorTemplate:
      type: object
      properties:
        agent:
          $ref: '#/components/schemas/ManagedAgentsSessionAgentParams'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        resources:
          $ref: '#/components/schemas/ManagedAgentsSessionResources'
        vault_ids:
          type: array
          items:
            $ref: '#/components/schemas/VaultId'
      required:
        - agent
        - environment_id
      additionalProperties: false
    Project_8:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ProjectId'
        workspace_id:
          $ref: '#/components/schemas/WorkspaceId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        external_id:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        goal:
          type: string
          allOf:
            - maxLength: 1024
        instructions:
          type: string
          allOf:
            - maxLength: 16384
        memory_store_id:
          $ref: '#/components/schemas/Union_299'
        coordinator:
          $ref: '#/components/schemas/ProjectCoordinatorTemplate'
        work:
          $ref: '#/components/schemas/ProjectWorkTemplate'
        created_by:
          $ref: '#/components/schemas/PrincipalId'
        identity:
          $ref: '#/components/schemas/ProjectIdentity'
        status:
          $ref: '#/components/schemas/Union_300'
        coordinating_session_id:
          $ref: '#/components/schemas/Union_301'
        coordinating_generation:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        owned_automation_ids:
          $ref: '#/components/schemas/Arrays_50'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        created_at:
          type: string
        updated_at:
          type: string
        archived_at:
          $ref: '#/components/schemas/Union_302'
      required:
        - id
        - workspace_id
        - version
        - name
        - goal
        - instructions
        - memory_store_id
        - coordinator
        - work
        - created_by
        - identity
        - status
        - coordinating_session_id
        - coordinating_generation
        - owned_automation_ids
        - created_at
        - updated_at
        - archived_at
      additionalProperties: false
    WorkspaceId:
      type: string
      allOf:
        - pattern: ^wrkspc_[0-9a-f]{32}$
    ValidationMalformedError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.malformed
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-malformed
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        The request could not be decoded or violated a declared input
        constraint.
    PolicyDeniedError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - policy.denied
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#policy-denied
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: Deployment governance or retention policy denied the request.
    ValidationNotFoundError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.not_found
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-not-found
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        The requested resource does not exist in the resolved deployment
        boundary.
    ValidationConflictError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.conflict
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-conflict
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The request conflicts with the resource's current state.
    IdempotencyConflictError:
      anyOf:
        - $ref: '#/components/schemas/ValidationIdempotencyConflictError'
        - $ref: '#/components/schemas/ValidationIdempotencyInProgressError'
      description: >-
        An idempotent mutation conflicts with a completed or in-progress request
        for the same key.
    RuntimeInvalidTransitionError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.invalid_transition
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#runtime-invalid-transition
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The operation is illegal for the resource's current lifecycle state.
    RuntimeProjectFencedError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.project_fenced
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#runtime-project-fenced
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        The Project is paused or archived and refuses new work or coordinating
        messages (D339).
    RuntimeInternalError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.internal
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#runtime-internal
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        An unexpected internal failure occurred; the message contains an opaque
        incident reference.
    ManagedAgentsSessionAgentParams:
      anyOf:
        - $ref: '#/components/schemas/AgentId'
        - $ref: '#/components/schemas/ManagedAgentsAgentParams'
        - $ref: '#/components/schemas/ManagedAgentsAgentWithOverridesParams'
    EnvironmentId:
      type: string
      allOf:
        - pattern: ^env_[0-9a-f]{32}$
    ManagedAgentsSessionResources:
      type: array
      items:
        $ref: '#/components/schemas/ManagedAgentsSessionResourceParams'
    VaultId:
      type: string
      allOf:
        - pattern: ^vlt_[0-9a-f]{32}$
    Union_299:
      anyOf:
        - $ref: '#/components/schemas/MemoryStoreId'
        - type: 'null'
    ProjectWorkTemplate:
      type: object
      properties:
        agents:
          $ref: '#/components/schemas/Arrays_49'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        resources:
          $ref: '#/components/schemas/ManagedAgentsSessionResources'
        vault_ids:
          type: array
          items:
            $ref: '#/components/schemas/VaultId'
        connected_runtime:
          anyOf:
            - $ref: '#/components/schemas/ConnectedRuntimeId'
            - type: 'null'
        max_active_sessions:
          type: integer
          allOf:
            - exclusiveMinimum: 0
            - maximum: 25
        max_starts_per_hour:
          type: integer
          allOf:
            - exclusiveMinimum: 0
            - maximum: 200
        auto_resolve_after_seconds:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - agents
        - environment_id
        - max_active_sessions
        - max_starts_per_hour
        - auto_resolve_after_seconds
      additionalProperties: false
    PrincipalId:
      type: string
      allOf:
        - pattern: ^prin_[0-9a-f]{32}$
    ProjectIdentity:
      type: object
      properties:
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
      required:
        - acted_as
      additionalProperties: false
    Union_300:
      type: string
      enum:
        - provisioning
        - active
        - paused
        - archived
    Union_301:
      anyOf:
        - $ref: '#/components/schemas/SessionId'
        - type: 'null'
    Arrays_50:
      type: array
      items:
        $ref: '#/components/schemas/AutomationId'
    ResourceMetadata:
      type: object
      additionalProperties:
        type: string
        allOf:
          - maxLength: 512
      allOf:
        - propertyNames:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 64
        - maxProperties: 16
          description: at most 16 correlation pairs with keys of 1 to 64 characters
    Union_302:
      anyOf:
        - type: string
        - type: 'null'
    ValidationIdempotencyConflictError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.idempotency_conflict
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#validation-idempotency-conflict
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The Idempotency-Key is already bound to a different request.
    ValidationIdempotencyInProgressError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.idempotency_in_progress
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#validation-idempotency-in-progress
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        An identical idempotent request is still in progress and may be retried
        later.
    AgentId:
      type: string
      allOf:
        - pattern: ^agent_[0-9a-f]{32}$
    ManagedAgentsAgentParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - agent
        id:
          $ref: '#/components/schemas/AgentId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - type
        - id
      additionalProperties: false
    ManagedAgentsAgentWithOverridesParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - agent_with_overrides
        id:
          $ref: '#/components/schemas/AgentId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        harness:
          $ref: '#/components/schemas/ManagedAgentsHarnessReference'
        mcp_servers:
          $ref: '#/components/schemas/Arrays_4'
        model:
          $ref: '#/components/schemas/ManagedAgentsModelConfigParams'
        skills:
          type: array
          items:
            $ref: '#/components/schemas/Union_29'
        system:
          anyOf:
            - $ref: '#/components/schemas/ManagedAgentsSessionSystem'
            - type: 'null'
        tools:
          $ref: '#/components/schemas/Arrays_5'
      required:
        - type
        - id
      additionalProperties: false
    ManagedAgentsSessionResourceParams:
      anyOf:
        - $ref: '#/components/schemas/ManagedAgentsGitHubRepositoryResourceParams'
        - $ref: '#/components/schemas/ManagedAgentsFileResourceParams'
        - $ref: '#/components/schemas/ManagedAgentsMemoryStoreResourceParam'
    MemoryStoreId:
      type: string
      allOf:
        - pattern: ^memstore_[0-9a-f]{32}$
    Arrays_49:
      type: array
      items:
        $ref: '#/components/schemas/ManagedAgentsSessionAgentParams'
      allOf:
        - minItems: 1
        - maxItems: 20
    ConnectedRuntimeId:
      type: string
      allOf:
        - pattern: ^crt_[0-9a-f]{32}$
    SessionId:
      type: string
      allOf:
        - pattern: ^sess_[0-9a-f]{32}$
    AutomationId:
      type: string
      allOf:
        - pattern: ^auto_[0-9a-f]{32}$
    ManagedAgentsHarnessReference:
      type: string
      allOf:
        - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})(?:@(?:latest|[1-9][0-9]{0,8}))?$
          description: >-
            a harness catalog name this deployment serves: claude-code, cline,
            codex, cursor, deepagents, deepseek, hermes, openclaw,
            openclaw-connected, opencode, pi, prime-agent
    Arrays_4:
      type: array
      items:
        $ref: '#/components/schemas/Union_27'
      allOf:
        - maxItems: 20
    ManagedAgentsModelConfigParams:
      anyOf:
        - type: string
        - type: object
          properties:
            id:
              type: string
            effort:
              anyOf:
                - anyOf:
                    - $ref: '#/components/schemas/Union_23'
                    - $ref: '#/components/schemas/Union_24'
                - type: 'null'
            inference_geo:
              anyOf:
                - $ref: '#/components/schemas/Union_11'
                - type: 'null'
            speed:
              anyOf:
                - type: string
                  enum:
                    - standard
                    - fast
                - type: 'null'
          required:
            - id
          additionalProperties: false
    Union_29:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - anthropic
            skill_id:
              type: string
            version:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - type
            - skill_id
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - custom
            skill_id:
              type: string
            version:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - type
            - skill_id
          additionalProperties: false
    ManagedAgentsSessionSystem:
      type: string
    Arrays_5:
      type: array
      items:
        $ref: '#/components/schemas/ManagedAgentsToolParams'
      allOf:
        - maxItems: 128
    ManagedAgentsGitHubRepositoryResourceParams:
      type: object
      properties:
        authorization_token:
          type: string
        type:
          type: string
          enum:
            - github_repository
        url:
          $ref: '#/components/schemas/ManagedAgentsGitHubRepositoryUrl'
        checkout:
          anyOf:
            - $ref: '#/components/schemas/ManagedAgentsRepositoryCheckout'
            - type: 'null'
        mount_path:
          anyOf:
            - $ref: '#/components/schemas/ManagedAgentsGitHubRepositoryMountPath'
            - type: 'null'
      required:
        - authorization_token
        - type
        - url
      additionalProperties: false
    ManagedAgentsFileResourceParams:
      type: object
      properties:
        file_id:
          $ref: '#/components/schemas/FileId'
        type:
          type: string
          enum:
            - file
        mount_path:
          anyOf:
            - $ref: '#/components/schemas/ManagedAgentsFileResourceMountPath'
            - type: 'null'
      required:
        - file_id
        - type
      additionalProperties: false
    ManagedAgentsMemoryStoreResourceParam:
      type: object
      properties:
        memory_store_id:
          $ref: '#/components/schemas/MemoryStoreId'
        type:
          type: string
          enum:
            - memory_store
        access:
          anyOf:
            - type: string
              enum:
                - read_write
                - read_only
            - type: 'null'
        instructions:
          anyOf:
            - type: string
              allOf:
                - minLength: 1
                - maxLength: 4096
            - type: 'null'
      required:
        - memory_store_id
        - type
      additionalProperties: false
    Union_27:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - url
            name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            url:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 2048
          required:
            - type
            - name
            - url
          additionalProperties: false
        - $ref: '#/components/schemas/ManagedAgentsConnectionMcpServerParams'
    Union_23:
      type: string
      enum:
        - low
        - medium
        - high
        - xhigh
        - max
    Union_24:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - low
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - medium
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - high
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - xhigh
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - max
          required:
            - type
          additionalProperties: false
    Union_11:
      type: string
      enum:
        - global
        - us
    ManagedAgentsToolParams:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - agent_toolset_20260401
            configs:
              type: array
              items:
                $ref: '#/components/schemas/ManagedAgentsAgentToolConfigParams'
            default_config:
              anyOf:
                - $ref: '#/components/schemas/Objects_14'
                - type: 'null'
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - mcp_toolset
            mcp_server_name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            configs:
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 128
                  enabled:
                    type: boolean
                  permission_policy:
                    $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                required:
                  - name
                additionalProperties: false
            default_config:
              anyOf:
                - $ref: '#/components/schemas/Objects_14'
                - type: 'null'
          required:
            - type
            - mcp_server_name
          additionalProperties: false
        - $ref: '#/components/schemas/Objects_15'
    ManagedAgentsGitHubRepositoryUrl:
      type: string
    ManagedAgentsRepositoryCheckout:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - branch
            name:
              type: string
              allOf:
                - minLength: 1
          required:
            - type
            - name
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - commit
            sha:
              type: string
              allOf:
                - pattern: ^[0-9a-f]{40}$
          required:
            - type
            - sha
          additionalProperties: false
    ManagedAgentsGitHubRepositoryMountPath:
      type: string
      allOf:
        - minLength: 2
        - maxLength: 1024
    FileId:
      type: string
      allOf:
        - pattern: ^file_[0-9a-f]{32}$
    ManagedAgentsFileResourceMountPath:
      type: string
      allOf:
        - minLength: 2
        - maxLength: 1024
    ManagedAgentsConnectionMcpServerParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - connection
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        connection_id:
          $ref: '#/components/schemas/ConnectionId'
      required:
        - type
        - name
        - connection_id
      additionalProperties: false
      description: >-
        An explicit governed Connection account exposed under a named MCP
        toolset.
    ManagedAgentsAgentToolConfigParams:
      anyOf:
        - type: object
          properties:
            name:
              type: string
              enum:
                - bash
            type:
              type: string
              enum:
                - bash
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - edit
            type:
              type: string
              enum:
                - edit
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - glob
            type:
              type: string
              enum:
                - glob
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - grep
            type:
              type: string
              enum:
                - grep
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - read
            type:
              type: string
              enum:
                - read
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - web_fetch
            type:
              type: string
              enum:
                - web_fetch
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
            allowed_domains:
              $ref: '#/components/schemas/Arrays_6'
            blocked_domains:
              $ref: '#/components/schemas/Arrays_6'
            max_content_tokens:
              anyOf:
                - type: integer
                  allOf:
                    - exclusiveMinimum: 0
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - web_search
            type:
              type: string
              enum:
                - web_search
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
            allowed_domains:
              $ref: '#/components/schemas/Arrays_6'
            blocked_domains:
              $ref: '#/components/schemas/Arrays_6'
            user_location:
              anyOf:
                - $ref: '#/components/schemas/Objects_13'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - write
            type:
              type: string
              enum:
                - write
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
    Objects_14:
      type: object
      properties:
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
        permission_policy:
          anyOf:
            - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
            - type: 'null'
      additionalProperties: false
    ManagedAgentsPermissionPolicy:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - always_allow
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - always_ask
          required:
            - type
          additionalProperties: false
    Objects_15:
      type: object
      properties:
        type:
          type: string
          enum:
            - custom
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 128
            - pattern: ^[A-Za-z0-9_-]+$
        description:
          type: string
          allOf:
            - minLength: 1
        input_schema:
          $ref: '#/components/schemas/ManagedAgentsCustomToolInputSchema'
      required:
        - type
        - name
        - description
        - input_schema
      additionalProperties: false
    ConnectionId:
      type: string
      allOf:
        - pattern: ^conn_[0-9a-f]{32}$
    Arrays_6:
      type: array
      items:
        type: string
        allOf:
          - minLength: 1
          - maxLength: 255
      allOf:
        - minItems: 1
        - maxItems: 64
    Objects_13:
      type: object
      properties:
        type:
          type: string
          enum:
            - approximate
        city:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - $ref: '#/components/schemas/ManagedAgentsIsoCountryCode'
            - type: 'null'
        region:
          anyOf:
            - type: string
            - type: 'null'
        timezone:
          anyOf:
            - $ref: '#/components/schemas/ManagedAgentsIanaTimeZone'
            - type: 'null'
      required:
        - type
      additionalProperties: false
    ManagedAgentsCustomToolInputSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - object
        properties:
          anyOf:
            - type: object
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            - type: 'null'
        required:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
      required:
        - type
      additionalProperties:
        $ref: '#/components/schemas/JsonValue'
      description: JSON Schema for custom tool input parameters.
    ManagedAgentsIsoCountryCode:
      type: string
      allOf:
        - pattern: ^[A-Z]{2}$
    ManagedAgentsIanaTimeZone:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 255
    JsonValue:
      description: >-
        A value in the JSON data model: null, boolean, finite number, string,
        array, or object.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````