{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "AbsolutePathBuf": {
      "description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
      "type": "string"
    },
    "AddCreditsNudgeCreditType": {
      "enum": [
        "credits",
        "usage_limit"
      ],
      "type": "string"
    },
    "AdditionalContextEntry": {
      "properties": {
        "kind": {
          "$ref": "#/definitions/AdditionalContextKind"
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "value"
      ],
      "type": "object"
    },
    "AdditionalContextKind": {
      "enum": [
        "untrusted",
        "application"
      ],
      "type": "string"
    },
    "AgentMessageInputContent": {
      "oneOf": [
        {
          "properties": {
            "text": {
              "type": "string"
            },
            "type": {
              "enum": [
                "input_text"
              ],
              "title": "InputTextAgentMessageInputContentType",
              "type": "string"
            }
          },
          "required": [
            "text",
            "type"
          ],
          "title": "InputTextAgentMessageInputContent",
          "type": "object"
        },
        {
          "properties": {
            "encrypted_content": {
              "type": "string"
            },
            "type": {
              "enum": [
                "encrypted_content"
              ],
              "title": "EncryptedContentAgentMessageInputContentType",
              "type": "string"
            }
          },
          "required": [
            "encrypted_content",
            "type"
          ],
          "title": "EncryptedContentAgentMessageInputContent",
          "type": "object"
        }
      ]
    },
    "ApprovalsReviewer": {
      "description": "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
      "enum": [
        "user",
        "auto_review",
        "guardian_subagent"
      ],
      "type": "string"
    },
    "AppsInstalledParams": {
      "description": "Read the committed installed connector runtime snapshot.",
      "properties": {
        "forceRefresh": {
          "description": "When true and Apps are permitted, refresh and publish the hosted connector runtime tool snapshot first.",
          "type": "boolean"
        },
        "threadId": {
          "description": "Optional loaded thread id used to evaluate effective app configuration.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "AppsListParams": {
      "description": "EXPERIMENTAL - list available apps/connectors.",
      "properties": {
        "cursor": {
          "description": "Opaque pagination cursor returned by a previous call.",
          "type": [
            "string",
            "null"
          ]
        },
        "forceRefetch": {
          "description": "When true, bypass app caches and fetch the latest data from sources.",
          "type": "boolean"
        },
        "limit": {
          "description": "Optional page size; defaults to a reasonable server-side value.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "threadId": {
          "description": "Optional thread id used to evaluate app feature gating from that thread's config.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "AppsReadParams": {
      "description": "EXPERIMENTAL - read metadata for specific apps/connectors.",
      "properties": {
        "appIds": {
          "description": "App ids to read. The server accepts at most 100 ids and deduplicates repeated ids while preserving their first-request order.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "includeTools": {
          "description": "When true, include display-only public tool summaries in the returned metadata.",
          "type": "boolean"
        },
        "threadId": {
          "description": "Optional loaded thread id used to evaluate effective app configuration.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "appIds"
      ],
      "type": "object"
    },
    "AskForApproval": {
      "oneOf": [
        {
          "enum": [
            "untrusted",
            "on-request",
            "never"
          ],
          "type": "string"
        },
        {
          "additionalProperties": false,
          "properties": {
            "granular": {
              "properties": {
                "mcp_elicitations": {
                  "type": "boolean"
                },
                "request_permissions": {
                  "default": false,
                  "type": "boolean"
                },
                "rules": {
                  "type": "boolean"
                },
                "sandbox_approval": {
                  "type": "boolean"
                },
                "skill_approval": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "mcp_elicitations",
                "rules",
                "sandbox_approval"
              ],
              "type": "object"
            }
          },
          "required": [
            "granular"
          ],
          "title": "GranularAskForApproval",
          "type": "object"
        }
      ]
    },
    "BedrockDiscoverParams": {
      "type": "object"
    },
    "BedrockSetupParams": {
      "oneOf": [
        {
          "properties": {
            "profile": {
              "type": "string"
            },
            "region": {
              "type": "string"
            },
            "type": {
              "enum": [
                "profile"
              ],
              "title": "ProfileBedrockSetupParamsType",
              "type": "string"
            }
          },
          "required": [
            "profile",
            "region",
            "type"
          ],
          "title": "ProfileBedrockSetupParams",
          "type": "object"
        },
        {
          "properties": {
            "region": {
              "type": "string"
            },
            "type": {
              "enum": [
                "environment"
              ],
              "title": "EnvironmentBedrockSetupParamsType",
              "type": "string"
            }
          },
          "required": [
            "region",
            "type"
          ],
          "title": "EnvironmentBedrockSetupParams",
          "type": "object"
        },
        {
          "properties": {
            "accessKeyId": {
              "type": "string"
            },
            "region": {
              "type": "string"
            },
            "secretAccessKey": {
              "type": "string"
            },
            "sessionToken": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "enum": [
                "accessKeys"
              ],
              "title": "AccessKeysBedrockSetupParamsType",
              "type": "string"
            }
          },
          "required": [
            "accessKeyId",
            "region",
            "secretAccessKey",
            "type"
          ],
          "title": "AccessKeysBedrockSetupParams",
          "type": "object"
        }
      ]
    },
    "ByteRange": {
      "properties": {
        "end": {
          "format": "uint",
          "minimum": 0.0,
          "type": "integer"
        },
        "start": {
          "format": "uint",
          "minimum": 0.0,
          "type": "integer"
        }
      },
      "required": [
        "end",
        "start"
      ],
      "type": "object"
    },
    "CancelLoginAccountParams": {
      "properties": {
        "loginId": {
          "type": "string"
        }
      },
      "required": [
        "loginId"
      ],
      "type": "object"
    },
    "CapabilityRootLocation": {
      "description": "Location used to resolve a selected capability root.",
      "oneOf": [
        {
          "description": "A path owned by an execution environment.",
          "properties": {
            "environmentId": {
              "type": "string"
            },
            "path": {
              "description": "Absolute path for the root in the selected environment.",
              "type": "string"
            },
            "type": {
              "enum": [
                "environment"
              ],
              "title": "EnvironmentCapabilityRootLocationType",
              "type": "string"
            }
          },
          "required": [
            "environmentId",
            "path",
            "type"
          ],
          "title": "EnvironmentCapabilityRootLocation",
          "type": "object"
        }
      ]
    },
    "ClientInfo": {
      "properties": {
        "name": {
          "type": "string"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "version"
      ],
      "type": "object"
    },
    "CodexResponseHandoffMode": {
      "enum": [
        "thinking",
        "commentary",
        "bemTags"
      ],
      "type": "string"
    },
    "CollaborationMode": {
      "description": "Collaboration mode for a Codex session.",
      "properties": {
        "mode": {
          "$ref": "#/definitions/ModeKind"
        },
        "settings": {
          "$ref": "#/definitions/Settings"
        }
      },
      "required": [
        "mode",
        "settings"
      ],
      "type": "object"
    },
    "CollaborationModeListParams": {
      "description": "EXPERIMENTAL - list collaboration mode presets.",
      "type": "object"
    },
    "CommandExecParams": {
      "description": "Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.\n\nThe final `command/exec` response is deferred until the process exits and is sent only after all `command/exec/outputDelta` notifications for that connection have been emitted.",
      "properties": {
        "command": {
          "description": "Command argv vector. Empty arrays are rejected.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "cwd": {
          "description": "Optional working directory. Defaults to the server cwd.",
          "type": [
            "string",
            "null"
          ]
        },
        "disableOutputCap": {
          "description": "Disable stdout/stderr capture truncation for this request.\n\nCannot be combined with `outputBytesCap`.",
          "type": "boolean"
        },
        "disableTimeout": {
          "description": "Disable the timeout entirely for this request.\n\nCannot be combined with `timeoutMs`.",
          "type": "boolean"
        },
        "env": {
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "Optional environment overrides merged into the server-computed environment.\n\nMatching names override inherited values. Set a key to `null` to unset an inherited variable.",
          "type": [
            "object",
            "null"
          ]
        },
        "outputBytesCap": {
          "description": "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.",
          "format": "uint",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "permissionProfile": {
          "description": "Optional active permissions profile id for this command.\n\nDefaults to the user's configured permissions when omitted. Cannot be combined with `sandboxPolicy`.",
          "type": [
            "string",
            "null"
          ]
        },
        "processId": {
          "description": "Optional client-supplied, connection-scoped process id.\n\nRequired for `tty`, `streamStdin`, `streamStdoutStderr`, and follow-up `command/exec/write`, `command/exec/resize`, and `command/exec/terminate` calls. When omitted, buffered execution gets an internal id that is not exposed to the client.",
          "type": [
            "string",
            "null"
          ]
        },
        "sandboxPolicy": {
          "anyOf": [
            {
              "$ref": "#/definitions/SandboxPolicy"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted. Cannot be combined with `permissionProfile`."
        },
        "size": {
          "anyOf": [
            {
              "$ref": "#/definitions/CommandExecTerminalSize"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional initial PTY size in character cells. Only valid when `tty` is true."
        },
        "streamStdin": {
          "description": "Allow follow-up `command/exec/write` requests to write stdin bytes.\n\nRequires a client-supplied `processId`.",
          "type": "boolean"
        },
        "streamStdoutStderr": {
          "description": "Stream stdout/stderr via `command/exec/outputDelta` notifications.\n\nStreamed bytes are not duplicated into the final response and require a client-supplied `processId`.",
          "type": "boolean"
        },
        "timeoutMs": {
          "description": "Optional timeout in milliseconds.\n\nWhen omitted, the server default applies. Cannot be combined with `disableTimeout`.",
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "tty": {
          "description": "Enable PTY mode.\n\nThis implies `streamStdin` and `streamStdoutStderr`.",
          "type": "boolean"
        }
      },
      "required": [
        "command"
      ],
      "type": "object"
    },
    "CommandExecResizeParams": {
      "description": "Resize a running PTY-backed `command/exec` session.",
      "properties": {
        "processId": {
          "description": "Client-supplied, connection-scoped `processId` from the original `command/exec` request.",
          "type": "string"
        },
        "size": {
          "allOf": [
            {
              "$ref": "#/definitions/CommandExecTerminalSize"
            }
          ],
          "description": "New PTY size in character cells."
        }
      },
      "required": [
        "processId",
        "size"
      ],
      "type": "object"
    },
    "CommandExecTerminalSize": {
      "description": "PTY size in character cells for `command/exec` PTY sessions.",
      "properties": {
        "cols": {
          "description": "Terminal width in character cells.",
          "format": "uint16",
          "minimum": 0.0,
          "type": "integer"
        },
        "rows": {
          "description": "Terminal height in character cells.",
          "format": "uint16",
          "minimum": 0.0,
          "type": "integer"
        }
      },
      "required": [
        "cols",
        "rows"
      ],
      "type": "object"
    },
    "CommandExecTerminateParams": {
      "description": "Terminate a running `command/exec` session.",
      "properties": {
        "processId": {
          "description": "Client-supplied, connection-scoped `processId` from the original `command/exec` request.",
          "type": "string"
        }
      },
      "required": [
        "processId"
      ],
      "type": "object"
    },
    "CommandExecWriteParams": {
      "description": "Write stdin bytes to a running `command/exec` session, close stdin, or both.",
      "properties": {
        "closeStdin": {
          "description": "Close stdin after writing `deltaBase64`, if present.",
          "type": "boolean"
        },
        "deltaBase64": {
          "description": "Optional base64-encoded stdin bytes to write.",
          "type": [
            "string",
            "null"
          ]
        },
        "processId": {
          "description": "Client-supplied, connection-scoped `processId` from the original `command/exec` request.",
          "type": "string"
        }
      },
      "required": [
        "processId"
      ],
      "type": "object"
    },
    "CommandMigration": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "ConfigBatchWriteParams": {
      "properties": {
        "edits": {
          "items": {
            "$ref": "#/definitions/ConfigEdit"
          },
          "type": "array"
        },
        "expectedVersion": {
          "type": [
            "string",
            "null"
          ]
        },
        "filePath": {
          "description": "Path to the config file to write; defaults to the user's `config.toml` when omitted.",
          "type": [
            "string",
            "null"
          ]
        },
        "reloadUserConfig": {
          "description": "When true, hot-reload updated runtime settings into loaded threads after writing. Session-static model, reasoning-effort, Plan-mode reasoning-effort, service-tier, and personality defaults are not reloaded.",
          "type": "boolean"
        }
      },
      "required": [
        "edits"
      ],
      "type": "object"
    },
    "ConfigEdit": {
      "properties": {
        "keyPath": {
          "type": "string"
        },
        "mergeStrategy": {
          "$ref": "#/definitions/MergeStrategy"
        },
        "value": true
      },
      "required": [
        "keyPath",
        "mergeStrategy",
        "value"
      ],
      "type": "object"
    },
    "ConfigReadParams": {
      "properties": {
        "cwd": {
          "description": "Optional working directory to resolve project config layers. If specified, return the effective config as seen from that directory (i.e., including any project layers between `cwd` and the project/repo root).",
          "type": [
            "string",
            "null"
          ]
        },
        "includeLayers": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "ConfigValueWriteParams": {
      "properties": {
        "expectedVersion": {
          "type": [
            "string",
            "null"
          ]
        },
        "filePath": {
          "description": "Path to the config file to write; defaults to the user's `config.toml` when omitted.",
          "type": [
            "string",
            "null"
          ]
        },
        "keyPath": {
          "type": "string"
        },
        "mergeStrategy": {
          "$ref": "#/definitions/MergeStrategy"
        },
        "value": true
      },
      "required": [
        "keyPath",
        "mergeStrategy",
        "value"
      ],
      "type": "object"
    },
    "ConsumeAccountRateLimitResetCreditParams": {
      "properties": {
        "creditId": {
          "description": "Opaque reset-credit identifier to redeem. When omitted, the backend selects the next available credit.",
          "type": [
            "string",
            "null"
          ]
        },
        "idempotencyKey": {
          "description": "Identifies one logical reset attempt. A UUID is recommended; reuse the same value when retrying that attempt.",
          "type": "string"
        }
      },
      "required": [
        "idempotencyKey"
      ],
      "type": "object"
    },
    "ContentItem": {
      "oneOf": [
        {
          "properties": {
            "text": {
              "type": "string"
            },
            "type": {
              "enum": [
                "input_text"
              ],
              "title": "InputTextContentItemType",
              "type": "string"
            }
          },
          "required": [
            "text",
            "type"
          ],
          "title": "InputTextContentItem",
          "type": "object"
        },
        {
          "properties": {
            "detail": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ImageDetail"
                },
                {
                  "type": "null"
                }
              ]
            },
            "image_url": {
              "type": "string"
            },
            "type": {
              "enum": [
                "input_image"
              ],
              "title": "InputImageContentItemType",
              "type": "string"
            }
          },
          "required": [
            "image_url",
            "type"
          ],
          "title": "InputImageContentItem",
          "type": "object"
        },
        {
          "properties": {
            "audio_url": {
              "type": "string"
            },
            "type": {
              "enum": [
                "input_audio"
              ],
              "title": "InputAudioContentItemType",
              "type": "string"
            }
          },
          "required": [
            "audio_url",
            "type"
          ],
          "title": "InputAudioContentItem",
          "type": "object"
        },
        {
          "properties": {
            "text": {
              "type": "string"
            },
            "type": {
              "enum": [
                "output_text"
              ],
              "title": "OutputTextContentItemType",
              "type": "string"
            }
          },
          "required": [
            "text",
            "type"
          ],
          "title": "OutputTextContentItem",
          "type": "object"
        }
      ]
    },
    "ConversationTextRole": {
      "enum": [
        "user",
        "developer",
        "assistant"
      ],
      "type": "string"
    },
    "DynamicToolNamespaceTool": {
      "oneOf": [
        {
          "properties": {
            "deferLoading": {
              "type": "boolean"
            },
            "description": {
              "type": "string"
            },
            "inputSchema": true,
            "name": {
              "type": "string"
            },
            "type": {
              "enum": [
                "function"
              ],
              "title": "FunctionDynamicToolNamespaceToolType",
              "type": "string"
            }
          },
          "required": [
            "description",
            "inputSchema",
            "name",
            "type"
          ],
          "title": "FunctionDynamicToolNamespaceTool",
          "type": "object"
        }
      ]
    },
    "DynamicToolSpec": {
      "oneOf": [
        {
          "properties": {
            "deferLoading": {
              "type": "boolean"
            },
            "description": {
              "type": "string"
            },
            "inputSchema": true,
            "name": {
              "type": "string"
            },
            "type": {
              "enum": [
                "function"
              ],
              "title": "FunctionDynamicToolSpecType",
              "type": "string"
            }
          },
          "required": [
            "description",
            "inputSchema",
            "name",
            "type"
          ],
          "title": "FunctionDynamicToolSpec",
          "type": "object"
        },
        {
          "properties": {
            "description": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "tools": {
              "items": {
                "$ref": "#/definitions/DynamicToolNamespaceTool"
              },
              "type": "array"
            },
            "type": {
              "enum": [
                "namespace"
              ],
              "title": "NamespaceDynamicToolSpecType",
              "type": "string"
            }
          },
          "required": [
            "description",
            "name",
            "tools",
            "type"
          ],
          "title": "NamespaceDynamicToolSpec",
          "type": "object"
        }
      ]
    },
    "EnvironmentAddParams": {
      "properties": {
        "connectTimeoutMs": {
          "description": "Optional WebSocket connection timeout. The server default applies when omitted.",
          "format": "uint64",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "environmentId": {
          "type": "string"
        },
        "execServerUrl": {
          "type": "string"
        }
      },
      "required": [
        "environmentId",
        "execServerUrl"
      ],
      "type": "object"
    },
    "EnvironmentInfoParams": {
      "properties": {
        "environmentId": {
          "type": "string"
        }
      },
      "required": [
        "environmentId"
      ],
      "type": "object"
    },
    "EnvironmentStatusParams": {
      "description": "Parameters for reading the current status of one configured environment.",
      "properties": {
        "environmentId": {
          "description": "Environment id to inspect.",
          "type": "string"
        }
      },
      "required": [
        "environmentId"
      ],
      "type": "object"
    },
    "ExperimentalFeatureEnablementSetParams": {
      "properties": {
        "enablement": {
          "additionalProperties": {
            "type": "boolean"
          },
          "description": "Process-wide runtime feature enablement keyed by canonical feature name.\n\nOnly named features are updated. Omitted features are left unchanged. Send an empty map for a no-op.",
          "type": "object"
        }
      },
      "required": [
        "enablement"
      ],
      "type": "object"
    },
    "ExperimentalFeatureListParams": {
      "properties": {
        "cursor": {
          "description": "Opaque pagination cursor returned by a previous call.",
          "type": [
            "string",
            "null"
          ]
        },
        "limit": {
          "description": "Optional page size; defaults to a reasonable server-side value.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "threadId": {
          "description": "Optional loaded thread id. Pass this when showing feature state for an existing thread so enablement is computed from that thread's refreshed config, including project-local config for the thread's cwd.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ExternalAgentConfigDetectParams": {
      "properties": {
        "cwds": {
          "description": "Zero or more working directories to include for repo-scoped detection.",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "includeHome": {
          "description": "If true, include detection under the user's home directory.",
          "type": "boolean"
        },
        "maxSessionAgeDays": {
          "description": "Maximum age in days for detected sessions. Missing values use the default limit.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "maxSessions": {
          "description": "Maximum number of sessions to detect. Missing values use the default limit.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "migrationSource": {
          "description": "Optional migration-source selector. Missing or unrecognized values use the default source.",
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "description": "Deprecated field retained for compatibility. This field is ignored; use `migrationSource` to select the migration source.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ExternalAgentConfigImportHistoryRecordParams": {
      "properties": {
        "itemTypeResults": {
          "description": "Completed results grouped by imported item type.",
          "items": {
            "$ref": "#/definitions/ExternalAgentConfigImportHistoryRecordTypeResultParams"
          },
          "type": "array"
        },
        "providerId": {
          "description": "Opaque provider identifier for the externally completed import.",
          "type": "string"
        }
      },
      "required": [
        "itemTypeResults",
        "providerId"
      ],
      "type": "object"
    },
    "ExternalAgentConfigImportHistoryRecordSuccessParams": {
      "properties": {
        "cwd": {
          "type": [
            "string",
            "null"
          ]
        },
        "itemType": {
          "$ref": "#/definitions/ExternalAgentConfigMigrationItemType"
        },
        "source": {
          "type": [
            "string",
            "null"
          ]
        },
        "target": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "default": null,
          "description": "Original title for an imported session, when available.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "itemType"
      ],
      "type": "object"
    },
    "ExternalAgentConfigImportHistoryRecordTypeResultParams": {
      "properties": {
        "failures": {
          "items": {
            "$ref": "#/definitions/ExternalAgentConfigImportItemTypeFailure"
          },
          "type": "array"
        },
        "itemType": {
          "$ref": "#/definitions/ExternalAgentConfigMigrationItemType"
        },
        "successes": {
          "items": {
            "$ref": "#/definitions/ExternalAgentConfigImportHistoryRecordSuccessParams"
          },
          "type": "array"
        }
      },
      "required": [
        "failures",
        "itemType",
        "successes"
      ],
      "type": "object"
    },
    "ExternalAgentConfigImportItemTypeFailure": {
      "properties": {
        "cwd": {
          "type": [
            "string",
            "null"
          ]
        },
        "errorType": {
          "type": [
            "string",
            "null"
          ]
        },
        "failureStage": {
          "type": "string"
        },
        "itemType": {
          "$ref": "#/definitions/ExternalAgentConfigMigrationItemType"
        },
        "message": {
          "type": "string"
        },
        "source": {
          "type": [
            "string",
            "null"
          ]
        },
        "subErrorType": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "failureStage",
        "itemType",
        "message"
      ],
      "type": "object"
    },
    "ExternalAgentConfigImportParams": {
      "properties": {
        "migrationItems": {
          "items": {
            "$ref": "#/definitions/ExternalAgentConfigMigrationItem"
          },
          "type": "array"
        },
        "migrationSource": {
          "description": "Migration-source selector used to produce the migration items. Pass the same value to detection and import; missing or unrecognized values use the default source.",
          "type": [
            "string",
            "null"
          ]
        },
        "providerId": {
          "description": "Opaque provider identifier supplied by the caller for analytics attribution and import history display. This does not select the migration source.",
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "description": "Optional identifier for the product that initiated the import.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "migrationItems"
      ],
      "type": "object"
    },
    "ExternalAgentConfigMigrationItem": {
      "properties": {
        "cwd": {
          "description": "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": "string"
        },
        "details": {
          "anyOf": [
            {
              "$ref": "#/definitions/MigrationDetails"
            },
            {
              "type": "null"
            }
          ]
        },
        "itemType": {
          "$ref": "#/definitions/ExternalAgentConfigMigrationItemType"
        }
      },
      "required": [
        "description",
        "itemType"
      ],
      "type": "object"
    },
    "ExternalAgentConfigMigrationItemType": {
      "enum": [
        "AGENTS_MD",
        "CONFIG",
        "SKILLS",
        "PLUGINS",
        "MCP_SERVER_CONFIG",
        "SUBAGENTS",
        "HOOKS",
        "COMMANDS",
        "MEMORY",
        "SESSIONS"
      ],
      "type": "string"
    },
    "FeedbackUploadParams": {
      "properties": {
        "classification": {
          "type": "string"
        },
        "extraLogFiles": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "includeLogs": {
          "type": "boolean"
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "tags": {
          "additionalProperties": {
            "type": "string"
          },
          "type": [
            "object",
            "null"
          ]
        },
        "threadId": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "classification"
      ],
      "type": "object"
    },
    "FsCopyParams": {
      "description": "Copy a file or directory tree on the host filesystem.",
      "properties": {
        "destinationPath": {
          "allOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            }
          ],
          "description": "Absolute destination path."
        },
        "recursive": {
          "description": "Required for directory copies; ignored for file copies.",
          "type": "boolean"
        },
        "sourcePath": {
          "allOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            }
          ],
          "description": "Absolute source path."
        }
      },
      "required": [
        "destinationPath",
        "sourcePath"
      ],
      "type": "object"
    },
    "FsCreateDirectoryParams": {
      "description": "Create a directory on the host filesystem.",
      "properties": {
        "path": {
          "allOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            }
          ],
          "description": "Absolute directory path to create."
        },
        "recursive": {
          "description": "Whether parent directories should also be created. Defaults to `true`.",
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    },
    "FsGetMetadataParams": {
      "description": "Request metadata for an absolute path.",
      "properties": {
        "path": {
          "allOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            }
          ],
          "description": "Absolute path to inspect."
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    },
    "FsReadDirectoryParams": {
      "description": "List direct child names for a directory.",
      "properties": {
        "path": {
          "allOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            }
          ],
          "description": "Absolute directory path to read."
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    },
    "FsReadFileParams": {
      "description": "Read a file from the host filesystem.",
      "properties": {
        "path": {
          "allOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            }
          ],
          "description": "Absolute path to read."
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    },
    "FsRemoveParams": {
      "description": "Remove a file or directory tree from the host filesystem.",
      "properties": {
        "force": {
          "description": "Whether missing paths should be ignored. Defaults to `true`.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "path": {
          "allOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            }
          ],
          "description": "Absolute path to remove."
        },
        "recursive": {
          "description": "Whether directory removal should recurse. Defaults to `true`.",
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    },
    "FsUnwatchParams": {
      "description": "Stop filesystem watch notifications for a prior `fs/watch`.",
      "properties": {
        "watchId": {
          "description": "Watch identifier previously provided to `fs/watch`.",
          "type": "string"
        }
      },
      "required": [
        "watchId"
      ],
      "type": "object"
    },
    "FsWatchParams": {
      "description": "Start filesystem watch notifications for an absolute path.",
      "properties": {
        "path": {
          "allOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            }
          ],
          "description": "Absolute file or directory path to watch."
        },
        "watchId": {
          "description": "Connection-scoped watch identifier used for `fs/unwatch` and `fs/changed`.",
          "type": "string"
        }
      },
      "required": [
        "path",
        "watchId"
      ],
      "type": "object"
    },
    "FsWriteFileParams": {
      "description": "Write a file on the host filesystem.",
      "properties": {
        "dataBase64": {
          "description": "File contents encoded as base64.",
          "type": "string"
        },
        "path": {
          "allOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            }
          ],
          "description": "Absolute path to write."
        }
      },
      "required": [
        "dataBase64",
        "path"
      ],
      "type": "object"
    },
    "FunctionCallOutputBody": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "$ref": "#/definitions/FunctionCallOutputContentItem"
          },
          "type": "array"
        }
      ]
    },
    "FunctionCallOutputContentItem": {
      "description": "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",
      "oneOf": [
        {
          "properties": {
            "text": {
              "type": "string"
            },
            "type": {
              "enum": [
                "input_text"
              ],
              "title": "InputTextFunctionCallOutputContentItemType",
              "type": "string"
            }
          },
          "required": [
            "text",
            "type"
          ],
          "title": "InputTextFunctionCallOutputContentItem",
          "type": "object"
        },
        {
          "properties": {
            "detail": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ImageDetail"
                },
                {
                  "type": "null"
                }
              ]
            },
            "image_url": {
              "type": "string"
            },
            "type": {
              "enum": [
                "input_image"
              ],
              "title": "InputImageFunctionCallOutputContentItemType",
              "type": "string"
            }
          },
          "required": [
            "image_url",
            "type"
          ],
          "title": "InputImageFunctionCallOutputContentItem",
          "type": "object"
        },
        {
          "properties": {
            "audio_url": {
              "type": "string"
            },
            "type": {
              "enum": [
                "input_audio"
              ],
              "title": "InputAudioFunctionCallOutputContentItemType",
              "type": "string"
            }
          },
          "required": [
            "audio_url",
            "type"
          ],
          "title": "InputAudioFunctionCallOutputContentItem",
          "type": "object"
        },
        {
          "properties": {
            "encrypted_content": {
              "type": "string"
            },
            "type": {
              "enum": [
                "encrypted_content"
              ],
              "title": "EncryptedContentFunctionCallOutputContentItemType",
              "type": "string"
            }
          },
          "required": [
            "encrypted_content",
            "type"
          ],
          "title": "EncryptedContentFunctionCallOutputContentItem",
          "type": "object"
        }
      ]
    },
    "FuzzyFileSearchParams": {
      "properties": {
        "cancellationToken": {
          "type": [
            "string",
            "null"
          ]
        },
        "query": {
          "type": "string"
        },
        "roots": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "query",
        "roots"
      ],
      "type": "object"
    },
    "FuzzyFileSearchSessionStartParams": {
      "properties": {
        "roots": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "sessionId": {
          "type": "string"
        }
      },
      "required": [
        "roots",
        "sessionId"
      ],
      "type": "object"
    },
    "FuzzyFileSearchSessionStopParams": {
      "properties": {
        "sessionId": {
          "type": "string"
        }
      },
      "required": [
        "sessionId"
      ],
      "type": "object"
    },
    "FuzzyFileSearchSessionUpdateParams": {
      "properties": {
        "query": {
          "type": "string"
        },
        "sessionId": {
          "type": "string"
        }
      },
      "required": [
        "query",
        "sessionId"
      ],
      "type": "object"
    },
    "GetAccountParams": {
      "properties": {
        "refreshToken": {
          "description": "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "GetAccountTokenUsageParams": {
      "properties": {
        "threadId": {
          "description": "When present, read estimated usage for this thread instead of account-wide token activity.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "HookMigration": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "HooksListParams": {
      "properties": {
        "cwds": {
          "description": "When empty, defaults to the current session working directory.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "ImageDetail": {
      "enum": [
        "auto",
        "low",
        "high",
        "original"
      ],
      "type": "string"
    },
    "InitializeCapabilities": {
      "description": "Client-declared capabilities negotiated during initialize.",
      "properties": {
        "experimentalApi": {
          "default": false,
          "description": "Opt into receiving experimental API methods and fields.",
          "type": "boolean"
        },
        "extensions": {
          "additionalProperties": true,
          "description": "MCP extension settings declared by the app-server client.",
          "type": [
            "object",
            "null"
          ]
        },
        "mcpServerOpenaiFormElicitation": {
          "description": "Legacy opt-in for the `openai/form` MCP extension.\n\nNew clients should declare `openai/form` in [`Self::extensions`].",
          "type": "boolean"
        },
        "optOutNotificationMethods": {
          "description": "Exact notification method names that should be suppressed for this connection (for example `thread/started`).",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "requestAttestation": {
          "default": false,
          "description": "Opt into `attestation/generate` requests for upstream `x-oai-attestation`.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "InitializeParams": {
      "properties": {
        "capabilities": {
          "anyOf": [
            {
              "$ref": "#/definitions/InitializeCapabilities"
            },
            {
              "type": "null"
            }
          ]
        },
        "clientInfo": {
          "$ref": "#/definitions/ClientInfo"
        }
      },
      "required": [
        "clientInfo"
      ],
      "type": "object"
    },
    "InternalChatMessageMetadataPassthrough": {
      "description": "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.",
      "properties": {
        "turn_id": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "LegacyAppPathString": {
      "type": "string"
    },
    "ListMcpServerStatusParams": {
      "properties": {
        "cursor": {
          "description": "Opaque pagination cursor returned by a previous call.",
          "type": [
            "string",
            "null"
          ]
        },
        "detail": {
          "anyOf": [
            {
              "$ref": "#/definitions/McpServerStatusDetail"
            },
            {
              "type": "null"
            }
          ],
          "description": "Controls how much MCP inventory data to fetch for each server. Defaults to `Full` when omitted."
        },
        "limit": {
          "description": "Optional page size; defaults to a server-defined value.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "threadId": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "LocalShellAction": {
      "oneOf": [
        {
          "properties": {
            "command": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "env": {
              "additionalProperties": {
                "type": "string"
              },
              "type": [
                "object",
                "null"
              ]
            },
            "timeout_ms": {
              "format": "uint64",
              "minimum": 0.0,
              "type": [
                "integer",
                "null"
              ]
            },
            "type": {
              "enum": [
                "exec"
              ],
              "title": "ExecLocalShellActionType",
              "type": "string"
            },
            "user": {
              "type": [
                "string",
                "null"
              ]
            },
            "working_directory": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "command",
            "type"
          ],
          "title": "ExecLocalShellAction",
          "type": "object"
        }
      ]
    },
    "LocalShellStatus": {
      "enum": [
        "completed",
        "in_progress",
        "incomplete"
      ],
      "type": "string"
    },
    "LoginAccountParams": {
      "oneOf": [
        {
          "properties": {
            "apiKey": {
              "type": "string"
            },
            "type": {
              "enum": [
                "apiKey"
              ],
              "title": "ApiKeyLoginAccountParamsType",
              "type": "string"
            }
          },
          "required": [
            "apiKey",
            "type"
          ],
          "title": "ApiKeyLoginAccountParams",
          "type": "object"
        },
        {
          "properties": {
            "appBrand": {
              "anyOf": [
                {
                  "$ref": "#/definitions/LoginAppBrand"
                },
                {
                  "type": "null"
                }
              ],
              "default": null
            },
            "codexStreamlinedLogin": {
              "type": "boolean"
            },
            "type": {
              "enum": [
                "chatgpt"
              ],
              "title": "ChatgptLoginAccountParamsType",
              "type": "string"
            },
            "useHostedLoginSuccessPage": {
              "type": "boolean"
            }
          },
          "required": [
            "type"
          ],
          "title": "ChatgptLoginAccountParams",
          "type": "object"
        },
        {
          "properties": {
            "type": {
              "enum": [
                "chatgptDeviceCode"
              ],
              "title": "ChatgptDeviceCodeLoginAccountParamsType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "ChatgptDeviceCodeLoginAccountParams",
          "type": "object"
        },
        {
          "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.",
          "properties": {
            "accessToken": {
              "description": "Access token (JWT) supplied by the client. This token is used for backend API requests and email extraction.",
              "type": "string"
            },
            "chatgptAccountId": {
              "description": "Workspace/account identifier supplied by the client.",
              "type": "string"
            },
            "chatgptPlanType": {
              "description": "Optional plan type supplied by the client.\n\nWhen `null`, Codex attempts to derive the plan type from access-token claims. If unavailable, the plan defaults to `unknown`.",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "enum": [
                "chatgptAuthTokens"
              ],
              "title": "ChatgptAuthTokensLoginAccountParamsType",
              "type": "string"
            }
          },
          "required": [
            "accessToken",
            "chatgptAccountId",
            "type"
          ],
          "title": "ChatgptAuthTokensLoginAccountParams",
          "type": "object"
        },
        {
          "description": "[UNSTABLE] Managed Amazon Bedrock login is experimental.",
          "properties": {
            "apiKey": {
              "type": "string"
            },
            "region": {
              "type": "string"
            },
            "type": {
              "enum": [
                "amazonBedrock"
              ],
              "title": "AmazonBedrockLoginAccountParamsType",
              "type": "string"
            }
          },
          "required": [
            "apiKey",
            "region",
            "type"
          ],
          "title": "AmazonBedrockLoginAccountParams",
          "type": "object"
        }
      ]
    },
    "LoginAppBrand": {
      "enum": [
        "codex",
        "chatgpt"
      ],
      "type": "string"
    },
    "MarketplaceAddParams": {
      "properties": {
        "refName": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "type": "string"
        },
        "sparsePaths": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "source"
      ],
      "type": "object"
    },
    "MarketplaceRemoveParams": {
      "properties": {
        "marketplaceName": {
          "type": "string"
        }
      },
      "required": [
        "marketplaceName"
      ],
      "type": "object"
    },
    "MarketplaceUpgradeParams": {
      "properties": {
        "marketplaceName": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "McpResourceReadParams": {
      "properties": {
        "connectorId": {
          "type": [
            "string",
            "null"
          ]
        },
        "originCallId": {
          "description": "Originating MCP tool call used to select the resource's app.",
          "type": [
            "string",
            "null"
          ]
        },
        "server": {
          "type": "string"
        },
        "threadId": {
          "type": [
            "string",
            "null"
          ]
        },
        "uri": {
          "type": "string"
        }
      },
      "required": [
        "server",
        "uri"
      ],
      "type": "object"
    },
    "McpServerEventStreamStartParams": {
      "properties": {
        "_meta": true,
        "arguments": true,
        "name": {
          "type": "string"
        },
        "server": {
          "type": "string"
        },
        "subscriptionId": {
          "type": "string"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "arguments",
        "name",
        "server",
        "subscriptionId",
        "threadId"
      ],
      "type": "object"
    },
    "McpServerEventStreamStopParams": {
      "properties": {
        "subscriptionId": {
          "type": "string"
        }
      },
      "required": [
        "subscriptionId"
      ],
      "type": "object"
    },
    "McpServerMigration": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "McpServerOauthClientRegistration": {
      "enum": [
        "auto",
        "cimd",
        "dcr"
      ],
      "type": "string"
    },
    "McpServerOauthLoginParams": {
      "properties": {
        "clientRegistration": {
          "anyOf": [
            {
              "$ref": "#/definitions/McpServerOauthClientRegistration"
            },
            {
              "type": "null"
            }
          ],
          "description": "Registration strategy for this login only; omission selects automatic discovery."
        },
        "name": {
          "type": "string"
        },
        "scopes": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "threadId": {
          "type": [
            "string",
            "null"
          ]
        },
        "timeoutSecs": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "McpServerStatusDetail": {
      "enum": [
        "full",
        "toolsAndAuthOnly"
      ],
      "type": "string"
    },
    "McpServerToolCallParams": {
      "properties": {
        "_meta": true,
        "arguments": true,
        "server": {
          "type": "string"
        },
        "threadId": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      },
      "required": [
        "server",
        "threadId",
        "tool"
      ],
      "type": "object"
    },
    "MergeStrategy": {
      "enum": [
        "replace",
        "upsert"
      ],
      "type": "string"
    },
    "MessagePhase": {
      "description": "Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as \"phase unknown\" and keep compatibility behavior for legacy models.",
      "oneOf": [
        {
          "description": "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",
          "enum": [
            "commentary"
          ],
          "type": "string"
        },
        {
          "description": "The assistant's terminal answer text for the current turn.",
          "enum": [
            "final_answer"
          ],
          "type": "string"
        }
      ]
    },
    "MigrationDetails": {
      "properties": {
        "commands": {
          "default": [],
          "items": {
            "$ref": "#/definitions/CommandMigration"
          },
          "type": "array"
        },
        "hooks": {
          "default": [],
          "items": {
            "$ref": "#/definitions/HookMigration"
          },
          "type": "array"
        },
        "mcpServers": {
          "default": [],
          "items": {
            "$ref": "#/definitions/McpServerMigration"
          },
          "type": "array"
        },
        "memory": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "plugins": {
          "default": [],
          "items": {
            "$ref": "#/definitions/PluginsMigration"
          },
          "type": "array"
        },
        "sessions": {
          "default": [],
          "items": {
            "$ref": "#/definitions/SessionMigration"
          },
          "type": "array"
        },
        "skills": {
          "default": [],
          "items": {
            "$ref": "#/definitions/SkillMigration"
          },
          "type": "array"
        },
        "subagents": {
          "default": [],
          "items": {
            "$ref": "#/definitions/SubagentMigration"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "MockExperimentalMethodParams": {
      "properties": {
        "value": {
          "description": "Test-only payload field.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ModeKind": {
      "description": "Initial collaboration mode to use when the TUI starts.",
      "enum": [
        "plan",
        "default"
      ],
      "type": "string"
    },
    "ModelListParams": {
      "properties": {
        "cursor": {
          "description": "Opaque pagination cursor returned by a previous call.",
          "type": [
            "string",
            "null"
          ]
        },
        "includeHidden": {
          "description": "When true, include models that are hidden from the default picker list.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "limit": {
          "description": "Optional page size; defaults to a reasonable server-side value.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ModelProviderCapabilitiesReadParams": {
      "type": "object"
    },
    "MultiAgentMode": {
      "description": "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
      "oneOf": [
        {
          "enum": [
            "explicitRequestOnly",
            "proactive"
          ],
          "type": "string"
        },
        {
          "additionalProperties": false,
          "properties": {
            "custom": {
              "type": "string"
            }
          },
          "required": [
            "custom"
          ],
          "title": "CustomMultiAgentMode",
          "type": "object"
        }
      ]
    },
    "NetworkAccess": {
      "enum": [
        "restricted",
        "enabled"
      ],
      "type": "string"
    },
    "PermissionProfileListParams": {
      "properties": {
        "cursor": {
          "description": "Opaque pagination cursor returned by a previous call.",
          "type": [
            "string",
            "null"
          ]
        },
        "cwd": {
          "description": "Optional working directory to resolve project config layers.",
          "type": [
            "string",
            "null"
          ]
        },
        "limit": {
          "description": "Optional page size; defaults to the full result set.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "Personality": {
      "enum": [
        "none",
        "friendly",
        "pragmatic"
      ],
      "type": "string"
    },
    "PluginInstallParams": {
      "properties": {
        "installAttemptId": {
          "description": "Client-generated identifier used to correlate one installation attempt.",
          "type": [
            "string",
            "null"
          ]
        },
        "marketplacePath": {
          "anyOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            },
            {
              "type": "null"
            }
          ]
        },
        "pluginName": {
          "type": "string"
        },
        "remoteMarketplaceName": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "pluginName"
      ],
      "type": "object"
    },
    "PluginInstalledParams": {
      "properties": {
        "cwds": {
          "description": "Optional working directories used to discover repo marketplaces.",
          "items": {
            "$ref": "#/definitions/AbsolutePathBuf"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "installSuggestionPluginNames": {
          "description": "Additional uninstalled plugin names that should be returned when present locally. This is used by mention surfaces that intentionally expose install entrypoints.",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "PluginListMarketplaceKind": {
      "enum": [
        "local",
        "vertical",
        "workspace-directory",
        "shared-with-me",
        "created-by-me-remote"
      ],
      "type": "string"
    },
    "PluginListParams": {
      "properties": {
        "cwds": {
          "description": "Optional working directories used to discover repo marketplaces. When omitted, only home-scoped marketplaces and the official curated marketplace are considered.",
          "items": {
            "$ref": "#/definitions/AbsolutePathBuf"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "forceRefetch": {
          "description": "Whether the client requests a fresh remote plugin catalog fetch.",
          "type": "boolean"
        },
        "marketplaceKinds": {
          "description": "Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus the default remote catalog when enabled by feature flag.",
          "items": {
            "$ref": "#/definitions/PluginListMarketplaceKind"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "PluginReadParams": {
      "properties": {
        "marketplacePath": {
          "anyOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            },
            {
              "type": "null"
            }
          ]
        },
        "pluginName": {
          "type": "string"
        },
        "remoteMarketplaceName": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "pluginName"
      ],
      "type": "object"
    },
    "PluginSearchParams": {
      "properties": {
        "cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "cwds": {
          "items": {
            "$ref": "#/definitions/AbsolutePathBuf"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "limit": {
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "scope": {
          "anyOf": [
            {
              "$ref": "#/definitions/PluginSearchScope"
            },
            {
              "type": "null"
            }
          ]
        },
        "searchTerm": {
          "type": "string"
        }
      },
      "required": [
        "searchTerm"
      ],
      "type": "object"
    },
    "PluginSearchScope": {
      "enum": [
        "global",
        "workspace",
        "personal"
      ],
      "type": "string"
    },
    "PluginShareCheckoutParams": {
      "properties": {
        "remotePluginId": {
          "type": "string"
        }
      },
      "required": [
        "remotePluginId"
      ],
      "type": "object"
    },
    "PluginShareDeleteParams": {
      "properties": {
        "remotePluginId": {
          "type": "string"
        }
      },
      "required": [
        "remotePluginId"
      ],
      "type": "object"
    },
    "PluginShareDiscoverability": {
      "enum": [
        "LISTED",
        "UNLISTED",
        "PRIVATE"
      ],
      "type": "string"
    },
    "PluginShareListParams": {
      "type": "object"
    },
    "PluginSharePrincipalType": {
      "enum": [
        "user",
        "group",
        "workspace"
      ],
      "type": "string"
    },
    "PluginShareSaveParams": {
      "properties": {
        "discoverability": {
          "anyOf": [
            {
              "$ref": "#/definitions/PluginShareDiscoverability"
            },
            {
              "type": "null"
            }
          ]
        },
        "pluginPath": {
          "$ref": "#/definitions/AbsolutePathBuf"
        },
        "remotePluginId": {
          "type": [
            "string",
            "null"
          ]
        },
        "shareTargets": {
          "items": {
            "$ref": "#/definitions/PluginShareTarget"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "pluginPath"
      ],
      "type": "object"
    },
    "PluginShareTarget": {
      "properties": {
        "principalId": {
          "type": "string"
        },
        "principalType": {
          "$ref": "#/definitions/PluginSharePrincipalType"
        },
        "role": {
          "$ref": "#/definitions/PluginShareTargetRole"
        }
      },
      "required": [
        "principalId",
        "principalType",
        "role"
      ],
      "type": "object"
    },
    "PluginShareTargetRole": {
      "enum": [
        "reader",
        "editor"
      ],
      "type": "string"
    },
    "PluginShareUpdateDiscoverability": {
      "enum": [
        "UNLISTED",
        "PRIVATE",
        "LISTED"
      ],
      "type": "string"
    },
    "PluginShareUpdateTargetsParams": {
      "properties": {
        "discoverability": {
          "$ref": "#/definitions/PluginShareUpdateDiscoverability"
        },
        "remotePluginId": {
          "type": "string"
        },
        "shareTargets": {
          "items": {
            "$ref": "#/definitions/PluginShareTarget"
          },
          "type": "array"
        }
      },
      "required": [
        "discoverability",
        "remotePluginId",
        "shareTargets"
      ],
      "type": "object"
    },
    "PluginSkillReadParams": {
      "properties": {
        "remoteMarketplaceName": {
          "type": "string"
        },
        "remotePluginId": {
          "type": "string"
        },
        "skillName": {
          "type": "string"
        }
      },
      "required": [
        "remoteMarketplaceName",
        "remotePluginId",
        "skillName"
      ],
      "type": "object"
    },
    "PluginUninstallParams": {
      "properties": {
        "pluginId": {
          "type": "string"
        }
      },
      "required": [
        "pluginId"
      ],
      "type": "object"
    },
    "PluginsMigration": {
      "properties": {
        "marketplaceName": {
          "type": "string"
        },
        "pluginNames": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "marketplaceName",
        "pluginNames"
      ],
      "type": "object"
    },
    "ProcessKillParams": {
      "description": "Terminate a running `process/spawn` session.",
      "properties": {
        "processHandle": {
          "description": "Client-supplied, connection-scoped `processHandle` from `process/spawn`.",
          "type": "string"
        }
      },
      "required": [
        "processHandle"
      ],
      "type": "object"
    },
    "ProcessResizePtyParams": {
      "description": "Resize a running PTY-backed `process/spawn` session.",
      "properties": {
        "processHandle": {
          "description": "Client-supplied, connection-scoped `processHandle` from `process/spawn`.",
          "type": "string"
        },
        "size": {
          "allOf": [
            {
              "$ref": "#/definitions/ProcessTerminalSize"
            }
          ],
          "description": "New PTY size in character cells."
        }
      },
      "required": [
        "processHandle",
        "size"
      ],
      "type": "object"
    },
    "ProcessSpawnParams": {
      "description": "Spawn a standalone process (argv vector) without a Codex sandbox on the host where the app server is running.\n\n`process/spawn` returns after the process has started and the connection-scoped `processHandle` has been registered. Process output and exit are reported via `process/outputDelta` and `process/exited` notifications.",
      "properties": {
        "command": {
          "description": "Command argv vector. Empty arrays are rejected.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "cwd": {
          "allOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            }
          ],
          "description": "Absolute working directory for the process."
        },
        "env": {
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "Optional environment overrides merged into the app-server process environment.\n\nMatching names override inherited values. Set a key to `null` to unset an inherited variable.",
          "type": [
            "object",
            "null"
          ]
        },
        "outputBytesCap": {
          "description": "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Set to `null` to disable the cap.",
          "format": "uint",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "processHandle": {
          "description": "Client-supplied, connection-scoped process handle.\n\nDuplicate active handles are rejected on the same connection. The same handle can be reused after the prior process exits.",
          "type": "string"
        },
        "size": {
          "anyOf": [
            {
              "$ref": "#/definitions/ProcessTerminalSize"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional initial PTY size in character cells. Only valid when `tty` is true."
        },
        "streamStdin": {
          "description": "Allow follow-up `process/writeStdin` requests to write stdin bytes.",
          "type": "boolean"
        },
        "streamStdoutStderr": {
          "description": "Stream stdout/stderr via `process/outputDelta` notifications.\n\nStreamed bytes are not duplicated into the `process/exited` notification.",
          "type": "boolean"
        },
        "timeoutMs": {
          "description": "Optional timeout in milliseconds.\n\nWhen omitted, the server default applies. Set to `null` to disable the timeout.",
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "tty": {
          "description": "Enable PTY mode.\n\nThis implies `streamStdin` and `streamStdoutStderr`.",
          "type": "boolean"
        }
      },
      "required": [
        "command",
        "cwd",
        "processHandle"
      ],
      "type": "object"
    },
    "ProcessTerminalSize": {
      "description": "PTY size in character cells for `process/spawn` PTY sessions.",
      "properties": {
        "cols": {
          "description": "Terminal width in character cells.",
          "format": "uint16",
          "minimum": 0.0,
          "type": "integer"
        },
        "rows": {
          "description": "Terminal height in character cells.",
          "format": "uint16",
          "minimum": 0.0,
          "type": "integer"
        }
      },
      "required": [
        "cols",
        "rows"
      ],
      "type": "object"
    },
    "ProcessWriteStdinParams": {
      "description": "Write stdin bytes to a running `process/spawn` session, close stdin, or both.",
      "properties": {
        "closeStdin": {
          "description": "Close stdin after writing `deltaBase64`, if present.",
          "type": "boolean"
        },
        "deltaBase64": {
          "description": "Optional base64-encoded stdin bytes to write.",
          "type": [
            "string",
            "null"
          ]
        },
        "processHandle": {
          "description": "Client-supplied, connection-scoped `processHandle` from `process/spawn`.",
          "type": "string"
        }
      },
      "required": [
        "processHandle"
      ],
      "type": "object"
    },
    "ProjectCreateParams": {
      "properties": {
        "idempotencyKey": {
          "type": "string"
        },
        "metadata": {
          "additionalProperties": {
            "type": "string"
          },
          "type": [
            "object",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "roots": {
          "items": {
            "$ref": "#/definitions/ProjectRoot"
          },
          "type": "array"
        }
      },
      "required": [
        "idempotencyKey",
        "name",
        "roots"
      ],
      "type": "object"
    },
    "ProjectDeleteParams": {
      "properties": {
        "projectId": {
          "type": "string"
        }
      },
      "required": [
        "projectId"
      ],
      "type": "object"
    },
    "ProjectImportParams": {
      "properties": {
        "idempotencyKey": {
          "type": "string"
        },
        "metadata": {
          "additionalProperties": {
            "type": "string"
          },
          "type": [
            "object",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "roots": {
          "items": {
            "$ref": "#/definitions/ProjectRoot"
          },
          "type": "array"
        },
        "threads": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "idempotencyKey",
        "name",
        "roots"
      ],
      "type": "object"
    },
    "ProjectListParams": {
      "properties": {
        "cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "limit": {
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ProjectMoveParams": {
      "properties": {
        "beforeProjectId": {
          "type": [
            "string",
            "null"
          ]
        },
        "projectId": {
          "type": "string"
        }
      },
      "required": [
        "projectId"
      ],
      "type": "object"
    },
    "ProjectReadParams": {
      "properties": {
        "projectId": {
          "type": "string"
        }
      },
      "required": [
        "projectId"
      ],
      "type": "object"
    },
    "ProjectRoot": {
      "properties": {
        "path": {
          "$ref": "#/definitions/AbsolutePathBuf"
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    },
    "ProjectUpdateParams": {
      "properties": {
        "metadata": {
          "additionalProperties": {
            "type": "string"
          },
          "type": [
            "object",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "projectId": {
          "type": "string"
        },
        "roots": {
          "items": {
            "$ref": "#/definitions/ProjectRoot"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "projectId"
      ],
      "type": "object"
    },
    "RealtimeConversationVersion": {
      "enum": [
        "v1",
        "v2",
        "v3"
      ],
      "type": "string"
    },
    "RealtimeOutputModality": {
      "enum": [
        "text",
        "audio"
      ],
      "type": "string"
    },
    "RealtimeVoice": {
      "enum": [
        "alloy",
        "arbor",
        "ash",
        "ballad",
        "breeze",
        "cedar",
        "coral",
        "cove",
        "echo",
        "ember",
        "juniper",
        "maple",
        "marin",
        "sage",
        "shimmer",
        "sol",
        "spruce",
        "vale",
        "verse"
      ],
      "type": "string"
    },
    "ReasoningEffort": {
      "description": "A non-empty reasoning effort value advertised by the model.",
      "minLength": 1,
      "type": "string"
    },
    "ReasoningItemContent": {
      "oneOf": [
        {
          "properties": {
            "text": {
              "type": "string"
            },
            "type": {
              "enum": [
                "reasoning_text"
              ],
              "title": "ReasoningTextReasoningItemContentType",
              "type": "string"
            }
          },
          "required": [
            "text",
            "type"
          ],
          "title": "ReasoningTextReasoningItemContent",
          "type": "object"
        },
        {
          "properties": {
            "text": {
              "type": "string"
            },
            "type": {
              "enum": [
                "text"
              ],
              "title": "TextReasoningItemContentType",
              "type": "string"
            }
          },
          "required": [
            "text",
            "type"
          ],
          "title": "TextReasoningItemContent",
          "type": "object"
        }
      ]
    },
    "ReasoningItemReasoningSummary": {
      "oneOf": [
        {
          "properties": {
            "text": {
              "type": "string"
            },
            "type": {
              "enum": [
                "summary_text"
              ],
              "title": "SummaryTextReasoningItemReasoningSummaryType",
              "type": "string"
            }
          },
          "required": [
            "text",
            "type"
          ],
          "title": "SummaryTextReasoningItemReasoningSummary",
          "type": "object"
        }
      ]
    },
    "ReasoningSummary": {
      "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",
      "oneOf": [
        {
          "enum": [
            "auto",
            "concise",
            "detailed"
          ],
          "type": "string"
        },
        {
          "description": "Option to disable reasoning summaries.",
          "enum": [
            "none"
          ],
          "type": "string"
        }
      ]
    },
    "RemoteControlClientsListOrder": {
      "enum": [
        "asc",
        "desc"
      ],
      "type": "string"
    },
    "RemoteControlClientsListParams": {
      "properties": {
        "cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "environmentId": {
          "type": "string"
        },
        "limit": {
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "order": {
          "anyOf": [
            {
              "$ref": "#/definitions/RemoteControlClientsListOrder"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "environmentId"
      ],
      "type": "object"
    },
    "RemoteControlClientsRevokeParams": {
      "properties": {
        "clientId": {
          "type": "string"
        },
        "environmentId": {
          "type": "string"
        }
      },
      "required": [
        "clientId",
        "environmentId"
      ],
      "type": "object"
    },
    "RemoteControlDisableParams": {
      "properties": {
        "ephemeral": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "RemoteControlEnableParams": {
      "properties": {
        "ephemeral": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "RemoteControlPairingStartParams": {
      "properties": {
        "manualCode": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "RemoteControlPairingStatusParams": {
      "properties": {
        "manualPairingCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "pairingCode": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "RequestId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "format": "int64",
          "type": "integer"
        }
      ]
    },
    "ResponseItem": {
      "oneOf": [
        {
          "properties": {
            "content": {
              "items": {
                "$ref": "#/definitions/ContentItem"
              },
              "type": "array"
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "phase": {
              "anyOf": [
                {
                  "$ref": "#/definitions/MessagePhase"
                },
                {
                  "type": "null"
                }
              ]
            },
            "role": {
              "type": "string"
            },
            "type": {
              "enum": [
                "message"
              ],
              "title": "MessageResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "content",
            "role",
            "type"
          ],
          "title": "MessageResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "author": {
              "type": "string"
            },
            "content": {
              "items": {
                "$ref": "#/definitions/AgentMessageInputContent"
              },
              "type": "array"
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "recipient": {
              "type": "string"
            },
            "type": {
              "enum": [
                "agent_message"
              ],
              "title": "AgentMessageResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "author",
            "content",
            "recipient",
            "type"
          ],
          "title": "AgentMessageResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "content": {
              "default": null,
              "items": {
                "$ref": "#/definitions/ReasoningItemContent"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "encrypted_content": {
              "type": [
                "string",
                "null"
              ]
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "summary": {
              "items": {
                "$ref": "#/definitions/ReasoningItemReasoningSummary"
              },
              "type": "array"
            },
            "type": {
              "enum": [
                "reasoning"
              ],
              "title": "ReasoningResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "summary",
            "type"
          ],
          "title": "ReasoningResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "action": {
              "$ref": "#/definitions/LocalShellAction"
            },
            "call_id": {
              "description": "Set when using the Responses API.",
              "type": [
                "string",
                "null"
              ]
            },
            "id": {
              "description": "Legacy id field retained for compatibility with older payloads.",
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "status": {
              "$ref": "#/definitions/LocalShellStatus"
            },
            "type": {
              "enum": [
                "local_shell_call"
              ],
              "title": "LocalShellCallResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "action",
            "status",
            "type"
          ],
          "title": "LocalShellCallResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "arguments": {
              "type": "string"
            },
            "call_id": {
              "type": "string"
            },
            "encrypted_function_args": {
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "name": {
              "type": "string"
            },
            "namespace": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "enum": [
                "function_call"
              ],
              "title": "FunctionCallResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "arguments",
            "call_id",
            "name",
            "type"
          ],
          "title": "FunctionCallResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "arguments": true,
            "call_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "execution": {
              "type": "string"
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "status": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "enum": [
                "tool_search_call"
              ],
              "title": "ToolSearchCallResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "arguments",
            "execution",
            "type"
          ],
          "title": "ToolSearchCallResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "call_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "namespace": {
              "type": [
                "string",
                "null"
              ]
            },
            "output": {
              "$ref": "#/definitions/FunctionCallOutputBody"
            },
            "type": {
              "enum": [
                "function_call_output"
              ],
              "title": "FunctionCallOutputResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "output",
            "type"
          ],
          "title": "FunctionCallOutputResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "call_id": {
              "type": "string"
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "input": {
              "type": "string"
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "name": {
              "type": "string"
            },
            "namespace": {
              "type": [
                "string",
                "null"
              ]
            },
            "status": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "enum": [
                "custom_tool_call"
              ],
              "title": "CustomToolCallResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "call_id",
            "input",
            "name",
            "type"
          ],
          "title": "CustomToolCallResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "call_id": {
              "type": "string"
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "output": {
              "$ref": "#/definitions/FunctionCallOutputBody"
            },
            "type": {
              "enum": [
                "custom_tool_call_output"
              ],
              "title": "CustomToolCallOutputResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "call_id",
            "output",
            "type"
          ],
          "title": "CustomToolCallOutputResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "call_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "execution": {
              "type": "string"
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "status": {
              "type": "string"
            },
            "tools": {
              "items": true,
              "type": "array"
            },
            "type": {
              "enum": [
                "tool_search_output"
              ],
              "title": "ToolSearchOutputResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "execution",
            "status",
            "tools",
            "type"
          ],
          "title": "ToolSearchOutputResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "action": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponsesApiWebSearchAction"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "status": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "enum": [
                "web_search_call"
              ],
              "title": "WebSearchCallResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "WebSearchCallResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "result": {
              "type": "string"
            },
            "revised_prompt": {
              "type": [
                "string",
                "null"
              ]
            },
            "status": {
              "type": "string"
            },
            "type": {
              "enum": [
                "image_generation_call"
              ],
              "title": "ImageGenerationCallResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "result",
            "status",
            "type"
          ],
          "title": "ImageGenerationCallResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "encrypted_content": {
              "type": "string"
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": {
              "enum": [
                "compaction"
              ],
              "title": "CompactionResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "encrypted_content",
            "type"
          ],
          "title": "CompactionResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "type": {
              "enum": [
                "compaction_trigger"
              ],
              "title": "CompactionTriggerResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "CompactionTriggerResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "encrypted_content": {
              "type": [
                "string",
                "null"
              ]
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "internal_chat_message_metadata_passthrough": {
              "anyOf": [
                {
                  "$ref": "#/definitions/InternalChatMessageMetadataPassthrough"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": {
              "enum": [
                "context_compaction"
              ],
              "title": "ContextCompactionResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "ContextCompactionResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "type": {
              "enum": [
                "other"
              ],
              "title": "OtherResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "OtherResponseItem",
          "type": "object"
        }
      ]
    },
    "ResponsesApiWebSearchAction": {
      "oneOf": [
        {
          "properties": {
            "queries": {
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "query": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "enum": [
                "search"
              ],
              "title": "SearchResponsesApiWebSearchActionType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "SearchResponsesApiWebSearchAction",
          "type": "object"
        },
        {
          "properties": {
            "type": {
              "enum": [
                "open_page"
              ],
              "title": "OpenPageResponsesApiWebSearchActionType",
              "type": "string"
            },
            "url": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "type"
          ],
          "title": "OpenPageResponsesApiWebSearchAction",
          "type": "object"
        },
        {
          "properties": {
            "pattern": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "enum": [
                "find_in_page"
              ],
              "title": "FindInPageResponsesApiWebSearchActionType",
              "type": "string"
            },
            "url": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "type"
          ],
          "title": "FindInPageResponsesApiWebSearchAction",
          "type": "object"
        },
        {
          "properties": {
            "type": {
              "enum": [
                "other"
              ],
              "title": "OtherResponsesApiWebSearchActionType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "OtherResponsesApiWebSearchAction",
          "type": "object"
        }
      ]
    },
    "ReviewDelivery": {
      "enum": [
        "inline",
        "detached"
      ],
      "type": "string"
    },
    "ReviewStartParams": {
      "properties": {
        "delivery": {
          "anyOf": [
            {
              "$ref": "#/definitions/ReviewDelivery"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`)."
        },
        "target": {
          "$ref": "#/definitions/ReviewTarget"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "target",
        "threadId"
      ],
      "type": "object"
    },
    "ReviewTarget": {
      "oneOf": [
        {
          "description": "Review the working tree: staged, unstaged, and untracked files.",
          "properties": {
            "type": {
              "enum": [
                "uncommittedChanges"
              ],
              "title": "UncommittedChangesReviewTargetType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "UncommittedChangesReviewTarget",
          "type": "object"
        },
        {
          "description": "Review changes between the current branch and the given base branch.",
          "properties": {
            "branch": {
              "type": "string"
            },
            "type": {
              "enum": [
                "baseBranch"
              ],
              "title": "BaseBranchReviewTargetType",
              "type": "string"
            }
          },
          "required": [
            "branch",
            "type"
          ],
          "title": "BaseBranchReviewTarget",
          "type": "object"
        },
        {
          "description": "Review the changes introduced by a specific commit.",
          "properties": {
            "sha": {
              "type": "string"
            },
            "title": {
              "description": "Optional human-readable label (e.g., commit subject) for UIs.",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "enum": [
                "commit"
              ],
              "title": "CommitReviewTargetType",
              "type": "string"
            }
          },
          "required": [
            "sha",
            "type"
          ],
          "title": "CommitReviewTarget",
          "type": "object"
        },
        {
          "description": "Arbitrary instructions, equivalent to the old free-form prompt.",
          "properties": {
            "instructions": {
              "type": "string"
            },
            "type": {
              "enum": [
                "custom"
              ],
              "title": "CustomReviewTargetType",
              "type": "string"
            }
          },
          "required": [
            "instructions",
            "type"
          ],
          "title": "CustomReviewTarget",
          "type": "object"
        }
      ]
    },
    "SandboxMode": {
      "enum": [
        "read-only",
        "workspace-write",
        "danger-full-access"
      ],
      "type": "string"
    },
    "SandboxPolicy": {
      "oneOf": [
        {
          "properties": {
            "type": {
              "enum": [
                "dangerFullAccess"
              ],
              "title": "DangerFullAccessSandboxPolicyType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "DangerFullAccessSandboxPolicy",
          "type": "object"
        },
        {
          "properties": {
            "networkAccess": {
              "default": false,
              "type": "boolean"
            },
            "type": {
              "enum": [
                "readOnly"
              ],
              "title": "ReadOnlySandboxPolicyType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "ReadOnlySandboxPolicy",
          "type": "object"
        },
        {
          "properties": {
            "networkAccess": {
              "allOf": [
                {
                  "$ref": "#/definitions/NetworkAccess"
                }
              ],
              "default": "restricted"
            },
            "type": {
              "enum": [
                "externalSandbox"
              ],
              "title": "ExternalSandboxSandboxPolicyType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "ExternalSandboxSandboxPolicy",
          "type": "object"
        },
        {
          "properties": {
            "excludeSlashTmp": {
              "default": false,
              "type": "boolean"
            },
            "excludeTmpdirEnvVar": {
              "default": false,
              "type": "boolean"
            },
            "networkAccess": {
              "default": false,
              "type": "boolean"
            },
            "type": {
              "enum": [
                "workspaceWrite"
              ],
              "title": "WorkspaceWriteSandboxPolicyType",
              "type": "string"
            },
            "writableRoots": {
              "default": [],
              "items": {
                "$ref": "#/definitions/AbsolutePathBuf"
              },
              "type": "array"
            }
          },
          "required": [
            "type"
          ],
          "title": "WorkspaceWriteSandboxPolicy",
          "type": "object"
        }
      ]
    },
    "SelectedCapabilityRoot": {
      "description": "A user-selected root that can expose one or more runtime capabilities.",
      "properties": {
        "id": {
          "description": "Stable identifier supplied by the capability selection platform.",
          "type": "string"
        },
        "location": {
          "allOf": [
            {
              "$ref": "#/definitions/CapabilityRootLocation"
            }
          ],
          "description": "Where the selected root can be resolved."
        }
      },
      "required": [
        "id",
        "location"
      ],
      "type": "object"
    },
    "SendAddCreditsNudgeEmailParams": {
      "properties": {
        "creditType": {
          "$ref": "#/definitions/AddCreditsNudgeCreditType"
        }
      },
      "required": [
        "creditType"
      ],
      "type": "object"
    },
    "ServerDiagnosticsParams": {
      "type": "object"
    },
    "SessionMigration": {
      "properties": {
        "cwd": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "cwd",
        "path"
      ],
      "type": "object"
    },
    "Settings": {
      "description": "Settings for a collaboration mode.",
      "properties": {
        "developer_instructions": {
          "type": [
            "string",
            "null"
          ]
        },
        "model": {
          "type": "string"
        },
        "reasoning_effort": {
          "anyOf": [
            {
              "$ref": "#/definitions/ReasoningEffort"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "model"
      ],
      "type": "object"
    },
    "SkillMigration": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "SkillsConfigWriteParams": {
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "name": {
          "description": "Name-based selector.",
          "type": [
            "string",
            "null"
          ]
        },
        "path": {
          "anyOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            },
            {
              "type": "null"
            }
          ],
          "description": "Path-based selector."
        }
      },
      "required": [
        "enabled"
      ],
      "type": "object"
    },
    "SkillsExtraRootsSetParams": {
      "properties": {
        "extraRoots": {
          "items": {
            "$ref": "#/definitions/AbsolutePathBuf"
          },
          "type": "array"
        }
      },
      "required": [
        "extraRoots"
      ],
      "type": "object"
    },
    "SkillsListParams": {
      "properties": {
        "cwds": {
          "description": "When empty, defaults to the current session working directory.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "forceReload": {
          "description": "When true, bypass the skills cache and re-scan skills from disk.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "SortDirection": {
      "enum": [
        "asc",
        "desc"
      ],
      "type": "string"
    },
    "SubagentMigration": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "TextElement": {
      "properties": {
        "byteRange": {
          "allOf": [
            {
              "$ref": "#/definitions/ByteRange"
            }
          ],
          "description": "Byte range in the parent `text` buffer that this element occupies."
        },
        "placeholder": {
          "description": "Optional human-readable placeholder for the element, displayed in the UI.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "byteRange"
      ],
      "type": "object"
    },
    "ThreadApproveGuardianDeniedActionParams": {
      "properties": {
        "event": {
          "description": "Serialized `codex_protocol::protocol::GuardianAssessmentEvent`."
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "event",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadArchiveParams": {
      "properties": {
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadBackgroundTerminalsCleanParams": {
      "properties": {
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadBackgroundTerminalsListParams": {
      "properties": {
        "cursor": {
          "description": "Opaque pagination cursor returned by a previous call.",
          "type": [
            "string",
            "null"
          ]
        },
        "limit": {
          "description": "Optional page size.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadBackgroundTerminalsTerminateParams": {
      "properties": {
        "processId": {
          "type": "string"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "processId",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadCompactStartParams": {
      "properties": {
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadDecrementElicitationParams": {
      "description": "Parameters for `thread/decrement_elicitation`.",
      "properties": {
        "threadId": {
          "description": "Thread whose out-of-band elicitation counter should be decremented.",
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadDeleteParams": {
      "properties": {
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadForkParams": {
      "description": "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using a non-empty path, the thread_id param will be ignored. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.",
      "properties": {
        "approvalPolicy": {
          "anyOf": [
            {
              "$ref": "#/definitions/AskForApproval"
            },
            {
              "type": "null"
            }
          ]
        },
        "approvalsReviewer": {
          "anyOf": [
            {
              "$ref": "#/definitions/ApprovalsReviewer"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override where approval requests are routed for review on this thread and subsequent turns."
        },
        "baseInstructions": {
          "type": [
            "string",
            "null"
          ]
        },
        "beforeTurnId": {
          "description": "Optional turn id to fork before, excluding that turn and all later turns. Cannot be combined with `last_turn_id`.",
          "type": [
            "string",
            "null"
          ]
        },
        "config": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "cwd": {
          "type": [
            "string",
            "null"
          ]
        },
        "deferGoalContinuation": {
          "description": "When true, carry the source thread's current goal into the fork without starting its initial automatic continuation. The next explicit turn owns the goal lifecycle, and normal automatic continuation resumes after it.",
          "type": "boolean"
        },
        "developerInstructions": {
          "type": [
            "string",
            "null"
          ]
        },
        "ephemeral": {
          "type": "boolean"
        },
        "excludeTurns": {
          "description": "When true, return only thread metadata and live fork state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after forking.",
          "type": "boolean"
        },
        "lastTurnId": {
          "description": "Optional last turn id to fork through, inclusive.\n\nWhen specified, turns after `last_turn_id` are omitted from the fork. The referenced turn cannot be in progress.",
          "type": [
            "string",
            "null"
          ]
        },
        "model": {
          "description": "Configuration overrides for the forked thread, if any.",
          "type": [
            "string",
            "null"
          ]
        },
        "modelProvider": {
          "type": [
            "string",
            "null"
          ]
        },
        "path": {
          "default": null,
          "description": "[UNSTABLE] Specify the rollout path to fork from. If specified, the thread_id param will be ignored.",
          "type": [
            "string",
            "null"
          ]
        },
        "permissions": {
          "description": "Named profile id for the forked thread. Cannot be combined with `sandbox`.",
          "type": [
            "string",
            "null"
          ]
        },
        "runtimeWorkspaceRoots": {
          "description": "Replace the thread's runtime workspace roots. Paths must be absolute.",
          "items": {
            "$ref": "#/definitions/AbsolutePathBuf"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "sandbox": {
          "anyOf": [
            {
              "$ref": "#/definitions/SandboxMode"
            },
            {
              "type": "null"
            }
          ]
        },
        "serviceTier": {
          "type": [
            "string",
            "null"
          ]
        },
        "threadId": {
          "type": "string"
        },
        "threadSource": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadSource"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional client-supplied analytics source classification for this forked thread."
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadGoalClearParams": {
      "properties": {
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadGoalGetParams": {
      "properties": {
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadGoalSetParams": {
      "properties": {
        "objective": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadGoalStatus"
            },
            {
              "type": "null"
            }
          ]
        },
        "threadId": {
          "type": "string"
        },
        "tokenBudget": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadGoalStatus": {
      "enum": [
        "active",
        "paused",
        "blocked",
        "usageLimited",
        "budgetLimited",
        "complete"
      ],
      "type": "string"
    },
    "ThreadHistoryMode": {
      "enum": [
        "legacy",
        "paginated"
      ],
      "type": "string"
    },
    "ThreadIncrementElicitationParams": {
      "description": "Parameters for `thread/increment_elicitation`.",
      "properties": {
        "threadId": {
          "description": "Thread whose out-of-band elicitation counter should be incremented.",
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadInjectItemsParams": {
      "properties": {
        "items": {
          "description": "Raw Responses API items to append to the thread's model-visible history.",
          "items": true,
          "type": "array"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "items",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadItemsListParams": {
      "properties": {
        "cursor": {
          "description": "Opaque cursor to pass to the next call to continue after the last item.",
          "type": [
            "string",
            "null"
          ]
        },
        "limit": {
          "description": "Optional item page size.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "sortDirection": {
          "anyOf": [
            {
              "$ref": "#/definitions/SortDirection"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional item pagination direction; defaults to ascending."
        },
        "threadId": {
          "type": "string"
        },
        "turnId": {
          "description": "Optional turn id to filter by. When omitted, returns items across the thread.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadListCwdFilter": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      ]
    },
    "ThreadListParams": {
      "properties": {
        "ancestorThreadId": {
          "description": "Optional ancestor thread filter. Returns spawned descendants at any depth, excluding the ancestor itself. Mutually exclusive with `parentThreadId`.",
          "type": [
            "string",
            "null"
          ]
        },
        "archived": {
          "description": "Optional archived filter; when set to true, only archived threads are returned. If false or null, only non-archived threads are returned.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "cursor": {
          "description": "Opaque pagination cursor returned by a previous call.",
          "type": [
            "string",
            "null"
          ]
        },
        "cwd": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadListCwdFilter"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned."
        },
        "limit": {
          "description": "Optional page size; defaults to a reasonable server-side value.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "modelProviders": {
          "description": "Optional provider filter; when set, only sessions recorded under these providers are returned. When present but empty, includes all providers.",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "parentThreadId": {
          "description": "Optional direct parent thread filter. Mutually exclusive with `ancestorThreadId`.",
          "type": [
            "string",
            "null"
          ]
        },
        "projectId": {
          "description": "Omit to include every project, set to null for unassigned threads, or provide a project ID to return only threads in that project.",
          "type": [
            "string",
            "null"
          ]
        },
        "searchTerm": {
          "description": "Optional substring filter for the extracted thread title.",
          "type": [
            "string",
            "null"
          ]
        },
        "sectionId": {
          "description": "Omit to include every section, set to `null` for unsectioned threads, or provide a section ID to return only threads in that section.",
          "type": [
            "string",
            "null"
          ]
        },
        "sortDirection": {
          "anyOf": [
            {
              "$ref": "#/definitions/SortDirection"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional sort direction; defaults to descending (newest first)."
        },
        "sortKey": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadSortKey"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional sort key; defaults to created_at."
        },
        "sourceKinds": {
          "description": "Optional source filter; when set, only sessions from these source kinds are returned. When omitted or empty, defaults to interactive sources.",
          "items": {
            "$ref": "#/definitions/ThreadSourceKind"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "useStateDbOnly": {
          "description": "If true, return from the state DB without scanning JSONL rollouts to repair thread metadata. Omitted or false preserves scan-and-repair behavior.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "ThreadLoadedListParams": {
      "properties": {
        "cursor": {
          "description": "Opaque pagination cursor returned by a previous call.",
          "type": [
            "string",
            "null"
          ]
        },
        "limit": {
          "description": "Optional page size; defaults to no limit.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ThreadMemoryMode": {
      "enum": [
        "enabled",
        "disabled"
      ],
      "type": "string"
    },
    "ThreadMemoryModeSetParams": {
      "properties": {
        "mode": {
          "$ref": "#/definitions/ThreadMemoryMode"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "mode",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadMetadataGitInfoUpdateParams": {
      "properties": {
        "branch": {
          "description": "Omit to leave the stored branch unchanged, set to `null` to clear it, or provide a non-empty string to replace it.",
          "type": [
            "string",
            "null"
          ]
        },
        "originUrl": {
          "description": "Omit to leave the stored origin URL unchanged, set to `null` to clear it, or provide a non-empty string to replace it.",
          "type": [
            "string",
            "null"
          ]
        },
        "sha": {
          "description": "Omit to leave the stored commit unchanged, set to `null` to clear it, or provide a non-empty string to replace it.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ThreadMetadataUpdateParams": {
      "properties": {
        "gitInfo": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadMetadataGitInfoUpdateParams"
            },
            {
              "type": "null"
            }
          ],
          "description": "Patch the stored Git metadata for this thread. Omit a field to leave it unchanged, set it to `null` to clear it, or provide a string to replace the stored value."
        },
        "projectId": {
          "description": "Omit to leave the project unchanged, use an empty string to clear it, or provide an existing project ID to assign it.",
          "type": [
            "string",
            "null"
          ]
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadQueueAddParams": {
      "properties": {
        "clientUserMessageId": {
          "type": "string"
        },
        "input": {
          "items": {
            "$ref": "#/definitions/UserInput"
          },
          "type": "array"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "clientUserMessageId",
        "input",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadQueueDeleteParams": {
      "properties": {
        "queuedSubmissionId": {
          "type": "string"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "queuedSubmissionId",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadQueueListParams": {
      "properties": {
        "cursor": {
          "description": "Opaque pagination cursor returned by a previous call.",
          "type": [
            "string",
            "null"
          ]
        },
        "limit": {
          "description": "Optional page size; defaults to the standard thread-list page size.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadQueueReorderParams": {
      "properties": {
        "queuedSubmissionIds": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "queuedSubmissionIds",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadQueueStartParams": {
      "properties": {
        "queuedSubmissionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadQueueUpdateParams": {
      "properties": {
        "input": {
          "items": {
            "$ref": "#/definitions/UserInput"
          },
          "type": "array"
        },
        "queuedSubmissionId": {
          "type": "string"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "input",
        "queuedSubmissionId",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadReadParams": {
      "properties": {
        "includeTurns": {
          "description": "When true, include turns and their items from rollout history.",
          "type": "boolean"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadRealtimeAppendAudioParams": {
      "description": "EXPERIMENTAL - append audio input to thread realtime.",
      "properties": {
        "audio": {
          "$ref": "#/definitions/ThreadRealtimeAudioChunk"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "audio",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadRealtimeAppendSpeechParams": {
      "description": "EXPERIMENTAL - append speakable text to thread realtime.",
      "properties": {
        "text": {
          "type": "string"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "text",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadRealtimeAppendTextParams": {
      "description": "EXPERIMENTAL - append text input to thread realtime.",
      "properties": {
        "role": {
          "allOf": [
            {
              "$ref": "#/definitions/ConversationTextRole"
            }
          ],
          "default": "user"
        },
        "text": {
          "type": "string"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "text",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadRealtimeAudioChunk": {
      "description": "EXPERIMENTAL - thread realtime audio chunk.",
      "properties": {
        "data": {
          "type": "string"
        },
        "itemId": {
          "type": [
            "string",
            "null"
          ]
        },
        "numChannels": {
          "format": "uint16",
          "minimum": 0.0,
          "type": "integer"
        },
        "sampleRate": {
          "format": "uint32",
          "minimum": 0.0,
          "type": "integer"
        },
        "samplesPerChannel": {
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "data",
        "numChannels",
        "sampleRate"
      ],
      "type": "object"
    },
    "ThreadRealtimeInitialItem": {
      "description": "EXPERIMENTAL - role-bearing text item included when a realtime V3 session starts.",
      "properties": {
        "role": {
          "$ref": "#/definitions/ConversationTextRole"
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "role",
        "text"
      ],
      "type": "object"
    },
    "ThreadRealtimeListVoicesParams": {
      "description": "EXPERIMENTAL - list voices supported by thread realtime.",
      "type": "object"
    },
    "ThreadRealtimeStartParams": {
      "description": "EXPERIMENTAL - start a thread-scoped realtime session.",
      "properties": {
        "clientManagedHandoffs": {
          "description": "Leaves Codex response handoffs to the client's explicit append calls instead of forwarding them automatically. Defaults to false.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "codexResponseHandoffChannelPrefixes": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Overrides BEM channel prefixes by `analysis`, `commentary`, or `final`. Omitted channels retain their default uppercase bracketed prefixes.",
          "type": [
            "object",
            "null"
          ]
        },
        "codexResponseHandoffMode": {
          "anyOf": [
            {
              "$ref": "#/definitions/CodexResponseHandoffMode"
            },
            {
              "type": "null"
            }
          ],
          "description": "Selects how automatic Codex responses are routed in Frameless Bidi sessions. Omitted values default to `thinking`. Realtime V1 and V2 ignore this setting."
        },
        "codexResponseItemPrefix": {
          "description": "Optional prefix added to automatic Codex response items when `codexResponsesAsItems` is true.",
          "type": [
            "string",
            "null"
          ]
        },
        "codexResponsesAsItems": {
          "description": "Sends automatic Codex responses as realtime conversation items instead of handoff appends.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "delegationAckFiller": {
          "description": "Controls whether a realtime V3 delegation produces an acknowledgement filler. Omitted values preserve the Realtime API's default behavior.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "flushTranscriptTailOnSessionEnd": {
          "description": "Routes any transcript tail remaining at session end through Codex. Defaults to false. TODO: Remove this rollout knob once transcript-tail flushing is always enabled.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "includeStartupContext": {
          "description": "Set to false to start without Codex's startup context. Omitted or null includes it.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "initialItems": {
          "description": "Adds complete role-bearing text items to the initial Frameless Bidi session history. This is only supported by realtime V3 and is sent during session startup. Requests are limited to 128 items and 8,192 estimated text tokens in total.",
          "items": {
            "$ref": "#/definitions/ThreadRealtimeInitialItem"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "model": {
          "description": "Overrides the configured realtime model for this session only.",
          "type": [
            "string",
            "null"
          ]
        },
        "outputModality": {
          "allOf": [
            {
              "$ref": "#/definitions/RealtimeOutputModality"
            }
          ],
          "description": "Selects text or audio output for the realtime session. Transport and voice stay independent so clients can choose how they connect separately from what the model emits."
        },
        "prompt": {
          "type": [
            "string",
            "null"
          ]
        },
        "realtimeEndInstructions": {
          "description": "Developer instructions given to the backing Codex model when this realtime session ends.",
          "type": [
            "string",
            "null"
          ]
        },
        "realtimeSessionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "realtimeStartInstructions": {
          "description": "Developer instructions given to the backing Codex model when this realtime session starts.",
          "type": [
            "string",
            "null"
          ]
        },
        "threadId": {
          "type": "string"
        },
        "transport": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadRealtimeStartTransport"
            },
            {
              "type": "null"
            }
          ]
        },
        "version": {
          "anyOf": [
            {
              "$ref": "#/definitions/RealtimeConversationVersion"
            },
            {
              "type": "null"
            }
          ],
          "description": "Overrides the configured realtime protocol version for this session only."
        },
        "voice": {
          "anyOf": [
            {
              "$ref": "#/definitions/RealtimeVoice"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "outputModality",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadRealtimeStartTransport": {
      "description": "EXPERIMENTAL - transport used by thread realtime.",
      "oneOf": [
        {
          "properties": {
            "type": {
              "enum": [
                "websocket"
              ],
              "title": "WebsocketThreadRealtimeStartTransportType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "WebsocketThreadRealtimeStartTransport",
          "type": "object"
        },
        {
          "properties": {
            "sdp": {
              "description": "SDP offer generated by a WebRTC RTCPeerConnection after configuring audio and the realtime events data channel.",
              "type": "string"
            },
            "type": {
              "enum": [
                "webrtc"
              ],
              "title": "WebrtcThreadRealtimeStartTransportType",
              "type": "string"
            }
          },
          "required": [
            "sdp",
            "type"
          ],
          "title": "WebrtcThreadRealtimeStartTransport",
          "type": "object"
        },
        {
          "properties": {
            "callId": {
              "description": "Identifier of a realtime call already created and negotiated by the client.",
              "type": "string"
            },
            "type": {
              "enum": [
                "existingCall"
              ],
              "title": "ExistingCallThreadRealtimeStartTransportType",
              "type": "string"
            }
          },
          "required": [
            "callId",
            "type"
          ],
          "title": "ExistingCallThreadRealtimeStartTransport",
          "type": "object"
        }
      ]
    },
    "ThreadRealtimeStopParams": {
      "description": "EXPERIMENTAL - stop thread realtime.",
      "properties": {
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadResumeInitialTurnsPageParams": {
      "properties": {
        "itemsView": {
          "anyOf": [
            {
              "$ref": "#/definitions/TurnItemsView"
            },
            {
              "type": "null"
            }
          ],
          "description": "How much item detail to include for each returned turn; defaults to summary."
        },
        "limit": {
          "description": "Optional turn page size.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "sortDirection": {
          "anyOf": [
            {
              "$ref": "#/definitions/SortDirection"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional turn pagination direction; defaults to descending."
        }
      },
      "type": "object"
    },
    "ThreadResumeParams": {
      "description": "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nFor non-running threads, the precedence is: history > non-empty path > thread_id. If using history or a non-empty path for a non-running thread, the thread_id param will be ignored.\n\nIf thread_id identifies a running thread, app-server rejoins that thread and treats a non-empty path as a consistency check against the active rollout path. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.",
      "properties": {
        "approvalPolicy": {
          "anyOf": [
            {
              "$ref": "#/definitions/AskForApproval"
            },
            {
              "type": "null"
            }
          ]
        },
        "approvalsReviewer": {
          "anyOf": [
            {
              "$ref": "#/definitions/ApprovalsReviewer"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override where approval requests are routed for review on this thread and subsequent turns."
        },
        "baseInstructions": {
          "type": [
            "string",
            "null"
          ]
        },
        "config": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "cwd": {
          "type": [
            "string",
            "null"
          ]
        },
        "developerInstructions": {
          "type": [
            "string",
            "null"
          ]
        },
        "excludeTurns": {
          "description": "When true, return only thread metadata and live-resume state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after resuming.",
          "type": "boolean"
        },
        "history": {
          "description": "[UNSTABLE] FOR CODEX CLOUD - DO NOT USE. If specified, the thread will be resumed with the provided history instead of loaded from disk.",
          "items": {
            "$ref": "#/definitions/ResponseItem"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "initialTurnsPage": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadResumeInitialTurnsPageParams"
            },
            {
              "type": "null"
            }
          ],
          "description": "When present, include a `thread/turns/list` page in the resume response so clients can bootstrap recent turns without a second request."
        },
        "model": {
          "description": "Configuration overrides for the resumed thread, if any.",
          "type": [
            "string",
            "null"
          ]
        },
        "modelProvider": {
          "type": [
            "string",
            "null"
          ]
        },
        "path": {
          "default": null,
          "description": "[UNSTABLE] Specify the rollout path to resume from. If specified for a non-running thread, the thread_id param will be ignored. If thread_id identifies a running thread, the path must match the active rollout path.",
          "type": [
            "string",
            "null"
          ]
        },
        "permissions": {
          "description": "Named profile id for the resumed thread. Cannot be combined with `sandbox`.",
          "type": [
            "string",
            "null"
          ]
        },
        "personality": {
          "anyOf": [
            {
              "$ref": "#/definitions/Personality"
            },
            {
              "type": "null"
            }
          ]
        },
        "runtimeWorkspaceRoots": {
          "description": "Replace the thread's runtime workspace roots. Paths must be absolute.",
          "items": {
            "$ref": "#/definitions/AbsolutePathBuf"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "sandbox": {
          "anyOf": [
            {
              "$ref": "#/definitions/SandboxMode"
            },
            {
              "type": "null"
            }
          ]
        },
        "serviceTier": {
          "type": [
            "string",
            "null"
          ]
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadRevertParams": {
      "description": "Replace a paginated thread's durable history with the prefix before one turn.\n\nThis only changes persisted conversation history. It does not revert local file changes.",
      "properties": {
        "beforeTurnId": {
          "description": "Turn excluded from the replacement history, together with every later turn.",
          "type": "string"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "beforeTurnId",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadRollbackParams": {
      "description": "DEPRECATED: `thread/rollback` will be removed soon.",
      "properties": {
        "numTurns": {
          "description": "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.",
          "format": "uint32",
          "minimum": 0.0,
          "type": "integer"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "numTurns",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadSearchOccurrencesParams": {
      "description": "Parameters for searching visible message occurrences within one paginated thread.",
      "properties": {
        "cursor": {
          "description": "Opaque cursor returned by a previous call for the same thread and search term.",
          "type": [
            "string",
            "null"
          ]
        },
        "limit": {
          "description": "Optional occurrence page size.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "searchTerm": {
          "description": "Case-insensitive literal substring to find in visible user messages and final assistant messages.",
          "type": "string"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "searchTerm",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadSearchParams": {
      "properties": {
        "archived": {
          "description": "Optional archived filter; when set to true, only archived threads are returned. If false or null, only non-archived threads are returned.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "cursor": {
          "description": "Opaque pagination cursor returned by a previous call.",
          "type": [
            "string",
            "null"
          ]
        },
        "limit": {
          "description": "Optional page size; defaults to a reasonable server-side value.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "searchTerm": {
          "description": "Required substring/full-text query for thread search.",
          "type": "string"
        },
        "sortDirection": {
          "anyOf": [
            {
              "$ref": "#/definitions/SortDirection"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional sort direction; defaults to descending (newest first)."
        },
        "sortKey": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadSearchSortKey"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional sort key; defaults to created_at."
        },
        "sourceKinds": {
          "description": "Optional source filter; when set, only sessions from these source kinds are returned. When omitted or empty, defaults to interactive sources.",
          "items": {
            "$ref": "#/definitions/ThreadSourceKind"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "searchTerm"
      ],
      "type": "object"
    },
    "ThreadSearchSortKey": {
      "enum": [
        "created_at",
        "updated_at",
        "recency_at"
      ],
      "type": "string"
    },
    "ThreadSectionAppearance": {
      "description": "Extensible visual presentation for a custom thread section.",
      "properties": {
        "color": {
          "type": [
            "string",
            "null"
          ]
        },
        "icon": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ThreadSectionCreateParams": {
      "description": "Parameters for creating an independently persisted thread section.",
      "properties": {
        "appearance": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadSectionAppearance"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "name": {
          "description": "The user-visible name of the section.",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "ThreadSectionDeleteParams": {
      "description": "Parameters for deleting an independently persisted thread section.",
      "properties": {
        "sectionId": {
          "description": "The stable, server-generated identity of the section to delete.",
          "type": "string"
        }
      },
      "required": [
        "sectionId"
      ],
      "type": "object"
    },
    "ThreadSectionListParams": {
      "description": "Parameters for listing independently persisted thread sections.",
      "properties": {
        "cursor": {
          "description": "Opaque pagination cursor returned by a previous call.",
          "type": [
            "string",
            "null"
          ]
        },
        "limit": {
          "description": "Maximum number of sections to return.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ThreadSectionMoveParams": {
      "description": "Parameters for moving a thread within a server-owned section ordering.",
      "properties": {
        "beforeThreadId": {
          "description": "Existing thread to insert before; omission or null appends to the section.",
          "type": [
            "string",
            "null"
          ]
        },
        "sectionId": {
          "description": "Destination section, or `null` to remove the thread from its section.",
          "type": [
            "string",
            "null"
          ]
        },
        "threadId": {
          "description": "Thread to move into, within, or out of a section.",
          "type": "string"
        }
      },
      "required": [
        "sectionId",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadSectionUpdateParams": {
      "description": "Parameters for updating an independently persisted thread section.",
      "properties": {
        "appearance": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadSectionAppearance"
            },
            {
              "type": "null"
            }
          ],
          "description": "Omit to preserve appearance, use `null` to clear it, or provide a replacement."
        },
        "name": {
          "description": "The updated user-visible name of the section.",
          "type": "string"
        },
        "sectionId": {
          "description": "The stable, server-generated identity of the section to update.",
          "type": "string"
        }
      },
      "required": [
        "name",
        "sectionId"
      ],
      "type": "object"
    },
    "ThreadSetNameParams": {
      "properties": {
        "name": {
          "type": "string"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadSettingsUpdateParams": {
      "properties": {
        "approvalPolicy": {
          "anyOf": [
            {
              "$ref": "#/definitions/AskForApproval"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override the approval policy for subsequent turns."
        },
        "approvalsReviewer": {
          "anyOf": [
            {
              "$ref": "#/definitions/ApprovalsReviewer"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override where approval requests are routed for subsequent turns."
        },
        "collaborationMode": {
          "anyOf": [
            {
              "$ref": "#/definitions/CollaborationMode"
            },
            {
              "type": "null"
            }
          ],
          "description": "EXPERIMENTAL - Set a pre-set collaboration mode for subsequent turns.\n\nFor `collaboration_mode.settings.developer_instructions`, `null` means \"use the built-in instructions for the selected mode\"."
        },
        "cwd": {
          "description": "Override the working directory for subsequent turns.",
          "type": [
            "string",
            "null"
          ]
        },
        "effort": {
          "anyOf": [
            {
              "$ref": "#/definitions/ReasoningEffort"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override the reasoning effort for subsequent turns."
        },
        "model": {
          "description": "Override the model for subsequent turns.",
          "type": [
            "string",
            "null"
          ]
        },
        "multiAgentMode": {
          "anyOf": [
            {
              "$ref": "#/definitions/MultiAgentMode"
            },
            {
              "type": "null"
            }
          ],
          "description": "@deprecated Ignored. Use `effort: \"ultra\"` for proactive multi-agent behavior."
        },
        "permissions": {
          "description": "Select a named permissions profile id for subsequent turns. Cannot be combined with `sandboxPolicy`.",
          "type": [
            "string",
            "null"
          ]
        },
        "personality": {
          "anyOf": [
            {
              "$ref": "#/definitions/Personality"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override the personality for subsequent turns."
        },
        "sandboxPolicy": {
          "anyOf": [
            {
              "$ref": "#/definitions/SandboxPolicy"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override the sandbox policy for subsequent turns."
        },
        "serviceTier": {
          "description": "Override the service tier for subsequent turns. `null` clears the current service tier; omission leaves it unchanged.",
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "anyOf": [
            {
              "$ref": "#/definitions/ReasoningSummary"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override the reasoning summary for subsequent turns."
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadShellCommandParams": {
      "properties": {
        "command": {
          "description": "Shell command string evaluated by the thread's configured shell. Unlike `command/exec`, this intentionally preserves shell syntax such as pipes, redirects, and quoting. This runs unsandboxed with full access rather than inheriting the thread sandbox policy.",
          "type": "string"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "command",
        "threadId"
      ],
      "type": "object"
    },
    "ThreadSortKey": {
      "enum": [
        "created_at",
        "updated_at",
        "recency_at",
        "section_position"
      ],
      "type": "string"
    },
    "ThreadSource": {
      "type": "string"
    },
    "ThreadSourceKind": {
      "enum": [
        "cli",
        "vscode",
        "exec",
        "appServer",
        "subAgent",
        "subAgentReview",
        "subAgentCompact",
        "subAgentThreadSpawn",
        "subAgentOther",
        "unknown"
      ],
      "type": "string"
    },
    "ThreadStartParams": {
      "properties": {
        "allowProviderModelFallback": {
          "description": "Allow a provider with an authoritative static model catalog to replace an unavailable requested model with its default.",
          "type": "boolean"
        },
        "approvalPolicy": {
          "anyOf": [
            {
              "$ref": "#/definitions/AskForApproval"
            },
            {
              "type": "null"
            }
          ]
        },
        "approvalsReviewer": {
          "anyOf": [
            {
              "$ref": "#/definitions/ApprovalsReviewer"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override where approval requests are routed for review on this thread and subsequent turns."
        },
        "baseInstructions": {
          "type": [
            "string",
            "null"
          ]
        },
        "config": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "cwd": {
          "type": [
            "string",
            "null"
          ]
        },
        "developerInstructions": {
          "type": [
            "string",
            "null"
          ]
        },
        "dynamicTools": {
          "default": null,
          "items": {
            "$ref": "#/definitions/DynamicToolSpec"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "environments": {
          "description": "Optional sticky environments for this thread.\n\nOmitted selects the default environment when environment access is enabled. Empty disables environment access for turns that do not provide a turn override. Non-empty selects the first environment as the current turn environment.",
          "items": {
            "$ref": "#/definitions/TurnEnvironmentParams"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "ephemeral": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "experimentalRawEvents": {
          "description": "If true, opt into emitting raw Responses API items on the event stream. This is for internal use only (e.g. Codex Cloud).",
          "type": "boolean"
        },
        "historyMode": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadHistoryMode"
            },
            {
              "type": "null"
            }
          ],
          "description": "Persisted thread history contract to use for this new thread."
        },
        "mockExperimentalField": {
          "description": "Test-only experimental field used to validate experimental gating and schema filtering behavior in a stable way.",
          "type": [
            "string",
            "null"
          ]
        },
        "model": {
          "type": [
            "string",
            "null"
          ]
        },
        "modelProvider": {
          "type": [
            "string",
            "null"
          ]
        },
        "multiAgentMode": {
          "anyOf": [
            {
              "$ref": "#/definitions/MultiAgentMode"
            },
            {
              "type": "null"
            }
          ],
          "description": "@deprecated Ignored. Use Ultra reasoning effort for proactive multi-agent behavior."
        },
        "permissions": {
          "description": "Named profile id for this thread. Cannot be combined with `sandbox`.",
          "type": [
            "string",
            "null"
          ]
        },
        "personality": {
          "anyOf": [
            {
              "$ref": "#/definitions/Personality"
            },
            {
              "type": "null"
            }
          ]
        },
        "projectId": {
          "description": "Optional project identity for this new thread. Durable threads persist the assignment; ephemeral threads expose it only in live responses.",
          "type": [
            "string",
            "null"
          ]
        },
        "runtimeWorkspaceRoots": {
          "description": "Replace the thread's runtime workspace roots. Paths must be absolute.",
          "items": {
            "$ref": "#/definitions/AbsolutePathBuf"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "sandbox": {
          "anyOf": [
            {
              "$ref": "#/definitions/SandboxMode"
            },
            {
              "type": "null"
            }
          ]
        },
        "selectedCapabilityRoots": {
          "description": "Capability roots selected for this thread by the hosting platform.",
          "items": {
            "$ref": "#/definitions/SelectedCapabilityRoot"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "serviceName": {
          "type": [
            "string",
            "null"
          ]
        },
        "serviceTier": {
          "type": [
            "string",
            "null"
          ]
        },
        "sessionStartSource": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadStartSource"
            },
            {
              "type": "null"
            }
          ]
        },
        "threadSource": {
          "anyOf": [
            {
              "$ref": "#/definitions/ThreadSource"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional client-supplied analytics source classification for this thread."
        }
      },
      "type": "object"
    },
    "ThreadStartSource": {
      "enum": [
        "startup",
        "clear"
      ],
      "type": "string"
    },
    "ThreadTurnsListParams": {
      "properties": {
        "cursor": {
          "description": "Opaque cursor to pass to the next call to continue after the last turn.",
          "type": [
            "string",
            "null"
          ]
        },
        "itemsView": {
          "anyOf": [
            {
              "$ref": "#/definitions/TurnItemsView"
            },
            {
              "type": "null"
            }
          ],
          "description": "How much item detail to include for each returned turn; defaults to summary."
        },
        "limit": {
          "description": "Optional turn page size.",
          "format": "uint32",
          "minimum": 0.0,
          "type": [
            "integer",
            "null"
          ]
        },
        "sortDirection": {
          "anyOf": [
            {
              "$ref": "#/definitions/SortDirection"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional turn pagination direction; defaults to descending."
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadUnarchiveParams": {
      "properties": {
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadUnsubscribeParams": {
      "properties": {
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "TurnEnvironmentParams": {
      "properties": {
        "cwd": {
          "$ref": "#/definitions/LegacyAppPathString"
        },
        "environmentId": {
          "type": "string"
        },
        "runtimeWorkspaceRoots": {
          "description": "Environment-native runtime workspace roots. Omitted defaults to `cwd`.",
          "items": {
            "$ref": "#/definitions/LegacyAppPathString"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "cwd",
        "environmentId"
      ],
      "type": "object"
    },
    "TurnInterruptParams": {
      "properties": {
        "threadId": {
          "type": "string"
        },
        "turnId": {
          "type": "string"
        }
      },
      "required": [
        "threadId",
        "turnId"
      ],
      "type": "object"
    },
    "TurnItemsView": {
      "oneOf": [
        {
          "description": "`items` was not loaded for this turn. The field is intentionally empty.",
          "enum": [
            "notLoaded"
          ],
          "type": "string"
        },
        {
          "description": "`items` contains only a display summary for this turn.",
          "enum": [
            "summary"
          ],
          "type": "string"
        },
        {
          "description": "`items` contains every ThreadItem available from persisted app-server history for this turn.",
          "enum": [
            "full"
          ],
          "type": "string"
        }
      ]
    },
    "TurnStartParams": {
      "properties": {
        "additionalContext": {
          "additionalProperties": {
            "$ref": "#/definitions/AdditionalContextEntry"
          },
          "description": "Optional client-provided context fragments keyed by an opaque source identifier.",
          "type": [
            "object",
            "null"
          ]
        },
        "approvalPolicy": {
          "anyOf": [
            {
              "$ref": "#/definitions/AskForApproval"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override the approval policy for this turn and subsequent turns."
        },
        "approvalsReviewer": {
          "anyOf": [
            {
              "$ref": "#/definitions/ApprovalsReviewer"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override where approval requests are routed for review on this turn and subsequent turns."
        },
        "clientUserMessageId": {
          "type": [
            "string",
            "null"
          ]
        },
        "collaborationMode": {
          "anyOf": [
            {
              "$ref": "#/definitions/CollaborationMode"
            },
            {
              "type": "null"
            }
          ],
          "description": "EXPERIMENTAL - Set a pre-set collaboration mode. Takes precedence over model, reasoning_effort, and developer instructions if set.\n\nFor `collaboration_mode.settings.developer_instructions`, `null` means \"use the built-in instructions for the selected mode\"."
        },
        "cwd": {
          "description": "Override the working directory for this turn and subsequent turns.",
          "type": [
            "string",
            "null"
          ]
        },
        "effort": {
          "anyOf": [
            {
              "$ref": "#/definitions/ReasoningEffort"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override the reasoning effort for this turn and subsequent turns."
        },
        "environments": {
          "description": "Optional environments for this turn and subsequent turns.\n\nOmitted uses the thread sticky environments. Empty disables environment access for this turn. Non-empty selects the first environment as the current turn environment for this turn.",
          "items": {
            "$ref": "#/definitions/TurnEnvironmentParams"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "input": {
          "items": {
            "$ref": "#/definitions/UserInput"
          },
          "type": "array"
        },
        "model": {
          "description": "Override the model for this turn and subsequent turns.",
          "type": [
            "string",
            "null"
          ]
        },
        "multiAgentMode": {
          "anyOf": [
            {
              "$ref": "#/definitions/MultiAgentMode"
            },
            {
              "type": "null"
            }
          ],
          "description": "@deprecated Ignored. Use `effort: \"ultra\"` for proactive multi-agent behavior."
        },
        "outputSchema": {
          "description": "Optional JSON Schema used to constrain the final assistant message for this turn."
        },
        "permissions": {
          "description": "Select a named permissions profile id for this turn and subsequent turns. Cannot be combined with `sandboxPolicy`.",
          "type": [
            "string",
            "null"
          ]
        },
        "personality": {
          "anyOf": [
            {
              "$ref": "#/definitions/Personality"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override the personality for this turn and subsequent turns."
        },
        "responsesapiClientMetadata": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Optional metadata to enrich Codex's ResponsesAPI turn metadata.\n\nEntries are flattened into the JSON string sent as `client_metadata[\"x-codex-turn-metadata\"]` on ResponsesAPI HTTP and websocket requests.\n\nThey are not sent as top-level ResponsesAPI `client_metadata` keys, and reserved keys such as `session_id`, `thread_id`, `turn_id`, and `window_id` cannot be overridden.",
          "type": [
            "object",
            "null"
          ]
        },
        "runtimeWorkspaceRoots": {
          "description": "Replace the thread's runtime workspace roots for this turn and subsequent turns. Paths must be absolute.",
          "items": {
            "$ref": "#/definitions/AbsolutePathBuf"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "sandboxPolicy": {
          "anyOf": [
            {
              "$ref": "#/definitions/SandboxPolicy"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override the sandbox policy for this turn and subsequent turns."
        },
        "serviceTier": {
          "description": "Override the service tier for this turn and subsequent turns.",
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "anyOf": [
            {
              "$ref": "#/definitions/ReasoningSummary"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override the reasoning summary for this turn and subsequent turns."
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "input",
        "threadId"
      ],
      "type": "object"
    },
    "TurnSteerParams": {
      "properties": {
        "additionalContext": {
          "additionalProperties": {
            "$ref": "#/definitions/AdditionalContextEntry"
          },
          "description": "Optional client-provided context fragments keyed by an opaque source identifier.",
          "type": [
            "object",
            "null"
          ]
        },
        "clientUserMessageId": {
          "type": [
            "string",
            "null"
          ]
        },
        "expectedTurnId": {
          "description": "Required active turn id precondition. The request fails when it does not match the currently active turn.",
          "type": "string"
        },
        "input": {
          "items": {
            "$ref": "#/definitions/UserInput"
          },
          "type": "array"
        },
        "responsesapiClientMetadata": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Optional metadata to enrich Codex's ResponsesAPI turn metadata.\n\nEntries are flattened into the JSON string sent as `client_metadata[\"x-codex-turn-metadata\"]` on ResponsesAPI HTTP and websocket requests.\n\nThey are not sent as top-level ResponsesAPI `client_metadata` keys, and reserved keys such as `session_id`, `thread_id`, `turn_id`, and `window_id` cannot be overridden.",
          "type": [
            "object",
            "null"
          ]
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "expectedTurnId",
        "input",
        "threadId"
      ],
      "type": "object"
    },
    "UserInput": {
      "oneOf": [
        {
          "properties": {
            "text": {
              "type": "string"
            },
            "text_elements": {
              "default": [],
              "description": "UI-defined spans within `text` used to render or persist special elements.",
              "items": {
                "$ref": "#/definitions/TextElement"
              },
              "type": "array"
            },
            "type": {
              "enum": [
                "text"
              ],
              "title": "TextUserInputType",
              "type": "string"
            }
          },
          "required": [
            "text",
            "type"
          ],
          "title": "TextUserInput",
          "type": "object"
        },
        {
          "properties": {
            "detail": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ImageDetail"
                },
                {
                  "type": "null"
                }
              ],
              "default": null
            },
            "type": {
              "enum": [
                "image"
              ],
              "title": "ImageUserInputType",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "type",
            "url"
          ],
          "title": "ImageUserInput",
          "type": "object"
        },
        {
          "properties": {
            "detail": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ImageDetail"
                },
                {
                  "type": "null"
                }
              ],
              "default": null
            },
            "path": {
              "type": "string"
            },
            "type": {
              "enum": [
                "localImage"
              ],
              "title": "LocalImageUserInputType",
              "type": "string"
            }
          },
          "required": [
            "path",
            "type"
          ],
          "title": "LocalImageUserInput",
          "type": "object"
        },
        {
          "properties": {
            "type": {
              "enum": [
                "audio"
              ],
              "title": "AudioUserInputType",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "type",
            "url"
          ],
          "title": "AudioUserInput",
          "type": "object"
        },
        {
          "properties": {
            "path": {
              "type": "string"
            },
            "type": {
              "enum": [
                "localAudio"
              ],
              "title": "LocalAudioUserInputType",
              "type": "string"
            }
          },
          "required": [
            "path",
            "type"
          ],
          "title": "LocalAudioUserInput",
          "type": "object"
        },
        {
          "properties": {
            "name": {
              "type": "string"
            },
            "path": {
              "type": "string"
            },
            "type": {
              "enum": [
                "skill"
              ],
              "title": "SkillUserInputType",
              "type": "string"
            }
          },
          "required": [
            "name",
            "path",
            "type"
          ],
          "title": "SkillUserInput",
          "type": "object"
        },
        {
          "properties": {
            "name": {
              "type": "string"
            },
            "path": {
              "type": "string"
            },
            "type": {
              "enum": [
                "mention"
              ],
              "title": "MentionUserInputType",
              "type": "string"
            }
          },
          "required": [
            "name",
            "path",
            "type"
          ],
          "title": "MentionUserInput",
          "type": "object"
        }
      ]
    },
    "WindowsSandboxSetupMode": {
      "enum": [
        "elevated",
        "unelevated"
      ],
      "type": "string"
    },
    "WindowsSandboxSetupStartParams": {
      "properties": {
        "cwd": {
          "anyOf": [
            {
              "$ref": "#/definitions/AbsolutePathBuf"
            },
            {
              "type": "null"
            }
          ]
        },
        "mode": {
          "$ref": "#/definitions/WindowsSandboxSetupMode"
        }
      },
      "required": [
        "mode"
      ],
      "type": "object"
    }
  },
  "description": "Request from the client to the server.",
  "oneOf": [
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "initialize"
          ],
          "title": "InitializeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/InitializeParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "InitializeRequest",
      "type": "object"
    },
    {
      "description": "Read content-free, process-local diagnostics.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "server/diagnostics"
          ],
          "title": "Server/diagnosticsRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ServerDiagnosticsParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Server/diagnosticsRequest",
      "type": "object"
    },
    {
      "description": "NEW APIs",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/start"
          ],
          "title": "Thread/startRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadStartParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/startRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/resume"
          ],
          "title": "Thread/resumeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadResumeParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/resumeRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/fork"
          ],
          "title": "Thread/forkRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadForkParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/forkRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/archive"
          ],
          "title": "Thread/archiveRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadArchiveParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/archiveRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/delete"
          ],
          "title": "Thread/deleteRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadDeleteParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/deleteRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/unsubscribe"
          ],
          "title": "Thread/unsubscribeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadUnsubscribeParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/unsubscribeRequest",
      "type": "object"
    },
    {
      "description": "Increment the thread-local out-of-band elicitation counter.\n\nThis is used by external helpers to pause timeout accounting while a user approval or other elicitation is pending outside the app-server request flow.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/increment_elicitation"
          ],
          "title": "Thread/incrementElicitationRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadIncrementElicitationParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/incrementElicitationRequest",
      "type": "object"
    },
    {
      "description": "Decrement the thread-local out-of-band elicitation counter.\n\nWhen the count reaches zero, timeout accounting resumes for the thread.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/decrement_elicitation"
          ],
          "title": "Thread/decrementElicitationRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadDecrementElicitationParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/decrementElicitationRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/name/set"
          ],
          "title": "Thread/name/setRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadSetNameParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/name/setRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/goal/set"
          ],
          "title": "Thread/goal/setRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadGoalSetParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/goal/setRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/goal/get"
          ],
          "title": "Thread/goal/getRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadGoalGetParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/goal/getRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/goal/clear"
          ],
          "title": "Thread/goal/clearRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadGoalClearParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/goal/clearRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/queue/add"
          ],
          "title": "Thread/queue/addRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadQueueAddParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/queue/addRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/queue/list"
          ],
          "title": "Thread/queue/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadQueueListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/queue/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/queue/update"
          ],
          "title": "Thread/queue/updateRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadQueueUpdateParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/queue/updateRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/queue/delete"
          ],
          "title": "Thread/queue/deleteRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadQueueDeleteParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/queue/deleteRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/queue/reorder"
          ],
          "title": "Thread/queue/reorderRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadQueueReorderParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/queue/reorderRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/queue/start"
          ],
          "title": "Thread/queue/startRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadQueueStartParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/queue/startRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/metadata/update"
          ],
          "title": "Thread/metadata/updateRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadMetadataUpdateParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/metadata/updateRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/section/move"
          ],
          "title": "Thread/section/moveRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadSectionMoveParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/section/moveRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/settings/update"
          ],
          "title": "Thread/settings/updateRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadSettingsUpdateParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/settings/updateRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/memoryMode/set"
          ],
          "title": "Thread/memoryMode/setRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadMemoryModeSetParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/memoryMode/setRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "memory/reset"
          ],
          "title": "Memory/resetRequestMethod",
          "type": "string"
        },
        "params": {
          "type": "null"
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "Memory/resetRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/unarchive"
          ],
          "title": "Thread/unarchiveRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadUnarchiveParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/unarchiveRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/compact/start"
          ],
          "title": "Thread/compact/startRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadCompactStartParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/compact/startRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/shellCommand"
          ],
          "title": "Thread/shellCommandRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadShellCommandParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/shellCommandRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/approveGuardianDeniedAction"
          ],
          "title": "Thread/approveGuardianDeniedActionRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadApproveGuardianDeniedActionParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/approveGuardianDeniedActionRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/backgroundTerminals/clean"
          ],
          "title": "Thread/backgroundTerminals/cleanRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadBackgroundTerminalsCleanParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/backgroundTerminals/cleanRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/backgroundTerminals/list"
          ],
          "title": "Thread/backgroundTerminals/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadBackgroundTerminalsListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/backgroundTerminals/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/backgroundTerminals/terminate"
          ],
          "title": "Thread/backgroundTerminals/terminateRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadBackgroundTerminalsTerminateParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/backgroundTerminals/terminateRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/rollback"
          ],
          "title": "Thread/rollbackRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadRollbackParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/rollbackRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/revert"
          ],
          "title": "Thread/revertRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadRevertParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/revertRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/list"
          ],
          "title": "Thread/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "project/list"
          ],
          "title": "Project/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ProjectListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Project/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "project/read"
          ],
          "title": "Project/readRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ProjectReadParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Project/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "project/create"
          ],
          "title": "Project/createRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ProjectCreateParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Project/createRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "project/import"
          ],
          "title": "Project/importRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ProjectImportParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Project/importRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "project/update"
          ],
          "title": "Project/updateRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ProjectUpdateParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Project/updateRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "project/move"
          ],
          "title": "Project/moveRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ProjectMoveParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Project/moveRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "project/delete"
          ],
          "title": "Project/deleteRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ProjectDeleteParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Project/deleteRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "threadSection/list"
          ],
          "title": "ThreadSection/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadSectionListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "ThreadSection/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "threadSection/create"
          ],
          "title": "ThreadSection/createRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadSectionCreateParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "ThreadSection/createRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "threadSection/update"
          ],
          "title": "ThreadSection/updateRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadSectionUpdateParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "ThreadSection/updateRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "threadSection/delete"
          ],
          "title": "ThreadSection/deleteRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadSectionDeleteParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "ThreadSection/deleteRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/search"
          ],
          "title": "Thread/searchRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadSearchParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/searchRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/searchOccurrences"
          ],
          "title": "Thread/searchOccurrencesRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadSearchOccurrencesParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/searchOccurrencesRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/loaded/list"
          ],
          "title": "Thread/loaded/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadLoadedListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/loaded/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/read"
          ],
          "title": "Thread/readRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadReadParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/turns/list"
          ],
          "title": "Thread/turns/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadTurnsListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/turns/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/items/list"
          ],
          "title": "Thread/items/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadItemsListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/items/listRequest",
      "type": "object"
    },
    {
      "description": "Append raw Responses API items to the thread history without starting a user turn.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/inject_items"
          ],
          "title": "Thread/injectItemsRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadInjectItemsParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/injectItemsRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "skills/list"
          ],
          "title": "Skills/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/SkillsListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Skills/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "skills/extraRoots/set"
          ],
          "title": "Skills/extraRoots/setRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/SkillsExtraRootsSetParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Skills/extraRoots/setRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "hooks/list"
          ],
          "title": "Hooks/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/HooksListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Hooks/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "marketplace/add"
          ],
          "title": "Marketplace/addRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/MarketplaceAddParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Marketplace/addRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "marketplace/remove"
          ],
          "title": "Marketplace/removeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/MarketplaceRemoveParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Marketplace/removeRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "marketplace/upgrade"
          ],
          "title": "Marketplace/upgradeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/MarketplaceUpgradeParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Marketplace/upgradeRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/list"
          ],
          "title": "Plugin/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/search"
          ],
          "title": "Plugin/searchRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginSearchParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/searchRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/installed"
          ],
          "title": "Plugin/installedRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginInstalledParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/installedRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/read"
          ],
          "title": "Plugin/readRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginReadParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/skill/read"
          ],
          "title": "Plugin/skill/readRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginSkillReadParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/skill/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/share/save"
          ],
          "title": "Plugin/share/saveRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginShareSaveParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/share/saveRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/share/updateTargets"
          ],
          "title": "Plugin/share/updateTargetsRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginShareUpdateTargetsParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/share/updateTargetsRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/share/list"
          ],
          "title": "Plugin/share/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginShareListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/share/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/share/checkout"
          ],
          "title": "Plugin/share/checkoutRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginShareCheckoutParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/share/checkoutRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/share/delete"
          ],
          "title": "Plugin/share/deleteRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginShareDeleteParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/share/deleteRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "app/read"
          ],
          "title": "App/readRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/AppsReadParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "App/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "app/list"
          ],
          "title": "App/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/AppsListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "App/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "app/installed"
          ],
          "title": "App/installedRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/AppsInstalledParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "App/installedRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fs/readFile"
          ],
          "title": "Fs/readFileRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FsReadFileParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Fs/readFileRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fs/writeFile"
          ],
          "title": "Fs/writeFileRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FsWriteFileParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Fs/writeFileRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fs/createDirectory"
          ],
          "title": "Fs/createDirectoryRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FsCreateDirectoryParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Fs/createDirectoryRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fs/getMetadata"
          ],
          "title": "Fs/getMetadataRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FsGetMetadataParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Fs/getMetadataRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fs/readDirectory"
          ],
          "title": "Fs/readDirectoryRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FsReadDirectoryParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Fs/readDirectoryRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fs/remove"
          ],
          "title": "Fs/removeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FsRemoveParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Fs/removeRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fs/copy"
          ],
          "title": "Fs/copyRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FsCopyParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Fs/copyRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fs/watch"
          ],
          "title": "Fs/watchRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FsWatchParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Fs/watchRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fs/unwatch"
          ],
          "title": "Fs/unwatchRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FsUnwatchParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Fs/unwatchRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "skills/config/write"
          ],
          "title": "Skills/config/writeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/SkillsConfigWriteParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Skills/config/writeRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/install"
          ],
          "title": "Plugin/installRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginInstallParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/installRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "plugin/uninstall"
          ],
          "title": "Plugin/uninstallRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PluginUninstallParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Plugin/uninstallRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "turn/start"
          ],
          "title": "Turn/startRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/TurnStartParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Turn/startRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "turn/steer"
          ],
          "title": "Turn/steerRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/TurnSteerParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Turn/steerRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "turn/interrupt"
          ],
          "title": "Turn/interruptRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/TurnInterruptParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Turn/interruptRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/realtime/start"
          ],
          "title": "Thread/realtime/startRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadRealtimeStartParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/realtime/startRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/realtime/appendAudio"
          ],
          "title": "Thread/realtime/appendAudioRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadRealtimeAppendAudioParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/realtime/appendAudioRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/realtime/appendText"
          ],
          "title": "Thread/realtime/appendTextRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadRealtimeAppendTextParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/realtime/appendTextRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/realtime/appendSpeech"
          ],
          "title": "Thread/realtime/appendSpeechRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadRealtimeAppendSpeechParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/realtime/appendSpeechRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/realtime/stop"
          ],
          "title": "Thread/realtime/stopRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadRealtimeStopParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/realtime/stopRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "thread/realtime/listVoices"
          ],
          "title": "Thread/realtime/listVoicesRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ThreadRealtimeListVoicesParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Thread/realtime/listVoicesRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "review/start"
          ],
          "title": "Review/startRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ReviewStartParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Review/startRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "model/list"
          ],
          "title": "Model/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ModelListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Model/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "modelProvider/capabilities/read"
          ],
          "title": "ModelProvider/capabilities/readRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ModelProviderCapabilitiesReadParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "ModelProvider/capabilities/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "experimentalFeature/list"
          ],
          "title": "ExperimentalFeature/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ExperimentalFeatureListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "ExperimentalFeature/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "permissionProfile/list"
          ],
          "title": "PermissionProfile/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/PermissionProfileListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "PermissionProfile/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "experimentalFeature/enablement/set"
          ],
          "title": "ExperimentalFeature/enablement/setRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ExperimentalFeatureEnablementSetParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "ExperimentalFeature/enablement/setRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "remoteControl/enable"
          ],
          "title": "RemoteControl/enableRequestMethod",
          "type": "string"
        },
        "params": {
          "anyOf": [
            {
              "$ref": "#/definitions/RemoteControlEnableParams"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "RemoteControl/enableRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "remoteControl/disable"
          ],
          "title": "RemoteControl/disableRequestMethod",
          "type": "string"
        },
        "params": {
          "anyOf": [
            {
              "$ref": "#/definitions/RemoteControlDisableParams"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "RemoteControl/disableRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "remoteControl/status/read"
          ],
          "title": "RemoteControl/status/readRequestMethod",
          "type": "string"
        },
        "params": {
          "type": "null"
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "RemoteControl/status/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "remoteControl/pairing/start"
          ],
          "title": "RemoteControl/pairing/startRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/RemoteControlPairingStartParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "RemoteControl/pairing/startRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "remoteControl/pairing/status"
          ],
          "title": "RemoteControl/pairing/statusRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/RemoteControlPairingStatusParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "RemoteControl/pairing/statusRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "remoteControl/client/list"
          ],
          "title": "RemoteControl/client/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/RemoteControlClientsListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "RemoteControl/client/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "remoteControl/client/revoke"
          ],
          "title": "RemoteControl/client/revokeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/RemoteControlClientsRevokeParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "RemoteControl/client/revokeRequest",
      "type": "object"
    },
    {
      "description": "Lists collaboration mode presets.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "collaborationMode/list"
          ],
          "title": "CollaborationMode/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/CollaborationModeListParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "CollaborationMode/listRequest",
      "type": "object"
    },
    {
      "description": "Test-only method used to validate experimental gating.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "mock/experimentalMethod"
          ],
          "title": "Mock/experimentalMethodRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/MockExperimentalMethodParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Mock/experimentalMethodRequest",
      "type": "object"
    },
    {
      "description": "Adds or replaces a remote environment by id for later selection.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "environment/add"
          ],
          "title": "Environment/addRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/EnvironmentAddParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Environment/addRequest",
      "type": "object"
    },
    {
      "description": "Reads information from a configured execution environment.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "environment/info"
          ],
          "title": "Environment/infoRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/EnvironmentInfoParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Environment/infoRequest",
      "type": "object"
    },
    {
      "description": "Reads the current status of a configured execution environment.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "environment/status"
          ],
          "title": "Environment/statusRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/EnvironmentStatusParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Environment/statusRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "mcpServer/oauth/login"
          ],
          "title": "McpServer/oauth/loginRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/McpServerOauthLoginParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "McpServer/oauth/loginRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "config/mcpServer/reload"
          ],
          "title": "Config/mcpServer/reloadRequestMethod",
          "type": "string"
        },
        "params": {
          "type": "null"
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "Config/mcpServer/reloadRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "mcpServerStatus/list"
          ],
          "title": "McpServerStatus/listRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ListMcpServerStatusParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "McpServerStatus/listRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "mcpServer/resource/read"
          ],
          "title": "McpServer/resource/readRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/McpResourceReadParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "McpServer/resource/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "mcpServer/event/stream/start"
          ],
          "title": "McpServer/event/stream/startRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/McpServerEventStreamStartParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "McpServer/event/stream/startRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "mcpServer/event/stream/stop"
          ],
          "title": "McpServer/event/stream/stopRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/McpServerEventStreamStopParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "McpServer/event/stream/stopRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "mcpServer/tool/call"
          ],
          "title": "McpServer/tool/callRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/McpServerToolCallParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "McpServer/tool/callRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "windowsSandbox/setupStart"
          ],
          "title": "WindowsSandbox/setupStartRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/WindowsSandboxSetupStartParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "WindowsSandbox/setupStartRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "windowsSandbox/readiness"
          ],
          "title": "WindowsSandbox/readinessRequestMethod",
          "type": "string"
        },
        "params": {
          "type": "null"
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "WindowsSandbox/readinessRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "account/login/start"
          ],
          "title": "Account/login/startRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/LoginAccountParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Account/login/startRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "account/bedrock/discover"
          ],
          "title": "Account/bedrock/discoverRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/BedrockDiscoverParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Account/bedrock/discoverRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "account/bedrock/setup"
          ],
          "title": "Account/bedrock/setupRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/BedrockSetupParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Account/bedrock/setupRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "account/login/cancel"
          ],
          "title": "Account/login/cancelRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/CancelLoginAccountParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Account/login/cancelRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "account/logout"
          ],
          "title": "Account/logoutRequestMethod",
          "type": "string"
        },
        "params": {
          "type": "null"
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "Account/logoutRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "account/rateLimits/read"
          ],
          "title": "Account/rateLimits/readRequestMethod",
          "type": "string"
        },
        "params": {
          "type": "null"
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "Account/rateLimits/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "account/rateLimitResetCredit/consume"
          ],
          "title": "Account/rateLimitResetCredit/consumeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ConsumeAccountRateLimitResetCreditParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Account/rateLimitResetCredit/consumeRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "account/usage/read"
          ],
          "title": "Account/usage/readRequestMethod",
          "type": "string"
        },
        "params": {
          "anyOf": [
            {
              "$ref": "#/definitions/GetAccountTokenUsageParams"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "Account/usage/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "account/workspaceMessages/read"
          ],
          "title": "Account/workspaceMessages/readRequestMethod",
          "type": "string"
        },
        "params": {
          "type": "null"
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "Account/workspaceMessages/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "account/sendAddCreditsNudgeEmail"
          ],
          "title": "Account/sendAddCreditsNudgeEmailRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/SendAddCreditsNudgeEmailParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Account/sendAddCreditsNudgeEmailRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "feedback/upload"
          ],
          "title": "Feedback/uploadRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FeedbackUploadParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Feedback/uploadRequest",
      "type": "object"
    },
    {
      "description": "Execute a standalone command (argv vector) under the server's sandbox.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "command/exec"
          ],
          "title": "Command/execRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/CommandExecParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Command/execRequest",
      "type": "object"
    },
    {
      "description": "Write stdin bytes to a running `command/exec` session or close stdin.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "command/exec/write"
          ],
          "title": "Command/exec/writeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/CommandExecWriteParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Command/exec/writeRequest",
      "type": "object"
    },
    {
      "description": "Terminate a running `command/exec` session by client-supplied `processId`.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "command/exec/terminate"
          ],
          "title": "Command/exec/terminateRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/CommandExecTerminateParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Command/exec/terminateRequest",
      "type": "object"
    },
    {
      "description": "Resize a running PTY-backed `command/exec` session by client-supplied `processId`.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "command/exec/resize"
          ],
          "title": "Command/exec/resizeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/CommandExecResizeParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Command/exec/resizeRequest",
      "type": "object"
    },
    {
      "description": "Spawn a standalone process (argv vector) without a Codex sandbox.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "process/spawn"
          ],
          "title": "Process/spawnRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ProcessSpawnParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Process/spawnRequest",
      "type": "object"
    },
    {
      "description": "Write stdin bytes to a running `process/spawn` session or close stdin.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "process/writeStdin"
          ],
          "title": "Process/writeStdinRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ProcessWriteStdinParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Process/writeStdinRequest",
      "type": "object"
    },
    {
      "description": "Terminate a running `process/spawn` session by client-supplied `processHandle`.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "process/kill"
          ],
          "title": "Process/killRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ProcessKillParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Process/killRequest",
      "type": "object"
    },
    {
      "description": "Resize a running PTY-backed `process/spawn` session by client-supplied `processHandle`.",
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "process/resizePty"
          ],
          "title": "Process/resizePtyRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ProcessResizePtyParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Process/resizePtyRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "config/read"
          ],
          "title": "Config/readRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ConfigReadParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Config/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "externalAgentConfig/detect"
          ],
          "title": "ExternalAgentConfig/detectRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ExternalAgentConfigDetectParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "ExternalAgentConfig/detectRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "externalAgentConfig/import"
          ],
          "title": "ExternalAgentConfig/importRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ExternalAgentConfigImportParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "ExternalAgentConfig/importRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "externalAgentConfig/import/recordHistory"
          ],
          "title": "ExternalAgentConfig/import/recordHistoryRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ExternalAgentConfigImportHistoryRecordParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "ExternalAgentConfig/import/recordHistoryRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "externalAgentConfig/import/readHistories"
          ],
          "title": "ExternalAgentConfig/import/readHistoriesRequestMethod",
          "type": "string"
        },
        "params": {
          "type": "null"
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "ExternalAgentConfig/import/readHistoriesRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "config/value/write"
          ],
          "title": "Config/value/writeRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ConfigValueWriteParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Config/value/writeRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "config/batchWrite"
          ],
          "title": "Config/batchWriteRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/ConfigBatchWriteParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Config/batchWriteRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "configRequirements/read"
          ],
          "title": "ConfigRequirements/readRequestMethod",
          "type": "string"
        },
        "params": {
          "type": "null"
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "ConfigRequirements/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "account/read"
          ],
          "title": "Account/readRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/GetAccountParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "Account/readRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fuzzyFileSearch"
          ],
          "title": "FuzzyFileSearchRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FuzzyFileSearchParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "FuzzyFileSearchRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fuzzyFileSearch/sessionStart"
          ],
          "title": "FuzzyFileSearch/sessionStartRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FuzzyFileSearchSessionStartParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "FuzzyFileSearch/sessionStartRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fuzzyFileSearch/sessionUpdate"
          ],
          "title": "FuzzyFileSearch/sessionUpdateRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FuzzyFileSearchSessionUpdateParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "FuzzyFileSearch/sessionUpdateRequest",
      "type": "object"
    },
    {
      "properties": {
        "id": {
          "$ref": "#/definitions/RequestId"
        },
        "method": {
          "enum": [
            "fuzzyFileSearch/sessionStop"
          ],
          "title": "FuzzyFileSearch/sessionStopRequestMethod",
          "type": "string"
        },
        "params": {
          "$ref": "#/definitions/FuzzyFileSearchSessionStopParams"
        }
      },
      "required": [
        "id",
        "method",
        "params"
      ],
      "title": "FuzzyFileSearch/sessionStopRequest",
      "type": "object"
    }
  ],
  "title": "ClientRequest"
}