{
  "$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"
    },
    "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"
    },
    "AskForApproval": {
      "oneOf": [
        {
          "enum": [
            "untrusted",
            "on-failure",
            "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"
        }
      ]
    },
    "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": {
              "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"
    },
    "CollaborationMode": {
      "description": "Collaboration mode for a Codex session.",
      "properties": {
        "mode": {
          "$ref": "#/definitions/ModeKind"
        },
        "settings": {
          "$ref": "#/definitions/Settings"
        }
      },
      "required": [
        "mode",
        "settings"
      ],
      "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"
          ]
        },
        "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 the updated user config into all loaded threads after writing.",
          "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": {
        "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": {
            "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"
        }
      ]
    },
    "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"
        }
      },
      "type": "object"
    },
    "ExternalAgentConfigImportParams": {
      "properties": {
        "migrationItems": {
          "items": {
            "$ref": "#/definitions/ExternalAgentConfigMigrationItem"
          },
          "type": "array"
        },
        "source": {
          "description": "Source product that produced the migration items. Missing means unspecified.",
          "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",
        "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": {
            "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"
    },
    "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"
    },
    "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"
        },
        "mcpServerOpenaiFormElicitation": {
          "description": "Allow downstream MCP servers to request OpenAI extended form elicitations.",
          "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"
    },
    "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": {
            "codexStreamlinedLogin": {
              "type": "boolean"
            },
            "type": {
              "enum": [
                "chatgpt"
              ],
              "title": "ChatgptLoginAccountParamsType",
              "type": "string"
            }
          },
          "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"
        }
      ]
    },
    "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": {
        "server": {
          "type": "string"
        },
        "threadId": {
          "type": [
            "string",
            "null"
          ]
        },
        "uri": {
          "type": "string"
        }
      },
      "required": [
        "server",
        "uri"
      ],
      "type": "object"
    },
    "McpServerMigration": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "McpServerOauthLoginParams": {
      "properties": {
        "name": {
          "type": "string"
        },
        "scopes": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "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"
        },
        "plugins": {
          "default": [],
          "items": {
            "$ref": "#/definitions/PluginsMigration"
          },
          "type": "array"
        },
        "sessions": {
          "default": [],
          "items": {
            "$ref": "#/definitions/SessionMigration"
          },
          "type": "array"
        },
        "subagents": {
          "default": [],
          "items": {
            "$ref": "#/definitions/SubagentMigration"
          },
          "type": "array"
        }
      },
      "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 whether the model should only spawn sub-agents after an explicit user request or may delegate proactively when doing so would help.",
      "enum": [
        "explicitRequestOnly",
        "proactive"
      ],
      "type": "string"
    },
    "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": {
        "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"
          ]
        },
        "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"
    },
    "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"
      ],
      "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"
    },
    "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"
    },
    "RealtimeConversationVersion": {
      "enum": [
        "v1",
        "v2"
      ],
      "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"
        }
      ]
    },
    "RemoteControlDisableParams": {
      "properties": {
        "ephemeral": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "RemoteControlEnableParams": {
      "properties": {
        "ephemeral": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "RequestId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "format": "int64",
          "type": "integer"
        }
      ]
    },
    "ResponseItem": {
      "oneOf": [
        {
          "properties": {
            "content": {
              "items": {
                "$ref": "#/definitions/ContentItem"
              },
              "type": "array"
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "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"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "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"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "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"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "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"
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "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"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "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"
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "type": "null"
                }
              ]
            },
            "output": {
              "$ref": "#/definitions/FunctionCallOutputBody"
            },
            "type": {
              "enum": [
                "function_call_output"
              ],
              "title": "FunctionCallOutputResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "call_id",
            "output",
            "type"
          ],
          "title": "FunctionCallOutputResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "call_id": {
              "type": "string"
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "input": {
              "type": "string"
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "type": "null"
                }
              ]
            },
            "name": {
              "type": "string"
            },
            "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"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "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"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "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"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "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"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "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"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": {
              "enum": [
                "compaction"
              ],
              "title": "CompactionResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "encrypted_content",
            "type"
          ],
          "title": "CompactionResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": {
              "enum": [
                "compaction_trigger"
              ],
              "title": "CompactionTriggerResponseItemType",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "title": "CompactionTriggerResponseItem",
          "type": "object"
        },
        {
          "properties": {
            "encrypted_content": {
              "type": [
                "string",
                "null"
              ]
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "metadata": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ResponseItemMetadata"
                },
                {
                  "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"
        }
      ]
    },
    "ResponseItemMetadata": {
      "properties": {
        "source_call_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "turn_id": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "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"
    },
    "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"
    },
    "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"
    },
    "ThreadCompactStartParams": {
      "properties": {
        "threadId": {
          "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"
          ]
        },
        "config": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "cwd": {
          "type": [
            "string",
            "null"
          ]
        },
        "developerInstructions": {
          "type": [
            "string",
            "null"
          ]
        },
        "ephemeral": {
          "type": "boolean"
        },
        "model": {
          "description": "Configuration overrides for the forked thread, if any.",
          "type": [
            "string",
            "null"
          ]
        },
        "modelProvider": {
          "type": [
            "string",
            "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"
    },
    "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"
    },
    "ThreadListCwdFilter": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      ]
    },
    "ThreadListParams": {
      "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"
          ]
        },
        "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"
          ]
        },
        "searchTerm": {
          "description": "Optional substring filter for the extracted thread title.",
          "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"
    },
    "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."
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "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"
    },
    "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"
    },
    "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"
        }
      ]
    },
    "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"
          ]
        },
        "model": {
          "description": "Configuration overrides for the resumed thread, if any.",
          "type": [
            "string",
            "null"
          ]
        },
        "modelProvider": {
          "type": [
            "string",
            "null"
          ]
        },
        "personality": {
          "anyOf": [
            {
              "$ref": "#/definitions/Personality"
            },
            {
              "type": "null"
            }
          ]
        },
        "sandbox": {
          "anyOf": [
            {
              "$ref": "#/definitions/SandboxMode"
            },
            {
              "type": "null"
            }
          ]
        },
        "serviceTier": {
          "type": [
            "string",
            "null"
          ]
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "threadId"
      ],
      "type": "object"
    },
    "ThreadRollbackParams": {
      "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"
    },
    "ThreadSetNameParams": {
      "properties": {
        "name": {
          "type": "string"
        },
        "threadId": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "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"
      ],
      "type": "string"
    },
    "ThreadSource": {
      "type": "string"
    },
    "ThreadSourceKind": {
      "enum": [
        "cli",
        "vscode",
        "exec",
        "appServer",
        "subAgent",
        "subAgentReview",
        "subAgentCompact",
        "subAgentThreadSpawn",
        "subAgentOther",
        "unknown"
      ],
      "type": "string"
    },
    "ThreadStartParams": {
      "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"
          ]
        },
        "ephemeral": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "model": {
          "type": [
            "string",
            "null"
          ]
        },
        "modelProvider": {
          "type": [
            "string",
            "null"
          ]
        },
        "personality": {
          "anyOf": [
            {
              "$ref": "#/definitions/Personality"
            },
            {
              "type": "null"
            }
          ]
        },
        "sandbox": {
          "anyOf": [
            {
              "$ref": "#/definitions/SandboxMode"
            },
            {
              "type": "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"
    },
    "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"
        }
      },
      "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": {
        "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"
          ]
        },
        "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."
        },
        "input": {
          "items": {
            "$ref": "#/definitions/UserInput"
          },
          "type": "array"
        },
        "model": {
          "description": "Override the model for this turn and subsequent turns.",
          "type": [
            "string",
            "null"
          ]
        },
        "outputSchema": {
          "description": "Optional JSON Schema used to constrain the final assistant message for this turn."
        },
        "personality": {
          "anyOf": [
            {
              "$ref": "#/definitions/Personality"
            },
            {
              "type": "null"
            }
          ],
          "description": "Override the personality for this turn and subsequent turns."
        },
        "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": {
        "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"
        },
        "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": {
            "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": "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"
    },
    {
      "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/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/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/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/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": [
            "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"
    },
    {
      "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/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/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": [
            "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": [
            "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": [
            "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/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/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": {
          "type": "null"
        }
      },
      "required": [
        "id",
        "method"
      ],
      "title": "Account/usage/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"
    },
    {
      "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/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"
    }
  ],
  "title": "ClientRequest"
}