{ "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "AbsolutePathBuf": { "type": "string" }, "AgentMessageDelivery": { "enum": [ "async" ], "type": "string" }, "AsyncUserInputQuestion": { "additionalProperties": false, "properties": { "options": { "items": { "type": "string" }, "type": [ "array", "null" ] } }, "required": [ "title" ], "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" }, "CollabAgentState": { "properties": { "message": { "type": [ "string", "null" ] }, "status": { "$ref": "#/definitions/CollabAgentStatus" } }, "required": [ "status" ], "type": "object" }, "CollabAgentStatus": { "enum": [ "pendingInit", "running", "interrupted", "completed", "errored", "shutdown", "notFound" ], "type": "string" }, "CollabAgentTool": { "enum": [ "spawnAgent", "sendInput", "resumeAgent", "wait", "closeAgent", "sendMessage", "followupTask", "interruptAgent", "listAgents" ], "type": "string" }, "CollabAgentToolCallStatus": { "enum": [ "inProgress", "completed", "failed", "interrupted" ], "type": "string" }, "CommandAction": { "oneOf": [ { "properties": { "command": { "type": "string" }, "name": { "type": "string" }, "path": { "$ref": "#/definitions/LegacyAppPathString" }, "type": { "enum": [ "read" ], "type": "string" } }, "required": [ "command", "name", "path", "type" ], "type": "object" }, { "properties": { "command": { "type": "string" }, "path": { "type": [ "string", "null" ] }, "type": { "enum": [ "listFiles" ], "type": "string" } }, "required": [ "command", "type" ], "type": "object" }, { "properties": { "command": { "type": "string" }, "path": { "type": [ "string", "null" ] }, "query": { "type": [ "string", "null" ] }, "type": { "enum": [ "search" ], "type": "string" } }, "required": [ "command", "type" ], "type": "object" }, { "properties": { "command": { "type": "string" }, "type": { "enum": [ "unknown" ], "type": "string" } }, "required": [ "command", "type" ], "type": "object" } ] }, "CommandExecutionSource": { "enum": [ "agent", "userShell", "unifiedExecStartup", "unifiedExecInteraction" ], "type": "string" }, "CommandExecutionStatus": { "enum": [ "inProgress", "completed", "failed", "declined" ], "type": "string" }, "DynamicToolCallOutputContentItem": { "oneOf": [ { "properties": { "text": { "type": "string" }, "type": { "enum": [ "inputText" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" }, { "properties": { "imageUrl": { "type": "string" }, "type": { "enum": [ "inputImage" ], "type": "string" } }, "required": [ "imageUrl", "type" ], "type": "object" }, { "properties": { "audioUrl": { "type": "string" }, "type": { "enum": [ "inputAudio" ], "type": "string" } }, "required": [ "audioUrl", "type" ], "type": "object" } ] }, "DynamicToolCallStatus": { "enum": [ "inProgress", "completed", "failed" ], "type": "string" }, "FileUpdateChange": { "properties": { "diff": { "type": "string" }, "kind": { "$ref": "#/definitions/PatchChangeKind" }, "path": { "type": "string" } }, "required": [ "diff", "kind", "path" ], "type": "object" }, "FunctionCallOutputBody": { "anyOf": [ { "type": "string" }, { "items": { "$ref": "#/definitions/FunctionCallOutputContentItem" }, "type": "array" } ] }, "FunctionCallOutputContentItem": { "oneOf": [ { "properties": { "text": { "type": "string" }, "type": { "enum": [ "input_text" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" }, { "anyOf": [ { "properties": { "image_url": { "type": "string" } }, "required": [ "image_url" ], "type": "object" }, { "properties": { "file_id": { "type": "string" } }, "required": [ "file_id" ], "type": "object" } ], "properties": { "detail": { "anyOf": [ { "$ref": "#/definitions/ImageDetail" }, { "type": "null" } ] }, "type": { "enum": [ "input_image" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "audio_url": { "type": "string" }, "type": { "enum": [ "input_audio" ], "type": "string" } }, "required": [ "audio_url", "type" ], "type": "object" }, { "properties": { "encrypted_content": { "type": "string" }, "type": { "enum": [ "encrypted_content" ], "type": "string" } }, "required": [ "encrypted_content", "type" ], "type": "object" } ] }, "HookPromptFragment": { "properties": { "hookRunId": { "type": "string" }, "text": { "type": "string" } }, "required": [ "hookRunId", "text" ], "type": "object" }, "ImageDetail": { "enum": [ "auto", "low", "high", "original" ], "type": "string" }, "ImageGenerationFailure": { "oneOf": [ { "properties": { "limitId": { "type": "string" }, "resetsAt": { "format": "int64", "type": [ "integer", "null" ] }, "type": { "enum": [ "usageLimitExceeded" ], "type": "string" } }, "required": [ "limitId", "type" ], "type": "object" } ] }, "ImageGenerationInputImage": { "properties": { "path": { "$ref": "#/definitions/AbsolutePathBuf" }, "sha256": { "type": "string" } }, "required": [ "path", "sha256" ], "type": "object" }, "LegacyAppPathString": { "type": "string" }, "McpAppDisplayMode": { "enum": [ "inline", "fullscreen" ], "type": "string" }, "McpAppUi": { "properties": { "preferredModelDisplayMode": { "$ref": "#/definitions/McpAppDisplayMode" }, "resourceUri": { "type": "string" } }, "required": [ "preferredModelDisplayMode", "resourceUri" ], "type": "object" }, "McpToolCallAppContext": { "properties": { "actionName": { "type": [ "string", "null" ] }, "appName": { "type": [ "string", "null" ] }, "connectorId": { "type": "string" }, "linkId": { "type": [ "string", "null" ] }, "resourceUri": { "type": [ "string", "null" ] } }, "required": [ "connectorId" ], "type": "object" }, "McpToolCallError": { "properties": { "message": { "type": "string" } }, "required": [ "message" ], "type": "object" }, "McpToolCallResult": { "properties": { "_meta": true, "content": { "items": true, "type": "array" }, "structuredContent": true }, "required": [ "content" ], "type": "object" }, "McpToolCallStatus": { "enum": [ "inProgress", "completed", "failed" ], "type": "string" }, "MemoryCitation": { "properties": { "entries": { "items": { "$ref": "#/definitions/MemoryCitationEntry" }, "type": "array" }, "threadIds": { "items": { "type": "string" }, "type": "array" } }, "required": [ "entries", "threadIds" ], "type": "object" }, "MemoryCitationEntry": { "properties": { "lineEnd": { "format": "uint32", "minimum": 0.0, "type": "integer" }, "lineStart": { "format": "uint32", "minimum": 0.0, "type": "integer" }, "note": { "type": "string" }, "path": { "type": "string" } }, "required": [ "lineEnd", "lineStart", "note", "path" ], "type": "object" }, "MessagePhase": { "oneOf": [ { "enum": [ "commentary" ], "type": "string" }, { "enum": [ "partial_answer" ], "type": "string" }, { "enum": [ "final_answer" ], "type": "string" } ] }, "PatchApplyStatus": { "enum": [ "inProgress", "completed", "failed", "declined" ], "type": "string" }, "PatchChangeKind": { "oneOf": [ { "properties": { "type": { "enum": [ "add" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "delete" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "move_path": { "type": [ "string", "null" ] }, "type": { "enum": [ "update" ], "type": "string" } }, "required": [ "type" ], "type": "object" } ] }, "ReasoningEffort": { "minLength": 1, "type": "string" }, "SubAgentActivityKind": { "enum": [ "started", "interacted", "interrupted", "completed" ], "type": "string" }, "TextElement": { "properties": { "byteRange": { "allOf": [ { "$ref": "#/definitions/ByteRange" } ] }, "placeholder": { "type": [ "string", "null" ] } }, "required": [ "byteRange" ], "type": "object" }, "ThreadItem": { "oneOf": [ { "properties": { "clientId": { "type": [ "string", "null" ] }, "content": { "items": { "$ref": "#/definitions/UserInput" }, "type": "array" }, "id": { "type": "string" }, "type": { "enum": [ "userMessage" ], "type": "string" } }, "required": [ "content", "id", "type" ], "type": "object" }, { "properties": { "fragments": { "items": { "$ref": "#/definitions/HookPromptFragment" }, "type": "array" }, "id": { "type": "string" }, "type": { "enum": [ "hookPrompt" ], "type": "string" } }, "required": [ "fragments", "id", "type" ], "type": "object" }, { "properties": { "delivery": { "anyOf": [ { "$ref": "#/definitions/AgentMessageDelivery" }, { "type": "null" } ], "default": null }, "id": { "type": "string" }, "memoryCitation": { "anyOf": [ { "$ref": "#/definitions/MemoryCitation" }, { "type": "null" } ], "default": null }, "phase": { "anyOf": [ { "$ref": "#/definitions/MessagePhase" }, { "type": "null" } ], "default": null }, "questions": { "default": null, "items": { "$ref": "#/definitions/AsyncUserInputQuestion" }, "type": [ "array", "null" ] }, "text": { "type": "string" }, "type": { "enum": [ "agentMessage" ], "type": "string" } }, "required": [ "id", "text", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "namespace": { "type": [ "string", "null" ] }, "output": { "$ref": "#/definitions/FunctionCallOutputBody" }, "type": { "enum": [ "functionCallOutput" ], "type": "string" } }, "required": [ "id", "name", "output", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "text": { "type": "string" }, "type": { "enum": [ "plan" ], "type": "string" } }, "required": [ "id", "text", "type" ], "type": "object" }, { "properties": { "content": { "default": [], "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "summary": { "default": [], "items": { "type": "string" }, "type": "array" }, "type": { "enum": [ "reasoning" ], "type": "string" } }, "required": [ "id", "type" ], "type": "object" }, { "properties": { "aggregatedOutput": { "type": [ "string", "null" ] }, "command": { "type": "string" }, "commandActions": { "items": { "$ref": "#/definitions/CommandAction" }, "type": "array" }, "cwd": { "allOf": [ { "$ref": "#/definitions/LegacyAppPathString" } ] }, "durationMs": { "format": "int64", "type": [ "integer", "null" ] }, "exitCode": { "format": "int32", "type": [ "integer", "null" ] }, "id": { "type": "string" }, "pluginId": { "default": null, "type": [ "string", "null" ] }, "processId": { "type": [ "string", "null" ] }, "scriptPath": { "default": null, "type": [ "string", "null" ] }, "source": { "allOf": [ { "$ref": "#/definitions/CommandExecutionSource" } ], "default": "agent" }, "status": { "$ref": "#/definitions/CommandExecutionStatus" }, "type": { "enum": [ "commandExecution" ], "type": "string" } }, "required": [ "command", "commandActions", "cwd", "id", "status", "type" ], "type": "object" }, { "properties": { "changes": { "items": { "$ref": "#/definitions/FileUpdateChange" }, "type": "array" }, "id": { "type": "string" }, "status": { "$ref": "#/definitions/PatchApplyStatus" }, "type": { "enum": [ "fileChange" ], "type": "string" } }, "required": [ "changes", "id", "status", "type" ], "type": "object" }, { "properties": { "appContext": { "anyOf": [ { "$ref": "#/definitions/McpToolCallAppContext" }, { "type": "null" } ] }, "arguments": true, "durationMs": { "format": "int64", "type": [ "integer", "null" ] }, "error": { "anyOf": [ { "$ref": "#/definitions/McpToolCallError" }, { "type": "null" } ] }, "id": { "type": "string" }, "mcpAppResourceUri": { "type": [ "string", "null" ] }, "mcpAppUi": { "anyOf": [ { "$ref": "#/definitions/McpAppUi" }, { "type": "null" } ] }, "pluginId": { "type": [ "string", "null" ] }, "readOnlyHint": { "type": [ "boolean", "null" ] }, "result": { "anyOf": [ { "$ref": "#/definitions/McpToolCallResult" }, { "type": "null" } ] }, "server": { "type": "string" }, "status": { "$ref": "#/definitions/McpToolCallStatus" }, "tool": { "type": "string" }, "type": { "enum": [ "mcpToolCall" ], "type": "string" } }, "required": [ "arguments", "id", "server", "status", "tool", "type" ], "type": "object" }, { "properties": { "arguments": true, "contentItems": { "items": { "$ref": "#/definitions/DynamicToolCallOutputContentItem" }, "type": [ "array", "null" ] }, "durationMs": { "format": "int64", "type": [ "integer", "null" ] }, "id": { "type": "string" }, "namespace": { "type": [ "string", "null" ] }, "status": { "$ref": "#/definitions/DynamicToolCallStatus" }, "success": { "type": [ "boolean", "null" ] }, "tool": { "type": "string" }, "type": { "enum": [ "dynamicToolCall" ], "type": "string" } }, "required": [ "arguments", "id", "status", "tool", "type" ], "type": "object" }, { "properties": { "agentsStates": { "additionalProperties": { "$ref": "#/definitions/CollabAgentState" }, "type": "object" }, "id": { "type": "string" }, "model": { "type": [ "string", "null" ] }, "prompt": { "type": [ "string", "null" ] }, "reasoningEffort": { "anyOf": [ { "$ref": "#/definitions/ReasoningEffort" }, { "type": "null" } ] }, "receiverThreadIds": { "items": { "type": "string" }, "type": "array" }, "senderThreadId": { "type": "string" }, "status": { "allOf": [ { "$ref": "#/definitions/CollabAgentToolCallStatus" } ] }, "tool": { "allOf": [ { "$ref": "#/definitions/CollabAgentTool" } ] }, "type": { "enum": [ "collabAgentToolCall" ], "type": "string" } }, "required": [ "agentsStates", "id", "receiverThreadIds", "senderThreadId", "status", "tool", "type" ], "type": "object" }, { "properties": { "agentPath": { "type": "string" }, "agentThreadId": { "type": "string" }, "id": { "type": "string" }, "kind": { "$ref": "#/definitions/SubAgentActivityKind" }, "model": { "type": [ "string", "null" ] }, "reasoningEffort": { "anyOf": [ { "$ref": "#/definitions/ReasoningEffort" }, { "type": "null" } ] }, "type": { "enum": [ "subAgentActivity" ], "type": "string" } }, "required": [ "agentPath", "agentThreadId", "id", "kind", "type" ], "type": "object" }, { "properties": { "action": { "anyOf": [ { "$ref": "#/definitions/WebSearchAction" }, { "type": "null" } ] }, "id": { "type": "string" }, "query": { "type": "string" }, "results": { "default": null, "items": true, "type": [ "array", "null" ] }, "type": { "enum": [ "webSearch" ], "type": "string" } }, "required": [ "id", "query", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "path": { "$ref": "#/definitions/LegacyAppPathString" }, "type": { "enum": [ "imageView" ], "type": "string" } }, "required": [ "id", "path", "type" ], "type": "object" }, { "properties": { "durationMs": { "format": "uint64", "minimum": 0.0, "type": "integer" }, "id": { "type": "string" }, "type": { "enum": [ "sleep" ], "type": "string" } }, "required": [ "durationMs", "id", "type" ], "type": "object" }, { "anyOf": [ { "properties": { "fileId": { "type": "string" } }, "required": [ "fileId" ], "type": "object" }, { "properties": { "result": { "type": "string" } }, "required": [ "result" ], "type": "object" } ], "properties": { "failure": { "anyOf": [ { "$ref": "#/definitions/ImageGenerationFailure" }, { "type": "null" } ], "default": null }, "id": { "type": "string" }, "inputImages": { "items": { "$ref": "#/definitions/ImageGenerationInputImage" }, "type": "array" }, "revisedPrompt": { "type": [ "string", "null" ] }, "savedPath": { "anyOf": [ { "$ref": "#/definitions/AbsolutePathBuf" }, { "type": "null" } ] }, "status": { "type": "string" }, "transparentBackground": { "default": null, "type": [ "boolean", "null" ] }, "type": { "enum": [ "imageGeneration" ], "type": "string" } }, "required": [ "id", "status", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "review": { "type": "string" }, "type": { "enum": [ "enteredReviewMode" ], "type": "string" } }, "required": [ "id", "review", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "review": { "type": "string" }, "type": { "enum": [ "exitedReviewMode" ], "type": "string" } }, "required": [ "id", "review", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "type": { "enum": [ "contextCompaction" ], "type": "string" } }, "required": [ "id", "type" ], "type": "object" } ] }, "UserInput": { "oneOf": [ { "properties": { "text": { "type": "string" }, "text_elements": { "default": [], "items": { "$ref": "#/definitions/TextElement" }, "type": "array" }, "type": { "enum": [ "text" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" }, { "anyOf": [ { "properties": { "url": { "type": "string" } }, "required": [ "url" ], "type": "object" }, { "properties": { "fileId": { "type": "string" } }, "required": [ "fileId" ], "type": "object" } ], "properties": { "detail": { "anyOf": [ { "$ref": "#/definitions/ImageDetail" }, { "type": "null" } ], "default": null }, "type": { "enum": [ "image" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "detail": { "anyOf": [ { "$ref": "#/definitions/ImageDetail" }, { "type": "null" } ], "default": null }, "path": { "type": "string" }, "type": { "enum": [ "localImage" ], "type": "string" } }, "required": [ "path", "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "audio" ], "type": "string" }, "url": { "type": "string" } }, "required": [ "type", "url" ], "type": "object" }, { "properties": { "path": { "type": "string" }, "type": { "enum": [ "localAudio" ], "type": "string" } }, "required": [ "path", "type" ], "type": "object" }, { "properties": { "name": { "type": "string" }, "path": { "type": "string" }, "type": { "enum": [ "skill" ], "type": "string" } }, "required": [ "name", "path", "type" ], "type": "object" }, { "properties": { "name": { "type": "string" }, "path": { "type": "string" }, "type": { "enum": [ "mention" ], "type": "string" } }, "required": [ "name", "path", "type" ], "type": "object" } ] }, "WebSearchAction": { "oneOf": [ { "properties": { "queries": { "items": { "type": "string" }, "type": [ "array", "null" ] }, "query": { "type": [ "string", "null" ] }, "type": { "enum": [ "search" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "openPage" ], "type": "string" }, "url": { "type": [ "string", "null" ] } }, "required": [ "type" ], "type": "object" }, { "properties": { "pattern": { "type": [ "string", "null" ] }, "type": { "enum": [ "findInPage" ], "type": "string" }, "url": { "type": [ "string", "null" ] } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "other" ], "type": "string" } }, "required": [ "type" ], "type": "object" } ] } }, "properties": { "completedAtMs": { "format": "int64", "type": "integer" }, "item": { "$ref": "#/definitions/ThreadItem" }, "threadId": { "type": "string" }, "turnId": { "type": "string" } }, "required": [ "completedAtMs", "item", "threadId", "turnId" ], "type": "object" }