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

# Request a SessionThread harness handoff

> Inspects or requests an idle SessionThread harness handoff at the frozen context frontier. Inspection reports the requested continuity, target posture, and visible loss dimensions without mutation. An applied portable handoff additionally requires an exact target Agent selector, Environment, and currently signed handoff-import target; the server compiles and binds that target admission, advances the thread to one new root actor generation, and queues a context-rebuild Run. Failed or unqualified apply advances no context frontier. Native-exact launch remains unavailable here unless the target path separately supplies compatible capsule custody. Distinct from same-tuple idle continuation.

Checkfu support posture: alpha; hosted. Required evidence journey: session-turn. Deployment-specific readiness and the latest proven release are available from GET /v1/support/capabilities.



## OpenAPI

````yaml /openapi.json post /v1/sessions/{id}/handoffs
openapi: 3.1.0
info:
  title: Checkfu API
  version: '2026-08-29'
  description: >-
    Authentication is declared per operation: API-key, runtime, or connector
    bearer; Automation signature; or credential-free pairing redemption. Every
    general Checkfu REST request requires the dated `Checkfu-Version` header
    (one of: 2026-08-29); 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: agentSources
  - name: skillProposals
  - name: instructionProposals
  - name: catalog
  - name: concepts
  - name: support
  - name: connections
  - name: connectionVaults
  - name: connectionAssignments
  - name: connectedRuntimes
  - name: projects
  - name: collaboration
  - name: automationGraphs
  - name: automations
  - name: actionApprovals
  - name: standingApprovals
  - 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: agentDeployments
  - name: workEnvironments
  - name: computers
  - name: computerScreens
  - name: computerBrowserObservations
  - name: computerBrowserActions
  - name: environments
  - name: vaults
  - name: apiMcp
  - name: a2a
