2026-02-01 23:38:43 -08:00
{
"$schema" : "http://json-schema.org/draft-07/schema#" ,
"definitions" : {
"AccountLoginCompletedNotification" : {
"properties" : {
"error" : {
"type" : [
"string" ,
"null"
]
} ,
"loginId" : {
"type" : [
"string" ,
"null"
]
} ,
"success" : {
"type" : "boolean"
}
} ,
"required" : [
"success"
] ,
"type" : "object"
} ,
"AccountRateLimitsUpdatedNotification" : {
"properties" : {
"rateLimits" : {
"$ref" : "#/definitions/RateLimitSnapshot"
}
} ,
"required" : [
"rateLimits"
] ,
"type" : "object"
} ,
"AccountUpdatedNotification" : {
"properties" : {
"authMode" : {
"anyOf" : [
{
"$ref" : "#/definitions/AuthMode"
} ,
{
"type" : "null"
}
]
}
} ,
"type" : "object"
} ,
"AgentMessageDeltaNotification" : {
"properties" : {
"delta" : {
"type" : "string"
} ,
"itemId" : {
"type" : "string"
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"delta" ,
"itemId" ,
"threadId" ,
"turnId"
] ,
"type" : "object"
} ,
2026-02-17 11:45:04 -08:00
"AppBranding" : {
"description" : "EXPERIMENTAL - app metadata returned by app-list APIs." ,
"properties" : {
"category" : {
"type" : [
"string" ,
"null"
]
} ,
"developer" : {
"type" : [
"string" ,
"null"
]
} ,
"isDiscoverableApp" : {
"type" : "boolean"
} ,
"privacyPolicy" : {
"type" : [
"string" ,
"null"
]
} ,
"termsOfService" : {
"type" : [
"string" ,
"null"
]
} ,
"website" : {
"type" : [
"string" ,
"null"
]
}
} ,
"required" : [
"isDiscoverableApp"
] ,
"type" : "object"
} ,
2026-02-08 15:24:56 -08:00
"AppInfo" : {
"description" : "EXPERIMENTAL - app metadata returned by app-list APIs." ,
"properties" : {
2026-02-17 11:45:04 -08:00
"appMetadata" : {
"anyOf" : [
{
"$ref" : "#/definitions/AppMetadata"
} ,
{
"type" : "null"
}
]
} ,
"branding" : {
"anyOf" : [
{
"$ref" : "#/definitions/AppBranding"
} ,
{
"type" : "null"
}
]
} ,
2026-02-08 15:24:56 -08:00
"description" : {
"type" : [
"string" ,
"null"
]
} ,
"distributionChannel" : {
"type" : [
"string" ,
"null"
]
} ,
"id" : {
"type" : "string"
} ,
"installUrl" : {
"type" : [
"string" ,
"null"
]
} ,
"isAccessible" : {
"default" : false ,
"type" : "boolean"
} ,
2026-02-12 16:30:52 -08:00
"isEnabled" : {
"default" : true ,
"description" : "Whether this app is enabled in config.toml. Example: ```toml [apps.bad_app] enabled = false ```" ,
"type" : "boolean"
} ,
2026-02-17 11:45:04 -08:00
"labels" : {
"additionalProperties" : {
"type" : "string"
} ,
"type" : [
"object" ,
"null"
]
} ,
2026-02-08 15:24:56 -08:00
"logoUrl" : {
"type" : [
"string" ,
"null"
]
} ,
"logoUrlDark" : {
"type" : [
"string" ,
"null"
]
} ,
"name" : {
"type" : "string"
}
} ,
"required" : [
"id" ,
"name"
] ,
"type" : "object"
} ,
"AppListUpdatedNotification" : {
"description" : "EXPERIMENTAL - notification emitted when the app list changes." ,
"properties" : {
"data" : {
"items" : {
"$ref" : "#/definitions/AppInfo"
} ,
"type" : "array"
}
} ,
"required" : [
"data"
] ,
"type" : "object"
} ,
2026-02-17 11:45:04 -08:00
"AppMetadata" : {
"properties" : {
"categories" : {
"items" : {
"type" : "string"
} ,
"type" : [
"array" ,
"null"
]
} ,
"developer" : {
"type" : [
"string" ,
"null"
]
} ,
"firstPartyRequiresInstall" : {
"type" : [
"boolean" ,
"null"
]
} ,
"firstPartyType" : {
"type" : [
"string" ,
"null"
]
} ,
"review" : {
"anyOf" : [
{
"$ref" : "#/definitions/AppReview"
} ,
{
"type" : "null"
}
]
} ,
"screenshots" : {
"items" : {
"$ref" : "#/definitions/AppScreenshot"
} ,
"type" : [
"array" ,
"null"
]
} ,
"seoDescription" : {
"type" : [
"string" ,
"null"
]
} ,
"showInComposerWhenUnlinked" : {
"type" : [
"boolean" ,
"null"
]
} ,
"subCategories" : {
"items" : {
"type" : "string"
} ,
"type" : [
"array" ,
"null"
]
} ,
"version" : {
"type" : [
"string" ,
"null"
]
} ,
"versionId" : {
"type" : [
"string" ,
"null"
]
} ,
"versionNotes" : {
"type" : [
"string" ,
"null"
]
}
} ,
"type" : "object"
} ,
"AppReview" : {
"properties" : {
"status" : {
"type" : "string"
}
} ,
"required" : [
"status"
] ,
"type" : "object"
} ,
"AppScreenshot" : {
"properties" : {
"fileId" : {
"type" : [
"string" ,
"null"
]
} ,
"url" : {
"type" : [
"string" ,
"null"
]
} ,
"userPrompt" : {
"type" : "string"
}
} ,
"required" : [
"userPrompt"
] ,
"type" : "object"
} ,
2026-02-01 23:38:43 -08:00
"AuthMode" : {
"description" : "Authentication mode for OpenAI-backed providers." ,
"oneOf" : [
{
"description" : "OpenAI API key provided by the caller and stored by Codex." ,
"enum" : [
"apikey"
] ,
"type" : "string"
} ,
{
"description" : "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex)." ,
"enum" : [
"chatgpt"
] ,
"type" : "string"
} ,
{
"description" : "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app." ,
"enum" : [
"chatgptAuthTokens"
] ,
"type" : "string"
}
]
} ,
"ByteRange" : {
"properties" : {
"end" : {
"format" : "uint" ,
"minimum" : 0.0 ,
"type" : "integer"
} ,
"start" : {
"format" : "uint" ,
"minimum" : 0.0 ,
"type" : "integer"
}
} ,
"required" : [
"end" ,
"start"
] ,
"type" : "object"
} ,
"CodexErrorInfo" : {
"description" : "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant." ,
"oneOf" : [
{
"enum" : [
"contextWindowExceeded" ,
"usageLimitExceeded" ,
2026-02-11 17:16:27 -08:00
"serverOverloaded" ,
2026-02-01 23:38:43 -08:00
"internalServerError" ,
"unauthorized" ,
"badRequest" ,
"threadRollbackFailed" ,
"sandboxError" ,
"other"
] ,
"type" : "string"
} ,
{
"additionalProperties" : false ,
"properties" : {
"httpConnectionFailed" : {
"properties" : {
"httpStatusCode" : {
"format" : "uint16" ,
"minimum" : 0.0 ,
"type" : [
"integer" ,
"null"
]
}
} ,
"type" : "object"
}
} ,
"required" : [
"httpConnectionFailed"
] ,
"title" : "HttpConnectionFailedCodexErrorInfo" ,
"type" : "object"
} ,
{
"additionalProperties" : false ,
"description" : "Failed to connect to the response SSE stream." ,
"properties" : {
"responseStreamConnectionFailed" : {
"properties" : {
"httpStatusCode" : {
"format" : "uint16" ,
"minimum" : 0.0 ,
"type" : [
"integer" ,
"null"
]
}
} ,
"type" : "object"
}
} ,
"required" : [
"responseStreamConnectionFailed"
] ,
"title" : "ResponseStreamConnectionFailedCodexErrorInfo" ,
"type" : "object"
} ,
{
"additionalProperties" : false ,
"description" : "The response SSE stream disconnected in the middle of a turn before completion." ,
"properties" : {
"responseStreamDisconnected" : {
"properties" : {
"httpStatusCode" : {
"format" : "uint16" ,
"minimum" : 0.0 ,
"type" : [
"integer" ,
"null"
]
}
} ,
"type" : "object"
}
} ,
"required" : [
"responseStreamDisconnected"
] ,
"title" : "ResponseStreamDisconnectedCodexErrorInfo" ,
"type" : "object"
} ,
{
"additionalProperties" : false ,
"description" : "Reached the retry limit for responses." ,
"properties" : {
"responseTooManyFailedAttempts" : {
"properties" : {
"httpStatusCode" : {
"format" : "uint16" ,
"minimum" : 0.0 ,
"type" : [
"integer" ,
"null"
]
}
} ,
"type" : "object"
}
} ,
"required" : [
"responseTooManyFailedAttempts"
] ,
"title" : "ResponseTooManyFailedAttemptsCodexErrorInfo" ,
"type" : "object"
}
]
} ,
2026-02-20 21:36:12 -08:00
"CollabAgentState" : {
"properties" : {
"message" : {
"type" : [
"string" ,
"null"
]
} ,
"status" : {
"$ref" : "#/definitions/CollabAgentStatus"
}
} ,
"required" : [
"status"
] ,
"type" : "object"
} ,
"CollabAgentStatus" : {
"enum" : [
"pendingInit" ,
"running" ,
"completed" ,
"errored" ,
"shutdown" ,
"notFound"
] ,
"type" : "string"
} ,
"CollabAgentTool" : {
"enum" : [
"spawnAgent" ,
"sendInput" ,
"resumeAgent" ,
"wait" ,
"closeAgent"
] ,
"type" : "string"
} ,
"CollabAgentToolCallStatus" : {
"enum" : [
"inProgress" ,
"completed" ,
"failed"
] ,
"type" : "string"
} ,
"CommandAction" : {
2026-02-01 23:38:43 -08:00
"oneOf" : [
{
2026-02-20 21:36:12 -08:00
"properties" : {
"command" : {
"type" : "string"
} ,
"name" : {
"type" : "string"
} ,
"path" : {
"type" : "string"
} ,
"type" : {
"enum" : [
"read"
] ,
"title" : "ReadCommandActionType" ,
"type" : "string"
}
} ,
"required" : [
"command" ,
"name" ,
"path" ,
"type"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "ReadCommandAction" ,
"type" : "object"
2026-02-01 23:38:43 -08:00
} ,
{
"properties" : {
2026-02-20 21:36:12 -08:00
"command" : {
"type" : "string"
} ,
"path" : {
"type" : [
"string" ,
"null"
]
} ,
"type" : {
"enum" : [
"listFiles"
] ,
"title" : "ListFilesCommandActionType" ,
"type" : "string"
2026-02-01 23:38:43 -08:00
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"command" ,
"type"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "ListFilesCommandAction" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
"command" : {
"type" : "string"
} ,
"path" : {
"type" : [
"string" ,
"null"
]
} ,
"query" : {
"type" : [
"string" ,
"null"
]
} ,
"type" : {
"enum" : [
"search"
] ,
"title" : "SearchCommandActionType" ,
"type" : "string"
}
} ,
"required" : [
"command" ,
"type"
] ,
"title" : "SearchCommandAction" ,
"type" : "object"
} ,
{
"properties" : {
"command" : {
"type" : "string"
} ,
"type" : {
"enum" : [
"unknown"
] ,
"title" : "UnknownCommandActionType" ,
"type" : "string"
}
} ,
"required" : [
"command" ,
"type"
] ,
"title" : "UnknownCommandAction" ,
"type" : "object"
}
]
} ,
"CommandExecutionOutputDeltaNotification" : {
"properties" : {
"delta" : {
"type" : "string"
} ,
"itemId" : {
"type" : "string"
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"delta" ,
"itemId" ,
"threadId" ,
"turnId"
] ,
"type" : "object"
} ,
"CommandExecutionStatus" : {
"enum" : [
"inProgress" ,
"completed" ,
"failed" ,
"declined"
] ,
"type" : "string"
} ,
"ConfigWarningNotification" : {
"properties" : {
"details" : {
"description" : "Optional extra guidance or error details." ,
"type" : [
"string" ,
"null"
]
} ,
"path" : {
"description" : "Optional path to the config file that triggered the warning." ,
"type" : [
"string" ,
"null"
]
} ,
"range" : {
"anyOf" : [
{
"$ref" : "#/definitions/TextRange"
} ,
{
"type" : "null"
}
] ,
"description" : "Optional range for the error location inside the config file."
} ,
"summary" : {
"description" : "Concise summary of the warning." ,
"type" : "string"
}
} ,
"required" : [
"summary"
] ,
"type" : "object"
} ,
2026-02-20 21:36:12 -08:00
"ContextCompactedNotification" : {
"description" : "Deprecated: Use `ContextCompaction` item type instead." ,
"properties" : {
"threadId" : {
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"threadId" ,
"turnId"
] ,
"type" : "object"
} ,
"CreditsSnapshot" : {
"properties" : {
"balance" : {
"type" : [
"string" ,
"null"
]
} ,
"hasCredits" : {
"type" : "boolean"
} ,
"unlimited" : {
"type" : "boolean"
}
} ,
"required" : [
"hasCredits" ,
"unlimited"
] ,
"type" : "object"
} ,
2026-02-20 21:36:12 -08:00
"DeprecationNoticeNotification" : {
2026-02-01 23:38:43 -08:00
"properties" : {
2026-02-20 21:36:12 -08:00
"details" : {
"description" : "Optional extra guidance, such as migration steps or rationale." ,
2026-02-01 23:38:43 -08:00
"type" : [
"string" ,
"null"
]
} ,
2026-02-20 21:36:12 -08:00
"summary" : {
"description" : "Concise summary of what is deprecated." ,
"type" : "string"
}
} ,
"required" : [
"summary"
] ,
"type" : "object"
} ,
"ErrorNotification" : {
"properties" : {
"error" : {
"$ref" : "#/definitions/TurnError"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
} ,
"willRetry" : {
2026-02-01 23:38:43 -08:00
"type" : "boolean"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"error" ,
"threadId" ,
"turnId" ,
"willRetry"
] ,
"type" : "object"
} ,
"FileChangeOutputDeltaNotification" : {
"properties" : {
"delta" : {
"type" : "string"
} ,
"itemId" : {
"type" : "string"
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"delta" ,
"itemId" ,
"threadId" ,
"turnId"
] ,
"type" : "object"
} ,
"FileUpdateChange" : {
"properties" : {
"diff" : {
"type" : "string"
} ,
"kind" : {
"$ref" : "#/definitions/PatchChangeKind"
} ,
"path" : {
"type" : "string"
}
} ,
"required" : [
"diff" ,
"kind" ,
"path"
2026-02-01 23:38:43 -08:00
] ,
"type" : "object"
} ,
2026-02-20 21:36:12 -08:00
"FuzzyFileSearchResult" : {
"description" : "Superset of [`codex_file_search::FileMatch`]" ,
2026-02-01 23:38:43 -08:00
"properties" : {
2026-02-20 21:36:12 -08:00
"file_name" : {
"type" : "string"
} ,
"indices" : {
"items" : {
"format" : "uint32" ,
"minimum" : 0.0 ,
"type" : "integer"
} ,
2026-02-01 23:38:43 -08:00
"type" : [
2026-02-20 21:36:12 -08:00
"array" ,
2026-02-01 23:38:43 -08:00
"null"
]
} ,
2026-02-20 21:36:12 -08:00
"path" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
2026-02-20 21:36:12 -08:00
"root" : {
"type" : "string"
} ,
"score" : {
"format" : "uint32" ,
"minimum" : 0.0 ,
"type" : "integer"
}
} ,
"required" : [
"file_name" ,
"path" ,
"root" ,
"score"
] ,
"type" : "object"
} ,
"FuzzyFileSearchSessionCompletedNotification" : {
"properties" : {
"sessionId" : {
"type" : "string"
}
} ,
"required" : [
"sessionId"
] ,
"type" : "object"
} ,
"FuzzyFileSearchSessionUpdatedNotification" : {
"properties" : {
"files" : {
"items" : {
"$ref" : "#/definitions/FuzzyFileSearchResult"
} ,
"type" : "array"
} ,
"query" : {
"type" : "string"
} ,
"sessionId" : {
"type" : "string"
}
} ,
"required" : [
"files" ,
"query" ,
"sessionId"
] ,
"type" : "object"
} ,
"GitInfo" : {
"properties" : {
"branch" : {
2026-02-01 23:38:43 -08:00
"type" : [
"string" ,
"null"
]
} ,
2026-02-20 21:36:12 -08:00
"originUrl" : {
"type" : [
"string" ,
"null"
]
} ,
"sha" : {
"type" : [
"string" ,
"null"
]
}
} ,
"type" : "object"
} ,
"ItemCompletedNotification" : {
"properties" : {
"item" : {
"$ref" : "#/definitions/ThreadItem"
} ,
"threadId" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
2026-02-20 21:36:12 -08:00
"turnId" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"item" ,
"threadId" ,
"turnId"
2026-02-01 23:38:43 -08:00
] ,
"type" : "object"
} ,
2026-02-20 21:36:12 -08:00
"ItemStartedNotification" : {
2026-02-01 23:38:43 -08:00
"properties" : {
2026-02-20 21:36:12 -08:00
"item" : {
"$ref" : "#/definitions/ThreadItem"
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"item" ,
"threadId" ,
"turnId"
] ,
"type" : "object"
} ,
"McpServerOauthLoginCompletedNotification" : {
"properties" : {
"error" : {
2026-02-01 23:38:43 -08:00
"type" : [
"string" ,
"null"
]
} ,
2026-02-20 21:36:12 -08:00
"name" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
2026-02-20 21:36:12 -08:00
} ,
"success" : {
"type" : "boolean"
2026-02-01 23:38:43 -08:00
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"name" ,
"success"
2026-02-01 23:38:43 -08:00
] ,
"type" : "object"
} ,
2026-02-20 21:36:12 -08:00
"McpToolCallError" : {
2026-02-01 23:38:43 -08:00
"properties" : {
2026-02-20 21:36:12 -08:00
"message" : {
"type" : "string"
2026-02-01 23:38:43 -08:00
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"message"
2026-02-01 23:38:43 -08:00
] ,
"type" : "object"
} ,
2026-02-20 21:36:12 -08:00
"McpToolCallProgressNotification" : {
2026-02-01 23:38:43 -08:00
"properties" : {
2026-02-20 21:36:12 -08:00
"itemId" : {
"type" : "string"
} ,
"message" : {
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"itemId" ,
"message" ,
2026-02-01 23:38:43 -08:00
"threadId" ,
2026-02-20 21:36:12 -08:00
"turnId"
2026-02-01 23:38:43 -08:00
] ,
"type" : "object"
} ,
2026-02-20 21:36:12 -08:00
"McpToolCallResult" : {
"properties" : {
"content" : {
"items" : true ,
"type" : "array"
} ,
"structuredContent" : true
} ,
"required" : [
"content"
] ,
"type" : "object"
} ,
"McpToolCallStatus" : {
"enum" : [
"inProgress" ,
"completed" ,
"failed"
] ,
"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"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
{
2026-02-20 21:36:12 -08:00
"description" : "The assistant's terminal answer text for the current turn." ,
"enum" : [
"final_answer"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"type" : "string"
}
]
} ,
"ModelRerouteReason" : {
"enum" : [
"highRiskCyberActivity"
] ,
"type" : "string"
} ,
"ModelReroutedNotification" : {
"properties" : {
"fromModel" : {
"type" : "string"
} ,
"reason" : {
"$ref" : "#/definitions/ModelRerouteReason"
} ,
"threadId" : {
"type" : "string"
} ,
"toModel" : {
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"fromModel" ,
"reason" ,
"threadId" ,
"toModel" ,
"turnId"
] ,
"type" : "object"
} ,
"PatchApplyStatus" : {
"enum" : [
"inProgress" ,
"completed" ,
"failed" ,
"declined"
] ,
"type" : "string"
} ,
"PatchChangeKind" : {
"oneOf" : [
2026-02-20 19:06:35 -08:00
{
"properties" : {
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"add"
2026-02-20 19:06:35 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "AddPatchChangeKindType" ,
2026-02-20 19:06:35 -08:00
"type" : "string"
}
} ,
"required" : [
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "AddPatchChangeKind" ,
2026-02-20 19:06:35 -08:00
"type" : "object"
} ,
{
"properties" : {
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"delete"
2026-02-20 19:06:35 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "DeletePatchChangeKindType" ,
2026-02-20 19:06:35 -08:00
"type" : "string"
}
} ,
"required" : [
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "DeletePatchChangeKind" ,
2026-02-20 19:06:35 -08:00
"type" : "object"
} ,
{
"properties" : {
2026-02-20 21:36:12 -08:00
"move_path" : {
2026-02-20 19:06:35 -08:00
"type" : [
"string" ,
"null"
]
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"update"
2026-02-20 19:06:35 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "UpdatePatchChangeKindType" ,
2026-02-20 19:06:35 -08:00
"type" : "string"
}
} ,
"required" : [
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "UpdatePatchChangeKind" ,
2026-02-20 19:06:35 -08:00
"type" : "object"
2026-02-20 21:36:12 -08:00
}
]
} ,
"PlanDeltaNotification" : {
"description" : "EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content." ,
"properties" : {
"delta" : {
"type" : "string"
2026-02-20 19:06:35 -08:00
} ,
2026-02-20 21:36:12 -08:00
"itemId" : {
"type" : "string"
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"delta" ,
"itemId" ,
"threadId" ,
"turnId"
] ,
"type" : "object"
} ,
"PlanType" : {
"enum" : [
"free" ,
"go" ,
"plus" ,
"pro" ,
"team" ,
"business" ,
"enterprise" ,
"edu" ,
"unknown"
] ,
"type" : "string"
} ,
"RateLimitSnapshot" : {
"properties" : {
"credits" : {
"anyOf" : [
{
"$ref" : "#/definitions/CreditsSnapshot"
2026-02-17 11:02:23 -08:00
} ,
2026-02-20 21:36:12 -08:00
{
"type" : "null"
2026-02-17 11:02:23 -08:00
}
2026-02-20 21:36:12 -08:00
]
2026-02-17 11:02:23 -08:00
} ,
2026-02-20 21:36:12 -08:00
"limitId" : {
"type" : [
"string" ,
"null"
]
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"limitName" : {
"type" : [
"string" ,
"null"
]
} ,
"planType" : {
"anyOf" : [
{
"$ref" : "#/definitions/PlanType"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
{
"type" : "null"
2026-02-01 23:38:43 -08:00
}
2026-02-20 21:36:12 -08:00
]
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"primary" : {
"anyOf" : [
{
"$ref" : "#/definitions/RateLimitWindow"
chore: persist turn_id in rollout session and make turn_id uuid based (#11246)
Problem:
1. turn id is constructed in-memory;
2. on resuming threads, turn_id might not be unique;
3. client cannot no the boundary of a turn from rollout files easily.
This PR does three things:
1. persist `task_started` and `task_complete` events;
1. persist `turn_id` in rollout turn events;
5. generate turn_id as unique uuids instead of incrementing it in
memory.
This helps us resolve the issue of clients wanting to have unique turn
ids for resuming a thread, and knowing the boundry of each turn in
rollout files.
example debug logs
```
2026-02-11T00:32:10.746876Z DEBUG codex_app_server_protocol::protocol::thread_history: built turn from rollout items turn_index=8 turn=Turn { id: "019c4a07-d809-74c3-bc4b-fd9618487b4b", items: [UserMessage { id: "item-24", content: [Text { text: "hi", text_elements: [] }] }, AgentMessage { id: "item-25", text: "Hi. I’m in the workspace with your current changes loaded and ready. Send the next task and I’ll execute it end-to-end." }], status: Completed, error: None }
2026-02-11T00:32:10.746888Z DEBUG codex_app_server_protocol::protocol::thread_history: built turn from rollout items turn_index=9 turn=Turn { id: "019c4a18-1004-76c0-a0fb-a77610f6a9b8", items: [UserMessage { id: "item-26", content: [Text { text: "hello", text_elements: [] }] }, AgentMessage { id: "item-27", text: "Hello. Ready for the next change in `codex-rs`; I can continue from the current in-progress diff or start a new task." }], status: Completed, error: None }
2026-02-11T00:32:10.746899Z DEBUG codex_app_server_protocol::protocol::thread_history: built turn from rollout items turn_index=10 turn=Turn { id: "019c4a19-41f0-7db0-ad78-74f1503baeb8", items: [UserMessage { id: "item-28", content: [Text { text: "hello", text_elements: [] }] }, AgentMessage { id: "item-29", text: "Hello. Send the specific change you want in `codex-rs`, and I’ll implement it and run the required checks." }], status: Completed, error: None }
```
backward compatibility:
if you try to resume an old session without task_started and
task_complete event populated, the following happens:
- If you resume and do nothing: those reconstructed historical IDs can
differ next time you resume.
- If you resume and send a new turn: the new turn gets a fresh UUID from
live submission flow and is persisted, so that new turn’s ID is stable
on later resumes.
I think this behavior is fine, because we only care about deterministic
turn id once a turn is triggered.
2026-02-10 19:56:01 -08:00
} ,
2026-02-20 21:36:12 -08:00
{
"type" : "null"
2026-02-01 23:38:43 -08:00
}
2026-02-20 21:36:12 -08:00
]
} ,
"secondary" : {
"anyOf" : [
{
"$ref" : "#/definitions/RateLimitWindow"
} ,
{
"type" : "null"
}
]
}
} ,
"type" : "object"
} ,
"RateLimitWindow" : {
"properties" : {
"resetsAt" : {
"format" : "int64" ,
"type" : [
"integer" ,
"null"
]
} ,
"usedPercent" : {
"format" : "int32" ,
"type" : "integer"
} ,
"windowDurationMins" : {
"format" : "int64" ,
"type" : [
"integer" ,
"null"
]
}
} ,
"required" : [
"usedPercent"
] ,
"type" : "object"
} ,
"ReasoningSummaryPartAddedNotification" : {
"properties" : {
"itemId" : {
"type" : "string"
} ,
"summaryIndex" : {
"format" : "int64" ,
"type" : "integer"
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"itemId" ,
"summaryIndex" ,
"threadId" ,
"turnId"
] ,
"type" : "object"
} ,
"ReasoningSummaryTextDeltaNotification" : {
"properties" : {
"delta" : {
"type" : "string"
} ,
"itemId" : {
"type" : "string"
} ,
"summaryIndex" : {
"format" : "int64" ,
"type" : "integer"
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"delta" ,
"itemId" ,
"summaryIndex" ,
"threadId" ,
"turnId"
] ,
"type" : "object"
} ,
"ReasoningTextDeltaNotification" : {
"properties" : {
"contentIndex" : {
"format" : "int64" ,
"type" : "integer"
} ,
"delta" : {
"type" : "string"
} ,
"itemId" : {
"type" : "string"
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"contentIndex" ,
"delta" ,
"itemId" ,
"threadId" ,
"turnId"
] ,
"type" : "object"
} ,
"SessionSource" : {
"oneOf" : [
{
"enum" : [
"cli" ,
"vscode" ,
"exec" ,
"appServer" ,
"unknown"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
{
2026-02-20 21:36:12 -08:00
"additionalProperties" : false ,
2026-02-01 23:38:43 -08:00
"properties" : {
2026-02-20 21:36:12 -08:00
"subAgent" : {
"$ref" : "#/definitions/SubAgentSource"
2026-02-01 23:38:43 -08:00
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"subAgent"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "SubAgentSessionSource" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
2026-02-20 21:36:12 -08:00
}
]
} ,
"SubAgentSource" : {
"oneOf" : [
{
"enum" : [
"review" ,
"compact" ,
"memory_consolidation"
] ,
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
{
2026-02-20 21:36:12 -08:00
"additionalProperties" : false ,
2026-02-01 23:38:43 -08:00
"properties" : {
2026-02-20 21:36:12 -08:00
"thread_spawn" : {
"properties" : {
"agent_nickname" : {
"default" : null ,
"type" : [
"string" ,
"null"
]
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"agent_role" : {
"default" : null ,
"type" : [
"string" ,
"null"
]
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"depth" : {
"format" : "int32" ,
"type" : "integer"
} ,
"parent_thread_id" : {
"$ref" : "#/definitions/ThreadId"
2026-02-01 23:38:43 -08:00
}
2026-02-20 21:36:12 -08:00
} ,
"required" : [
"depth" ,
"parent_thread_id"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"type" : "object"
2026-02-01 23:38:43 -08:00
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"thread_spawn"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "ThreadSpawnSubAgentSource" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
2026-02-20 21:36:12 -08:00
"additionalProperties" : false ,
2026-02-01 23:38:43 -08:00
"properties" : {
2026-02-20 21:36:12 -08:00
"other" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"other"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "OtherSubAgentSource" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
2026-02-20 21:36:12 -08:00
}
]
} ,
"TerminalInteractionNotification" : {
"properties" : {
"itemId" : {
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"processId" : {
"type" : "string"
} ,
"stdin" : {
"type" : "string"
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"itemId" ,
"processId" ,
"stdin" ,
"threadId" ,
"turnId"
] ,
"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"
} ,
"TextPosition" : {
"properties" : {
"column" : {
"description" : "1-based column number (in Unicode scalar values)." ,
"format" : "uint" ,
"minimum" : 0.0 ,
"type" : "integer"
} ,
"line" : {
"description" : "1-based line number." ,
"format" : "uint" ,
"minimum" : 0.0 ,
"type" : "integer"
}
} ,
"required" : [
"column" ,
"line"
] ,
"type" : "object"
} ,
"TextRange" : {
"properties" : {
"end" : {
"$ref" : "#/definitions/TextPosition"
} ,
"start" : {
"$ref" : "#/definitions/TextPosition"
}
} ,
"required" : [
"end" ,
"start"
] ,
"type" : "object"
} ,
"Thread" : {
"properties" : {
"agentNickname" : {
"description" : "Optional random unique nickname assigned to an AgentControl-spawned sub-agent." ,
"type" : [
"string" ,
"null"
]
} ,
"agentRole" : {
"description" : "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent." ,
"type" : [
"string" ,
"null"
]
} ,
"cliVersion" : {
"description" : "Version of the CLI that created the thread." ,
"type" : "string"
} ,
"createdAt" : {
"description" : "Unix timestamp (in seconds) when the thread was created." ,
"format" : "int64" ,
"type" : "integer"
} ,
"cwd" : {
"description" : "Working directory captured for the thread." ,
"type" : "string"
} ,
"gitInfo" : {
"anyOf" : [
{
"$ref" : "#/definitions/GitInfo"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
{
"type" : "null"
2026-02-01 23:38:43 -08:00
}
] ,
2026-02-20 21:36:12 -08:00
"description" : "Optional Git metadata captured when the thread was created."
} ,
"id" : {
"type" : "string"
} ,
"modelProvider" : {
"description" : "Model provider used for this thread (for example, 'openai')." ,
"type" : "string"
} ,
"name" : {
"description" : "Optional user-facing thread title." ,
"type" : [
"string" ,
"null"
]
} ,
"path" : {
"description" : "[UNSTABLE] Path to the thread on disk." ,
"type" : [
"string" ,
"null"
]
} ,
"preview" : {
"description" : "Usually the first user message in the thread, if available." ,
"type" : "string"
} ,
"source" : {
"allOf" : [
{
"$ref" : "#/definitions/SessionSource"
}
] ,
"description" : "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."
} ,
"status" : {
"allOf" : [
{
"$ref" : "#/definitions/ThreadStatus"
}
] ,
"description" : "Current runtime status for the thread."
} ,
"turns" : {
"description" : "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list." ,
"items" : {
"$ref" : "#/definitions/Turn"
} ,
"type" : "array"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"updatedAt" : {
"description" : "Unix timestamp (in seconds) when the thread was last updated." ,
"format" : "int64" ,
"type" : "integer"
}
} ,
"required" : [
"cliVersion" ,
"createdAt" ,
"cwd" ,
"id" ,
"modelProvider" ,
"preview" ,
"source" ,
"status" ,
"turns" ,
"updatedAt"
] ,
"type" : "object"
} ,
"ThreadActiveFlag" : {
"enum" : [
"waitingOnApproval" ,
"waitingOnUserInput"
] ,
"type" : "string"
} ,
"ThreadArchivedNotification" : {
"properties" : {
"threadId" : {
"type" : "string"
}
} ,
"required" : [
"threadId"
] ,
"type" : "object"
} ,
"ThreadId" : {
"type" : "string"
} ,
"ThreadItem" : {
"oneOf" : [
2026-02-01 23:38:43 -08:00
{
"properties" : {
2026-02-20 21:36:12 -08:00
"content" : {
"items" : {
"$ref" : "#/definitions/UserInput"
} ,
"type" : "array"
} ,
"id" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"userMessage"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "UserMessageThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"content" ,
"id" ,
2026-02-01 23:38:43 -08:00
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "UserMessageThreadItem" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
2026-02-20 21:36:12 -08:00
"id" : {
"type" : "string"
} ,
"phase" : {
"anyOf" : [
{
"$ref" : "#/definitions/MessagePhase"
} ,
{
"type" : "null"
}
] ,
"default" : null
} ,
2026-02-01 23:38:43 -08:00
"text" : {
"type" : "string"
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"agentMessage"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "AgentMessageThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"id" ,
2026-02-01 23:38:43 -08:00
"text" ,
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "AgentMessageThreadItem" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
2026-02-20 21:36:12 -08:00
"description" : "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text." ,
2026-02-01 23:38:43 -08:00
"properties" : {
2026-02-20 21:36:12 -08:00
"id" : {
"type" : "string"
} ,
"text" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"plan"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "PlanThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"id" ,
"text" ,
2026-02-01 23:38:43 -08:00
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "PlanThreadItem" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
2026-02-20 21:36:12 -08:00
"content" : {
"default" : [ ] ,
"items" : {
"type" : "string"
} ,
"type" : "array"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"id" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
2026-02-20 21:36:12 -08:00
"summary" : {
"default" : [ ] ,
"items" : {
"type" : "string"
} ,
"type" : "array"
2026-02-01 23:38:43 -08:00
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"reasoning"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "ReasoningThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"id" ,
2026-02-01 23:38:43 -08:00
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "ReasoningThreadItem" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
2026-02-20 21:36:12 -08:00
"aggregatedOutput" : {
"description" : "The command's output, aggregated from stdout and stderr." ,
2026-02-01 23:38:43 -08:00
"type" : [
2026-02-20 21:36:12 -08:00
"string" ,
2026-02-01 23:38:43 -08:00
"null"
]
} ,
2026-02-20 21:36:12 -08:00
"command" : {
"description" : "The command to be executed." ,
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
2026-02-20 21:36:12 -08:00
"commandActions" : {
"description" : "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together." ,
"items" : {
"$ref" : "#/definitions/CommandAction"
} ,
"type" : "array"
2026-02-10 02:09:23 -08:00
} ,
2026-02-20 21:36:12 -08:00
"cwd" : {
"description" : "The command's working directory." ,
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"durationMs" : {
"description" : "The duration of the command execution in milliseconds." ,
"format" : "int64" ,
2026-02-01 23:38:43 -08:00
"type" : [
2026-02-20 21:36:12 -08:00
"integer" ,
2026-02-01 23:38:43 -08:00
"null"
]
} ,
2026-02-20 21:36:12 -08:00
"exitCode" : {
"description" : "The command's exit code." ,
"format" : "int32" ,
2026-02-01 23:38:43 -08:00
"type" : [
2026-02-20 21:36:12 -08:00
"integer" ,
2026-02-01 23:38:43 -08:00
"null"
]
} ,
2026-02-20 21:36:12 -08:00
"id" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
2026-02-20 21:36:12 -08:00
"processId" : {
"description" : "Identifier for the underlying PTY process (when available)." ,
2026-02-01 23:38:43 -08:00
"type" : [
"string" ,
"null"
]
} ,
"status" : {
2026-02-20 21:36:12 -08:00
"$ref" : "#/definitions/CommandExecutionStatus"
2026-02-01 23:38:43 -08:00
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"commandExecution"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "CommandExecutionThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"command" ,
"commandActions" ,
"cwd" ,
"id" ,
2026-02-01 23:38:43 -08:00
"status" ,
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "CommandExecutionThreadItem" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
2026-02-20 21:36:12 -08:00
"changes" : {
2026-02-01 23:38:43 -08:00
"items" : {
2026-02-20 21:36:12 -08:00
"$ref" : "#/definitions/FileUpdateChange"
2026-02-01 23:38:43 -08:00
} ,
"type" : "array"
} ,
2026-02-20 21:36:12 -08:00
"id" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
2026-02-20 21:36:12 -08:00
"status" : {
"$ref" : "#/definitions/PatchApplyStatus"
2026-02-01 23:38:43 -08:00
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"fileChange"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "FileChangeThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"changes" ,
"id" ,
"status" ,
2026-02-01 23:38:43 -08:00
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "FileChangeThreadItem" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
2026-02-20 21:36:12 -08:00
"arguments" : true ,
"durationMs" : {
"description" : "The duration of the MCP tool call in milliseconds." ,
"format" : "int64" ,
"type" : [
"integer" ,
"null"
]
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"error" : {
"anyOf" : [
{
"$ref" : "#/definitions/McpToolCallError"
} ,
{
"type" : "null"
}
]
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"id" : {
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
"result" : {
2026-02-20 21:36:12 -08:00
"anyOf" : [
{
"$ref" : "#/definitions/McpToolCallResult"
} ,
2026-02-01 23:38:43 -08:00
{
2026-02-20 21:36:12 -08:00
"type" : "null"
2026-02-01 23:38:43 -08:00
}
2026-02-20 21:36:12 -08:00
]
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"server" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
2026-02-20 21:36:12 -08:00
} ,
"status" : {
"$ref" : "#/definitions/McpToolCallStatus"
} ,
"tool" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"mcpToolCall"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "McpToolCallThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"arguments" ,
"id" ,
"server" ,
"status" ,
"tool" ,
"type"
] ,
"title" : "McpToolCallThreadItem" ,
"type" : "object"
} ,
2026-02-01 23:38:43 -08:00
{
"properties" : {
2026-02-20 21:36:12 -08:00
"agentsStates" : {
"additionalProperties" : {
"$ref" : "#/definitions/CollabAgentState"
} ,
"description" : "Last known status of the target agents, when available." ,
"type" : "object"
} ,
"id" : {
"description" : "Unique identifier for this collab tool call." ,
"type" : "string"
} ,
"prompt" : {
"description" : "Prompt text sent as part of the collab tool call, when available." ,
"type" : [
"string" ,
"null"
]
} ,
"receiverThreadIds" : {
"description" : "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent." ,
2026-02-01 23:38:43 -08:00
"items" : {
2026-02-20 21:36:12 -08:00
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
"type" : "array"
} ,
2026-02-20 21:36:12 -08:00
"senderThreadId" : {
"description" : "Thread ID of the agent issuing the collab request." ,
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
2026-02-20 21:36:12 -08:00
"status" : {
"allOf" : [
{
"$ref" : "#/definitions/CollabAgentToolCallStatus"
}
] ,
"description" : "Current status of the collab tool call."
} ,
"tool" : {
"allOf" : [
{
"$ref" : "#/definitions/CollabAgentTool"
}
] ,
"description" : "Name of the collab tool that was invoked."
} ,
2026-02-01 23:38:43 -08:00
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"collabAgentToolCall"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "CollabAgentToolCallThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"agentsStates" ,
2026-02-01 23:38:43 -08:00
"id" ,
2026-02-20 21:36:12 -08:00
"receiverThreadIds" ,
"senderThreadId" ,
"status" ,
"tool" ,
2026-02-01 23:38:43 -08:00
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "CollabAgentToolCallThreadItem" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
2026-02-20 21:36:12 -08:00
"action" : {
2026-02-06 18:39:52 -08:00
"anyOf" : [
{
2026-02-20 21:36:12 -08:00
"$ref" : "#/definitions/WebSearchAction"
2026-02-06 18:39:52 -08:00
} ,
{
"type" : "null"
}
2026-02-20 21:36:12 -08:00
]
} ,
"id" : {
"type" : "string"
} ,
"query" : {
"type" : "string"
2026-02-06 18:39:52 -08:00
} ,
2026-02-01 23:38:43 -08:00
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"webSearch"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "WebSearchThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
"id" ,
2026-02-20 21:36:12 -08:00
"query" ,
2026-02-01 23:38:43 -08:00
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "WebSearchThreadItem" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
"id" : {
"type" : "string"
} ,
2026-02-20 21:36:12 -08:00
"path" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"imageView"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "ImageViewThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
"id" ,
2026-02-20 21:36:12 -08:00
"path" ,
2026-02-01 23:38:43 -08:00
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "ImageViewThreadItem" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
"id" : {
"type" : "string"
} ,
2026-02-20 21:36:12 -08:00
"review" : {
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"enteredReviewMode"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "EnteredReviewModeThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
"id" ,
2026-02-20 21:36:12 -08:00
"review" ,
2026-02-01 23:38:43 -08:00
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "EnteredReviewModeThreadItem" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
"id" : {
"type" : "string"
} ,
2026-02-20 21:36:12 -08:00
"review" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"exitedReviewMode"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "ExitedReviewModeThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
"id" ,
2026-02-20 21:36:12 -08:00
"review" ,
2026-02-01 23:38:43 -08:00
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "ExitedReviewModeThreadItem" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
"id" : {
"type" : "string"
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"contextCompaction"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "ContextCompactionThreadItemType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
"id" ,
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "ContextCompactionThreadItem" ,
"type" : "object"
}
]
} ,
"ThreadNameUpdatedNotification" : {
"properties" : {
"threadId" : {
"type" : "string"
} ,
"threadName" : {
"type" : [
"string" ,
"null"
]
}
} ,
"required" : [
"threadId"
] ,
"type" : "object"
} ,
"ThreadStartedNotification" : {
"properties" : {
"thread" : {
"$ref" : "#/definitions/Thread"
}
} ,
"required" : [
"thread"
] ,
"type" : "object"
} ,
"ThreadStatus" : {
"oneOf" : [
{
"properties" : {
"type" : {
"enum" : [
"notLoaded"
] ,
"title" : "NotLoadedThreadStatusType" ,
"type" : "string"
}
} ,
"required" : [
"type"
] ,
"title" : "NotLoadedThreadStatus" ,
"type" : "object"
} ,
{
"properties" : {
"type" : {
"enum" : [
"idle"
] ,
"title" : "IdleThreadStatusType" ,
"type" : "string"
}
} ,
"required" : [
"type"
] ,
"title" : "IdleThreadStatus" ,
"type" : "object"
} ,
{
"properties" : {
"type" : {
"enum" : [
"systemError"
] ,
"title" : "SystemErrorThreadStatusType" ,
"type" : "string"
}
} ,
"required" : [
"type"
] ,
"title" : "SystemErrorThreadStatus" ,
"type" : "object"
} ,
{
"properties" : {
"activeFlags" : {
"items" : {
"$ref" : "#/definitions/ThreadActiveFlag"
} ,
"type" : "array"
} ,
"type" : {
"enum" : [
"active"
] ,
"title" : "ActiveThreadStatusType" ,
"type" : "string"
}
} ,
"required" : [
"activeFlags" ,
"type"
] ,
"title" : "ActiveThreadStatus" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
}
]
} ,
2026-02-20 21:36:12 -08:00
"ThreadStatusChangedNotification" : {
"properties" : {
"status" : {
"$ref" : "#/definitions/ThreadStatus"
} ,
"threadId" : {
"type" : "string"
}
} ,
"required" : [
"status" ,
"threadId"
] ,
"type" : "object"
} ,
"ThreadTokenUsage" : {
"properties" : {
"last" : {
"$ref" : "#/definitions/TokenUsageBreakdown"
} ,
"modelContextWindow" : {
"format" : "int64" ,
"type" : [
"integer" ,
"null"
]
} ,
"total" : {
"$ref" : "#/definitions/TokenUsageBreakdown"
}
} ,
"required" : [
"last" ,
"total"
] ,
"type" : "object"
} ,
"ThreadTokenUsageUpdatedNotification" : {
2026-02-01 23:38:43 -08:00
"properties" : {
2026-02-20 21:36:12 -08:00
"threadId" : {
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"tokenUsage" : {
"$ref" : "#/definitions/ThreadTokenUsage"
} ,
"turnId" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"threadId" ,
"tokenUsage" ,
"turnId"
2026-02-01 23:38:43 -08:00
] ,
"type" : "object"
} ,
2026-02-20 21:36:12 -08:00
"ThreadUnarchivedNotification" : {
"properties" : {
"threadId" : {
"type" : "string"
}
} ,
"required" : [
"threadId"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"type" : "object"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"TokenUsageBreakdown" : {
2026-02-01 23:38:43 -08:00
"properties" : {
2026-02-20 21:36:12 -08:00
"cachedInputTokens" : {
"format" : "int64" ,
"type" : "integer"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"inputTokens" : {
"format" : "int64" ,
"type" : "integer"
} ,
"outputTokens" : {
"format" : "int64" ,
"type" : "integer"
} ,
"reasoningOutputTokens" : {
"format" : "int64" ,
"type" : "integer"
} ,
"totalTokens" : {
"format" : "int64" ,
"type" : "integer"
}
} ,
"required" : [
"cachedInputTokens" ,
"inputTokens" ,
"outputTokens" ,
"reasoningOutputTokens" ,
"totalTokens"
] ,
"type" : "object"
} ,
"Turn" : {
"properties" : {
"error" : {
"anyOf" : [
{
"$ref" : "#/definitions/TurnError"
} ,
{
"type" : "null"
}
] ,
"description" : "Only populated when the Turn's status is failed."
} ,
"id" : {
"type" : "string"
} ,
"items" : {
"description" : "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list." ,
2026-02-01 23:38:43 -08:00
"items" : {
2026-02-20 21:36:12 -08:00
"$ref" : "#/definitions/ThreadItem"
2026-02-01 23:38:43 -08:00
} ,
"type" : "array"
} ,
2026-02-20 21:36:12 -08:00
"status" : {
"$ref" : "#/definitions/TurnStatus"
2026-02-01 23:38:43 -08:00
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"id" ,
"items" ,
"status"
2026-02-01 23:38:43 -08:00
] ,
"type" : "object"
} ,
2026-02-20 21:36:12 -08:00
"TurnCompletedNotification" : {
2026-02-01 23:38:43 -08:00
"properties" : {
"threadId" : {
"type" : "string"
} ,
"turn" : {
"$ref" : "#/definitions/Turn"
}
} ,
"required" : [
"threadId" ,
"turn"
] ,
"type" : "object"
} ,
2026-02-20 21:36:12 -08:00
"TurnDiffUpdatedNotification" : {
"description" : "Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn." ,
"properties" : {
"diff" : {
"type" : "string"
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
}
} ,
"required" : [
"diff" ,
"threadId" ,
"turnId"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"type" : "object"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"TurnError" : {
"properties" : {
"additionalDetails" : {
"default" : null ,
"type" : [
"string" ,
"null"
]
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"codexErrorInfo" : {
"anyOf" : [
{
"$ref" : "#/definitions/CodexErrorInfo"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
{
"type" : "null"
2026-02-01 23:38:43 -08:00
}
2026-02-20 21:36:12 -08:00
]
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"message" : {
"type" : "string"
}
} ,
"required" : [
"message"
] ,
"type" : "object"
} ,
"TurnPlanStep" : {
"properties" : {
"status" : {
"$ref" : "#/definitions/TurnPlanStepStatus"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"step" : {
"type" : "string"
}
} ,
"required" : [
"status" ,
"step"
] ,
"type" : "object"
} ,
"TurnPlanStepStatus" : {
"enum" : [
"pending" ,
"inProgress" ,
"completed"
] ,
"type" : "string"
} ,
"TurnPlanUpdatedNotification" : {
"properties" : {
"explanation" : {
"type" : [
"string" ,
"null"
]
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"plan" : {
"items" : {
"$ref" : "#/definitions/TurnPlanStep"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"type" : "array"
} ,
"threadId" : {
"type" : "string"
} ,
"turnId" : {
"type" : "string"
2026-02-01 23:38:43 -08:00
}
2026-02-20 21:36:12 -08:00
} ,
"required" : [
"plan" ,
"threadId" ,
"turnId"
] ,
"type" : "object"
} ,
"TurnStartedNotification" : {
"properties" : {
"threadId" : {
"type" : "string"
} ,
"turn" : {
"$ref" : "#/definitions/Turn"
}
} ,
"required" : [
"threadId" ,
"turn"
] ,
"type" : "object"
} ,
"TurnStatus" : {
"enum" : [
"completed" ,
"interrupted" ,
"failed" ,
"inProgress"
] ,
"type" : "string"
2026-02-01 23:38:43 -08:00
} ,
2026-02-20 21:36:12 -08:00
"UserInput" : {
2026-02-01 23:38:43 -08:00
"oneOf" : [
{
"properties" : {
"text" : {
"type" : "string"
} ,
"text_elements" : {
"default" : [ ] ,
2026-02-20 21:36:12 -08:00
"description" : "UI-defined spans within `text` used to render or persist special elements." ,
2026-02-01 23:38:43 -08:00
"items" : {
2026-02-20 21:36:12 -08:00
"$ref" : "#/definitions/TextElement"
2026-02-01 23:38:43 -08:00
} ,
"type" : "array"
} ,
"type" : {
"enum" : [
"text"
] ,
2026-02-20 21:36:12 -08:00
"title" : "TextUserInputType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
"text" ,
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "TextUserInput" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
"type" : {
"enum" : [
"image"
] ,
2026-02-20 21:36:12 -08:00
"title" : "ImageUserInputType" ,
"type" : "string"
} ,
"url" : {
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
2026-02-20 21:36:12 -08:00
"type" ,
"url"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "ImageUserInput" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
"path" : {
"type" : "string"
} ,
"type" : {
"enum" : [
2026-02-20 21:36:12 -08:00
"localImage"
2026-02-01 23:38:43 -08:00
] ,
2026-02-20 21:36:12 -08:00
"title" : "LocalImageUserInputType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
"path" ,
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "LocalImageUserInput" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
"name" : {
"type" : "string"
} ,
"path" : {
"type" : "string"
} ,
"type" : {
"enum" : [
"skill"
] ,
2026-02-20 21:36:12 -08:00
"title" : "SkillUserInputType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
"name" ,
"path" ,
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "SkillUserInput" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
"name" : {
"type" : "string"
} ,
"path" : {
"type" : "string"
} ,
"type" : {
"enum" : [
"mention"
] ,
2026-02-20 21:36:12 -08:00
"title" : "MentionUserInputType" ,
2026-02-01 23:38:43 -08:00
"type" : "string"
}
} ,
"required" : [
"name" ,
"path" ,
"type"
] ,
2026-02-20 21:36:12 -08:00
"title" : "MentionUserInput" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
}
]
} ,
"WebSearchAction" : {
"oneOf" : [
{
"properties" : {
"queries" : {
"items" : {
"type" : "string"
} ,
"type" : [
"array" ,
"null"
]
} ,
"query" : {
"type" : [
"string" ,
"null"
]
} ,
"type" : {
"enum" : [
"search"
] ,
"title" : "SearchWebSearchActionType" ,
"type" : "string"
}
} ,
"required" : [
"type"
] ,
"title" : "SearchWebSearchAction" ,
"type" : "object"
} ,
{
"properties" : {
"type" : {
"enum" : [
"openPage"
] ,
"title" : "OpenPageWebSearchActionType" ,
"type" : "string"
} ,
"url" : {
"type" : [
"string" ,
"null"
]
}
} ,
"required" : [
"type"
] ,
"title" : "OpenPageWebSearchAction" ,
"type" : "object"
} ,
{
"properties" : {
"pattern" : {
"type" : [
"string" ,
"null"
]
} ,
"type" : {
"enum" : [
"findInPage"
] ,
"title" : "FindInPageWebSearchActionType" ,
"type" : "string"
} ,
"url" : {
"type" : [
"string" ,
"null"
]
}
} ,
"required" : [
"type"
] ,
"title" : "FindInPageWebSearchAction" ,
"type" : "object"
} ,
{
"properties" : {
"type" : {
"enum" : [
"other"
] ,
"title" : "OtherWebSearchActionType" ,
"type" : "string"
}
} ,
"required" : [
"type"
] ,
"title" : "OtherWebSearchAction" ,
"type" : "object"
}
]
} ,
2026-02-18 13:03:16 -08:00
"WindowsSandboxSetupCompletedNotification" : {
"properties" : {
"error" : {
"type" : [
"string" ,
"null"
]
} ,
"mode" : {
"$ref" : "#/definitions/WindowsSandboxSetupMode"
} ,
"success" : {
"type" : "boolean"
}
} ,
"required" : [
"mode" ,
"success"
] ,
"type" : "object"
} ,
"WindowsSandboxSetupMode" : {
"enum" : [
"elevated" ,
"unelevated"
] ,
"type" : "string"
} ,
2026-02-01 23:38:43 -08:00
"WindowsWorldWritableWarningNotification" : {
"properties" : {
"extraCount" : {
"format" : "uint" ,
"minimum" : 0.0 ,
"type" : "integer"
} ,
"failedScan" : {
"type" : "boolean"
} ,
"samplePaths" : {
"items" : {
"type" : "string"
} ,
"type" : "array"
}
} ,
"required" : [
"extraCount" ,
"failedScan" ,
"samplePaths"
] ,
"type" : "object"
}
} ,
"description" : "Notification sent from the server to the client." ,
"oneOf" : [
{
"description" : "NEW NOTIFICATIONS" ,
"properties" : {
"method" : {
"enum" : [
"error"
] ,
"title" : "ErrorNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ErrorNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "ErrorNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"thread/started"
] ,
"title" : "Thread/startedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ThreadStartedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Thread/startedNotification" ,
"type" : "object"
} ,
2026-02-18 15:20:03 -08:00
{
"properties" : {
"method" : {
"enum" : [
"thread/status/changed"
] ,
"title" : "Thread/status/changedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ThreadStatusChangedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Thread/status/changedNotification" ,
"type" : "object"
} ,
2026-02-17 14:53:58 -08:00
{
"properties" : {
"method" : {
"enum" : [
"thread/archived"
] ,
"title" : "Thread/archivedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ThreadArchivedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Thread/archivedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"thread/unarchived"
] ,
"title" : "Thread/unarchivedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ThreadUnarchivedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Thread/unarchivedNotification" ,
"type" : "object"
} ,
2026-02-01 23:38:43 -08:00
{
"properties" : {
"method" : {
"enum" : [
"thread/name/updated"
] ,
"title" : "Thread/name/updatedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ThreadNameUpdatedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Thread/name/updatedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"thread/tokenUsage/updated"
] ,
"title" : "Thread/tokenUsage/updatedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ThreadTokenUsageUpdatedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Thread/tokenUsage/updatedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"turn/started"
] ,
"title" : "Turn/startedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/TurnStartedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Turn/startedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"turn/completed"
] ,
"title" : "Turn/completedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/TurnCompletedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Turn/completedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"turn/diff/updated"
] ,
"title" : "Turn/diff/updatedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/TurnDiffUpdatedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Turn/diff/updatedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"turn/plan/updated"
] ,
"title" : "Turn/plan/updatedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/TurnPlanUpdatedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Turn/plan/updatedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"item/started"
] ,
"title" : "Item/startedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ItemStartedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Item/startedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"item/completed"
] ,
"title" : "Item/completedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ItemCompletedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Item/completedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"item/agentMessage/delta"
] ,
"title" : "Item/agentMessage/deltaNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/AgentMessageDeltaNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Item/agentMessage/deltaNotification" ,
"type" : "object"
} ,
{
"description" : "EXPERIMENTAL - proposed plan streaming deltas for plan items." ,
"properties" : {
"method" : {
"enum" : [
"item/plan/delta"
] ,
"title" : "Item/plan/deltaNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/PlanDeltaNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Item/plan/deltaNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"item/commandExecution/outputDelta"
] ,
"title" : "Item/commandExecution/outputDeltaNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/CommandExecutionOutputDeltaNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Item/commandExecution/outputDeltaNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"item/commandExecution/terminalInteraction"
] ,
"title" : "Item/commandExecution/terminalInteractionNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/TerminalInteractionNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Item/commandExecution/terminalInteractionNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"item/fileChange/outputDelta"
] ,
"title" : "Item/fileChange/outputDeltaNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/FileChangeOutputDeltaNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Item/fileChange/outputDeltaNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"item/mcpToolCall/progress"
] ,
"title" : "Item/mcpToolCall/progressNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/McpToolCallProgressNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Item/mcpToolCall/progressNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"mcpServer/oauthLogin/completed"
] ,
"title" : "McpServer/oauthLogin/completedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/McpServerOauthLoginCompletedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "McpServer/oauthLogin/completedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"account/updated"
] ,
"title" : "Account/updatedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/AccountUpdatedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Account/updatedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"account/rateLimits/updated"
] ,
"title" : "Account/rateLimits/updatedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/AccountRateLimitsUpdatedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Account/rateLimits/updatedNotification" ,
"type" : "object"
} ,
2026-02-08 15:24:56 -08:00
{
"properties" : {
"method" : {
"enum" : [
"app/list/updated"
] ,
"title" : "App/list/updatedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/AppListUpdatedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "App/list/updatedNotification" ,
"type" : "object"
} ,
2026-02-01 23:38:43 -08:00
{
"properties" : {
"method" : {
"enum" : [
"item/reasoning/summaryTextDelta"
] ,
"title" : "Item/reasoning/summaryTextDeltaNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ReasoningSummaryTextDeltaNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Item/reasoning/summaryTextDeltaNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"item/reasoning/summaryPartAdded"
] ,
"title" : "Item/reasoning/summaryPartAddedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ReasoningSummaryPartAddedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Item/reasoning/summaryPartAddedNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"item/reasoning/textDelta"
] ,
"title" : "Item/reasoning/textDeltaNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ReasoningTextDeltaNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Item/reasoning/textDeltaNotification" ,
"type" : "object"
} ,
{
"description" : "Deprecated: Use `ContextCompaction` item type instead." ,
"properties" : {
"method" : {
"enum" : [
"thread/compacted"
] ,
"title" : "Thread/compactedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ContextCompactedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Thread/compactedNotification" ,
"type" : "object"
} ,
2026-02-17 11:02:23 -08:00
{
"properties" : {
"method" : {
"enum" : [
"model/rerouted"
] ,
"title" : "Model/reroutedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ModelReroutedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Model/reroutedNotification" ,
"type" : "object"
} ,
2026-02-01 23:38:43 -08:00
{
"properties" : {
"method" : {
"enum" : [
"deprecationNotice"
] ,
"title" : "DeprecationNoticeNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/DeprecationNoticeNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "DeprecationNoticeNotification" ,
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"configWarning"
] ,
"title" : "ConfigWarningNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/ConfigWarningNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "ConfigWarningNotification" ,
"type" : "object"
} ,
2026-02-12 10:49:44 -08:00
{
"properties" : {
"method" : {
"enum" : [
"fuzzyFileSearch/sessionUpdated"
] ,
"title" : "FuzzyFileSearch/sessionUpdatedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/FuzzyFileSearchSessionUpdatedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "FuzzyFileSearch/sessionUpdatedNotification" ,
"type" : "object"
} ,
2026-02-13 15:08:14 -08:00
{
"properties" : {
"method" : {
"enum" : [
"fuzzyFileSearch/sessionCompleted"
] ,
"title" : "FuzzyFileSearch/sessionCompletedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/FuzzyFileSearchSessionCompletedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "FuzzyFileSearch/sessionCompletedNotification" ,
"type" : "object"
} ,
2026-02-01 23:38:43 -08:00
{
"description" : "Notifies the user of world-writable directories on Windows, which cannot be protected by the sandbox." ,
"properties" : {
"method" : {
"enum" : [
"windows/worldWritableWarning"
] ,
"title" : "Windows/worldWritableWarningNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/WindowsWorldWritableWarningNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Windows/worldWritableWarningNotification" ,
2026-02-18 13:03:16 -08:00
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"windowsSandbox/setupCompleted"
] ,
"title" : "WindowsSandbox/setupCompletedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/WindowsSandboxSetupCompletedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "WindowsSandbox/setupCompletedNotification" ,
2026-02-01 23:38:43 -08:00
"type" : "object"
} ,
{
"properties" : {
"method" : {
"enum" : [
"account/login/completed"
] ,
"title" : "Account/login/completedNotificationMethod" ,
"type" : "string"
} ,
"params" : {
"$ref" : "#/definitions/AccountLoginCompletedNotification"
}
} ,
"required" : [
"method" ,
"params"
] ,
"title" : "Account/login/completedNotification" ,
"type" : "object"
}
] ,
"title" : "ServerNotification"
2026-02-10 02:09:23 -08:00
}