paths:
  /v1/sessions/{id}/handoffs:
    post:
      tags:
        - sessionHandoffs
      summary: Request a SessionThread harness handoff
      description: >-
        Inspects or requests an idle SessionThread harness handoff at the frozen
        context frontier. Inspection reports the requested continuity, target
        posture, and visible loss dimensions without mutation. An applied
        portable handoff additionally requires an exact target Agent selector,
        Environment, and currently signed handoff-import target; the server
        compiles and binds that target admission, advances the thread to one new
        root actor generation, and queues a context-rebuild Run. Failed or
        unqualified apply advances no context frontier. Native-exact launch
        remains unavailable here unless the target path separately supplies
        compatible capsule custody. Distinct from same-tuple idle continuation.


        Checkfu support posture: alpha; hosted. Required evidence journey:
        session-turn. Deployment-specific readiness and the latest proven
        release are available from GET /v1/support/capabilities.
      operationId: sessionHandoffs.createSessionHandoff
      parameters:
        - name: id
          in: path
          schema:
            $ref: '#/components/schemas/SessionId'
          required: true
        - name: checkfu-version
          in: header
          schema:
            type: string
            enum:
              - '2026-08-29'
          required: true
        - name: idempotency-key
          in: header
          schema:
            type: string
            allOf:
              - maxLength: 255
              - minLength: 1
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                session_thread_id:
                  $ref: '#/components/schemas/SessionThreadId'
                requested_continuity:
                  $ref: '#/components/schemas/Union_395'
                target_type:
                  $ref: '#/components/schemas/Union_396'
                target_has_handoff_import:
                  type: boolean
                capsule_compatible:
                  type: boolean
                filesystem_posture:
                  type: string
                  enum:
                    - same_sandbox
                    - checkpoint_clone
                    - fresh_environment
                apply:
                  type: boolean
                transport_protocol:
                  type: string
                  enum:
                    - acp
                    - managed
                    - connected
                agent_context_digest:
                  anyOf:
                    - type: string
                      allOf:
                        - pattern: ^sha256:[0-9a-f]{64}$
                    - type: 'null'
                source_tool_digest:
                  anyOf:
                    - type: string
                      allOf:
                        - pattern: ^sha256:[0-9a-f]{64}$
                    - type: 'null'
                target_tool_digest:
                  anyOf:
                    - type: string
                      allOf:
                        - pattern: ^sha256:[0-9a-f]{64}$
                    - type: 'null'
                source_resource_digest:
                  anyOf:
                    - type: string
                      allOf:
                        - pattern: ^sha256:[0-9a-f]{64}$
                    - type: 'null'
                target_resource_digest:
                  anyOf:
                    - type: string
                      allOf:
                        - pattern: ^sha256:[0-9a-f]{64}$
                    - type: 'null'
                source_filesystem_digest:
                  anyOf:
                    - type: string
                      allOf:
                        - pattern: ^sha256:[0-9a-f]{64}$
                    - type: 'null'
                target_filesystem_digest:
                  anyOf:
                    - type: string
                      allOf:
                        - pattern: ^sha256:[0-9a-f]{64}$
                    - type: 'null'
                target_agent:
                  $ref: '#/components/schemas/BetaManagedAgentsSessionAgentParams'
                target_environment_id:
                  $ref: '#/components/schemas/EnvironmentId'
                target:
                  $ref: >-
                    #/components/schemas/SessionRecoveryTargetQualificationBinding
              required:
                - session_thread_id
                - requested_continuity
                - target_type
                - target_has_handoff_import
                - capsule_compatible
                - filesystem_posture
              additionalProperties: false
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  session_id:
                    $ref: '#/components/schemas/SessionId'
                  session_thread_id:
                    $ref: '#/components/schemas/SessionThreadId'
                  frozen_sequence:
                    type: integer
                    allOf:
                      - minimum: 0
                      - maximum: 9007199254740991
                  preflight:
                    anyOf:
                      - type: object
                        properties:
                          outcome:
                            type: string
                            enum:
                              - refused
                          reason:
                            type: string
                            enum:
                              - thread_not_idle
                              - unsettled_effect
                              - unresolved_interaction
                              - not_resumable
                        required:
                          - outcome
                          - reason
                        additionalProperties: false
                      - type: object
                        properties:
                          outcome:
                            type: string
                            enum:
                              - admitted
                          selected_continuity:
                            $ref: '#/components/schemas/Union_395'
                          dimensions:
                            $ref: >-
                              #/components/schemas/CompleteSessionHandoffDimensions
                        required:
                          - outcome
                          - selected_continuity
                          - dimensions
                        additionalProperties: false
                  mutation:
                    anyOf:
                      - type: object
                        properties:
                          mutation_type:
                            type: string
                            enum:
                              - none
                          context_frontier_sequence:
                            type: integer
                            allOf:
                              - minimum: 0
                              - maximum: 9007199254740991
                        required:
                          - mutation_type
                          - context_frontier_sequence
                        additionalProperties: false
                      - type: object
                        properties:
                          mutation_type:
                            type: string
                            enum:
                              - applied
                          context_frontier_sequence:
                            type: integer
                            allOf:
                              - exclusiveMinimum: 0
                              - maximum: 9007199254740991
                          target_run_id:
                            $ref: '#/components/schemas/RunId'
                          target_actor_id:
                            $ref: '#/components/schemas/SessionActorId'
                          target_actor_generation_number:
                            type: integer
                            allOf:
                              - exclusiveMinimum: 0
                              - maximum: 9007199254740991
                        required:
                          - mutation_type
                          - context_frontier_sequence
                          - target_run_id
                          - target_actor_id
                          - target_actor_generation_number
                        additionalProperties: false
                  snapshot_injection:
                    anyOf:
                      - type: string
                        enum:
                          - native_session_load
                          - managed_native_restore
                          - portable_snapshot_import
                      - type: 'null'
                  apply_status:
                    type: string
                    enum:
                      - not_requested
                      - preflight_refused
                      - writer_unavailable
                      - applied
                      - writer_failed
                      - target_unqualified
                required:
                  - session_id
                  - session_thread_id
                  - frozen_sequence
                  - preflight
                  - mutation
                  - snapshot_injection
                  - apply_status
                additionalProperties: false
          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.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationConflictError'
                  - $ref: '#/components/schemas/IdempotencyConflictError'
        '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:
    SessionId:
      type: string
      allOf:
        - pattern: ^sess_[0-9a-f]{32}$
    SessionThreadId:
      type: string
      allOf:
        - pattern: ^sthr_[0-9a-f]{32}$
    Union_395:
      type: string
      enum:
        - native_compatible
        - portable_rebuild
        - transcript_only
        - not_resumable
    Union_396:
      type: string
      enum:
        - semantic
        - native
        - filesystem
    BetaManagedAgentsSessionAgentParams:
      anyOf:
        - $ref: '#/components/schemas/AgentId'
        - $ref: '#/components/schemas/BetaManagedAgentsAgentParams'
        - $ref: '#/components/schemas/BetaManagedAgentsAgentWithOverridesParams'
    EnvironmentId:
      type: string
      allOf:
        - pattern: ^env_[0-9a-f]{32}$
    SessionRecoveryTargetQualificationBinding:
      type: object
      properties:
        importer_id:
          type: string
          allOf:
            - maxLength: 4096
            - minLength: 1
            - maxLength: 255
        target_type:
          $ref: '#/components/schemas/Union_396'
        agent_id:
          $ref: '#/components/schemas/AgentId'
        agent_version_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
            - maximum: 9007199254740991
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        environment_snapshot_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        admission_snapshot_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        runtime_tuple_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        adapter_version_identifier:
          type: string
          allOf:
            - maxLength: 4096
            - minLength: 1
            - maxLength: 255
        driver_version_identifier:
          type: string
          allOf:
            - maxLength: 4096
            - minLength: 1
            - maxLength: 255
        continuation_schema_identifier:
          type: string
          allOf:
            - maxLength: 4096
            - minLength: 1
            - maxLength: 255
        transport_protocol:
          type: string
          enum:
            - acp
            - managed
            - connected
        platform_identifier:
          type: string
          allOf:
            - maxLength: 4096
            - minLength: 1
            - maxLength: 255
        model_manifest_digest:
          anyOf:
            - type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            - type: 'null'
        tool_manifest_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        resource_manifest_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        capture_policy_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        filesystem_digest:
          anyOf:
            - type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            - type: 'null'
        qualification_receipt:
          $ref: '#/components/schemas/SessionRuntimeQualificationReceiptIntegrity'
      required:
        - importer_id
        - target_type
        - agent_id
        - agent_version_number
        - environment_id
        - environment_snapshot_digest
        - admission_snapshot_digest
        - runtime_tuple_digest
        - adapter_version_identifier
        - driver_version_identifier
        - continuation_schema_identifier
        - transport_protocol
        - platform_identifier
        - model_manifest_digest
        - tool_manifest_digest
        - resource_manifest_digest
        - capture_policy_digest
        - filesystem_digest
        - qualification_receipt
      additionalProperties: false
    CompleteSessionHandoffDimensions:
      type: array
      items:
        $ref: '#/components/schemas/SessionHandoffDimensionDisposition'
    RunId:
      type: string
      allOf:
        - pattern: ^run_[0-9a-f]{32}$
    SessionActorId:
      type: string
      allOf:
        - pattern: ^sact_[0-9a-f]{32}$
    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.
    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.
    AgentId:
      type: string
      allOf:
        - pattern: ^agent_[0-9a-f]{32}$
    BetaManagedAgentsAgentParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - agent
        id:
          $ref: '#/components/schemas/AgentId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - type
        - id
      additionalProperties: false
    BetaManagedAgentsAgentWithOverridesParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - agent_with_overrides
        id:
          $ref: '#/components/schemas/AgentId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        mcp_servers:
          $ref: '#/components/schemas/Arrays_2'
        model:
          $ref: '#/components/schemas/BetaManagedAgentsModelConfigParams'
        skills:
          type: array
          items:
            $ref: '#/components/schemas/Union_27'
        system:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsSessionSystem'
            - type: 'null'
        tools:
          $ref: '#/components/schemas/Arrays_3'
      required:
        - type
        - id
      additionalProperties: false
    SessionRuntimeQualificationReceiptIntegrity:
      type: object
      properties:
        authority:
          type: string
          enum:
            - server_runtime_tuple_catalog
        catalog_entry_id:
          type: string
          allOf:
            - maxLength: 4096
            - minLength: 1
            - maxLength: 255
        catalog_revision_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        target_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        continuation_type:
          $ref: '#/components/schemas/Union_396'
        qualified_capabilities:
          $ref: '#/components/schemas/DistinctSessionRuntimeQualificationCapabilities'
        valid_from:
          $ref: '#/components/schemas/CurrentTimestamp'
        valid_until:
          $ref: '#/components/schemas/CurrentTimestamp'
        receipt_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        signature:
          $ref: '#/components/schemas/Objects_437'
      required:
        - authority
        - catalog_entry_id
        - catalog_revision_digest
        - target_digest
        - continuation_type
        - qualified_capabilities
        - valid_from
        - valid_until
        - receipt_digest
        - signature
      additionalProperties: false
    SessionHandoffDimensionDisposition:
      type: object
      properties:
        dimension:
          type: string
          enum:
            - agent_context
            - tools
            - resources
            - filesystem
        disposition:
          type: string
          enum:
            - preserved
            - degraded
            - unavailable
        source_evidence_digest:
          anyOf:
            - type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            - type: 'null'
        target_evidence_digest:
          anyOf:
            - type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            - type: 'null'
        reason:
          anyOf:
            - type: string
              allOf:
                - maxLength: 4096
            - type: 'null'
      required:
        - dimension
        - disposition
        - source_evidence_digest
        - target_evidence_digest
        - reason
      additionalProperties: false
    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.
    Arrays_2:
      type: array
      items:
        $ref: '#/components/schemas/Objects_12'
      allOf:
        - maxItems: 20
    BetaManagedAgentsModelConfigParams:
      anyOf:
        - type: string
        - type: object
          properties:
            id:
              type: string
            effort:
              anyOf:
                - anyOf:
                    - type: string
                      enum:
                        - low
                        - medium
                        - high
                        - xhigh
                        - max
                    - $ref: '#/components/schemas/Union_23'
                - 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_27:
      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
    BetaManagedAgentsSessionSystem:
      type: string
    Arrays_3:
      type: array
      items:
        $ref: '#/components/schemas/BetaManagedAgentsToolParams'
      allOf:
        - maxItems: 128
    DistinctSessionRuntimeQualificationCapabilities:
      type: array
      items:
        type: string
        enum:
          - orphan_recovery
          - checkpoint_import
          - handoff_import
      allOf:
        - minItems: 1
        - maxItems: 3
    CurrentTimestamp:
      type: string
      allOf:
        - maxLength: 24
        - pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
          description: A canonical UTC ISO-8601 timestamp with millisecond precision.
    Objects_437:
      type: object
      properties:
        algorithm:
          type: string
          enum:
            - ed25519
        key_id:
          $ref: '#/components/schemas/SessionAuthorityUnicodeScalarKeyId'
        statement_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        signature:
          type: string
          allOf:
            - pattern: ^[A-Za-z0-9+/]{86}==$
      required:
        - algorithm
        - key_id
        - statement_digest
        - signature
      additionalProperties: false
    Objects_12:
      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
    Union_23:
      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
    BetaManagedAgentsToolParams:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - agent_toolset_20260401
            configs:
              type: array
              items:
                $ref: '#/components/schemas/BetaManagedAgentsAgentToolConfigParams'
            default_config:
              anyOf:
                - $ref: '#/components/schemas/Objects_16'
                - 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/BetaManagedAgentsPermissionPolicy'
                required:
                  - name
                additionalProperties: false
            default_config:
              anyOf:
                - $ref: '#/components/schemas/Objects_16'
                - type: 'null'
          required:
            - type
            - mcp_server_name
          additionalProperties: false
        - $ref: '#/components/schemas/Objects_17'
    SessionAuthorityUnicodeScalarKeyId:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 255
    BetaManagedAgentsAgentToolConfigParams:
      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/BetaManagedAgentsPermissionPolicy'
                - 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/BetaManagedAgentsPermissionPolicy'
                - 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/BetaManagedAgentsPermissionPolicy'
                - 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/BetaManagedAgentsPermissionPolicy'
                - 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/BetaManagedAgentsPermissionPolicy'
                - 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/BetaManagedAgentsPermissionPolicy'
                - type: 'null'
            allowed_domains:
              $ref: '#/components/schemas/Arrays_4'
            blocked_domains:
              $ref: '#/components/schemas/Arrays_4'
            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/BetaManagedAgentsPermissionPolicy'
                - type: 'null'
            allowed_domains:
              $ref: '#/components/schemas/Arrays_4'
            blocked_domains:
              $ref: '#/components/schemas/Arrays_4'
            user_location:
              anyOf:
                - $ref: '#/components/schemas/Objects_15'
                - 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/BetaManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
    Objects_16:
      type: object
      properties:
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
        permission_policy:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
            - type: 'null'
      additionalProperties: false
    BetaManagedAgentsPermissionPolicy:
      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_17:
      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/BetaManagedAgentsCustomToolInputSchema'
      required:
        - type
        - name
        - description
        - input_schema
      additionalProperties: false
    Arrays_4:
      type: array
      items:
        type: string
        allOf:
          - minLength: 1
          - maxLength: 255
      allOf:
        - minItems: 1
        - maxItems: 64
    Objects_15:
      type: object
      properties:
        type:
          type: string
          enum:
            - approximate
        city:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsIsoCountryCode'
            - type: 'null'
        region:
          anyOf:
            - type: string
            - type: 'null'
        timezone:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsIanaTimeZone'
            - type: 'null'
      required:
        - type
      additionalProperties: false
    BetaManagedAgentsCustomToolInputSchema:
      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.
    BetaManagedAgentsIsoCountryCode:
      type: string
      allOf:
        - pattern: ^[A-Z]{2}$
    BetaManagedAgentsIanaTimeZone:
      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

````