Stream JSON-RPC protocol reference

Every request, response, and notification droid exec exchanges in stream-jsonrpc mode, for protocol version 1.406.0.

This reference lists every message of the protocol droid exec speaks with --input-format stream-jsonrpc --output-format stream-jsonrpc, protocol version 1.406.0. It is generated from the schemas Droid and Factory's SDK validate messages with, and lists the fields those schemas declare for each message's params and result.

Wire format

Each message is one JSON object on one line, ended by a line feed; a carriage return before it is ignored. U+2028 and U+2029 inside a string do not end a line. Both sides send requests, and every request is answered by one response, a result or an error, with the same id. A notification has no id and gets no response.

Where a string must match a pattern, the pattern is written as a JavaScript regular expression literal, with its flags. A string's length is what JavaScript's String.length returns: most emoji count as two, and a family of four people joined by zero-width joiners as eleven.

A required field must be sent. An optional field may be left out, so do not rely on receiving one. Send only the fields and values listed here, and do not take a successful response as proof that Droid read a value this page does not list. When you read a message, do not reject it for a field, an enum value, a form of a union, or a notification type your client does not know: later versions of Droid add them. Where an object may carry other fields, this page says so and does not list them.

Send factoryProtocolVersion as 1.406.0 so Droid can tell which protocol version your client speaks.

Every message

  • jsonrpc ("2.0", required)
  • factoryApiVersion ("1.0.0", required): DEPRECATED - use factoryProtocolVersion for versioning instead
  • factoryProtocolVersion (string, optional)
  • _meta (object, optional)
    • traceparent (string, optional)
    • tracestate (string, optional)
    • requestAttribution (one of 3 objects, optional)
      • When client is "sdk":
        • client ("sdk", required)
        • sdk (object, required)
          • language (enum, required): One of "typescript", "python".
          • version (string, required): At least 1 UTF-16 code unit. At most 64 UTF-16 code units. Matches /^[A-Za-z0-9.+-]+$/.
          • minimumProtocolVersion (string, optional)
        • requestSurface (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios", "daemon-direct", "daemon.direct".
        • execOutputFormat (enum, optional): One of "text", "json", "stream-json", "stream-jsonrpc", "acp", "acp-daemon", "debug".
        • execInputFormat (enum, optional): One of "stream-json", "stream-jsonrpc".
      • When client is one of "web-desktop", "web-app", "web-workspace", "daemon", "cli", "backend":
        • client (enum, required): One of "web-desktop", "web-app", "web-workspace", "daemon", "cli", "backend".
        • requestSurface (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios", "daemon-direct", "daemon.direct".
        • execOutputFormat (enum, optional): One of "text", "json", "stream-json", "stream-jsonrpc", "acp", "acp-daemon", "debug".
        • execInputFormat (enum, optional): One of "stream-json", "stream-jsonrpc".
      • When client is "ios":
        • client ("ios", required)
        • requestSurface (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios", "daemon-direct", "daemon.direct".
        • execOutputFormat (enum, optional): One of "text", "json", "stream-json", "stream-jsonrpc", "acp", "acp-daemon", "debug".
        • execInputFormat (enum, optional): One of "stream-json", "stream-jsonrpc".

Request

The fields of every message, and those below. Where a field is listed in both places, the listing below applies.

  • type ("request", required)
  • id (string, required)
  • method (string, required)
  • params (any, optional)

Result response

The fields of every message, and those below. Where a field is listed in both places, the listing below applies.

  • type ("response", required)
  • id (string, required)
  • result (any, optional)
  • error (never, optional): Must be absent.

Error response

The fields of every message, and those below. Where a field is listed in both places, the listing below applies.

  • type ("response", required)
  • id (string | null, required)
  • result (any, optional)
  • error (object, required)
    • code (enum, required): One of -32700, -32600, -32601, -32602, -32603, -32001, -32004, -32005, -32006, -32800.
    • message (string, required)
    • data (any, optional)

Notification

The fields of every message, and those below. Where a field is listed in both places, the listing below applies.

  • type ("notification", required)
  • method (string, required)
  • params (any, optional)

Error codes

  • -32700: PARSE_ERROR
  • -32600: INVALID_REQUEST
  • -32601: METHOD_NOT_FOUND
  • -32602: INVALID_PARAMS
  • -32603: INTERNAL_ERROR
  • -32001: AUTHENTICATION_ERROR
  • -32004: ENTITY_NOT_FOUND
  • -32005: SESSION_DISCONNECTED
  • -32006: CONFLICT
  • -32800: REQUEST_CANCELLED

Requests you send

Droid answers each of these 48 requests with the result below or an error response.

droid.initialize_session

Params (required)

  • machineId (string, required)
  • cwd (string, required)
  • workspaceId (string, optional)
  • sessionId (string, optional)
  • mcpServers ((one of 3 objects)[], optional)
    • Shape 1:
      • name (string, required)
      • command (string, required)
      • args (string[], optional): Default [].
      • env (Record<string, string>, optional): Default {}.
    • Shape 2:
      • type ("http", required)
      • name (string, required)
      • url (string (uri), required)
      • headers (object[], optional): Default [].
        • name (string, required)
        • value (string, required)
      • oauth (object | false, optional)
        • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
        • resource (string (uri) | false, optional)
        • authorizationServerIssuer (string (uri), optional)
        • clientMetadataUrl (string (uri), optional)
        • clientId (string, optional): At least 1 UTF-16 code unit.
        • clientSecret (string, optional): At least 1 UTF-16 code unit.
        • callbackPort (integer, optional): At least 1. At most 65535.
        • useLocalhostCallback (boolean, optional)
        • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
        • skipOfflineAccessConsentPrompt (boolean, optional)
    • Shape 3:
      • type ("sse", required)
      • name (string, required)
      • url (string (uri), required)
      • headers (object[], optional): Default [].
        • name (string, required)
        • value (string, required)
      • oauth (object | false, optional)
        • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
        • resource (string (uri) | false, optional)
        • authorizationServerIssuer (string (uri), optional)
        • clientMetadataUrl (string (uri), optional)
        • clientId (string, optional): At least 1 UTF-16 code unit.
        • clientSecret (string, optional): At least 1 UTF-16 code unit.
        • callbackPort (integer, optional): At least 1. At most 65535.
        • useLocalhostCallback (boolean, optional)
        • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
        • skipOfflineAccessConsentPrompt (boolean, optional)
  • autonomyMode (enum, optional): Deprecated: use interactionMode + autonomyLevel instead. One of "normal", "spec", "auto-low", "auto-medium", "auto-high".
  • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
  • autonomyLevel (enum, optional): One of "off", "low", "medium", "high".
  • modelId (string, optional)
  • reasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
  • systemPromptOverride (string, optional)
  • systemPrompt (object | string, optional): The string form: matches /\S/.
    • type ("preset", required)
    • preset ("droid", required)
    • append (string, required): Matches /\S/.
  • subagentsInheritSystemPrompt (boolean, optional)
  • specModeModelId (string, optional)
  • specModeReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
  • missionSettings (object, optional)
    • workerModel (string, optional)
    • workerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • validationWorkerModel (string, optional)
    • validationWorkerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • skipScrutiny (boolean, optional)
    • skipUserTesting (boolean, optional)
  • compactionThresholdCheckEnabled (boolean, optional)
  • decompSessionType (enum, optional): One of "orchestrator", "worker".
  • decompMissionId (string, optional)
  • skipPermissionsUnsafe (boolean, optional)
  • sessionLocation (string, optional)
  • sessionSource (one of 18 objects, optional)
    • When platform is "slack":
      • platform ("slack", required)
      • teamId (string | null, optional)
      • channel (string | null, optional)
      • threadTs (string | null, optional)
      • userId (string | null, optional)
      • delegationSessionId (string, required)
      • automationId (string | null, optional)
    • When platform is "web":
      • platform ("web", required)
      • delegationSessionId (string, required)
    • When platform is "api":
      • platform ("api", required)
      • delegationSessionId (string, required)
    • When platform is "sessions_api":
      • platform ("sessions_api", required)
      • delegationSessionId (string, required)
    • When platform is "jira":
      • platform ("jira", required)
      • cloudId (string, required)
      • issueId (string, required)
      • issueKey (string | null, optional)
      • siteId (string | null, optional)
      • projectId (string | null, optional)
      • commentId (string | null, optional)
      • userId (string | null, optional)
      • taskId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "linear":
      • platform ("linear", required)
      • agentSessionId (string, required)
      • issueId (string | null, optional)
      • issueUrl (string | null, optional)
      • issueIdentifier (string | null, optional)
      • organizationId (string | null, optional)
      • userId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "microsoft-teams":
      • platform ("microsoft-teams", required)
      • tenantId (string, required)
      • conversationId (string, required)
      • serviceUrl (string, required)
      • conversationType (enum | null, optional): One of "personal", "groupChat", "channel".
      • rootMessageId (string | null, optional)
      • teamId (string | null, optional)
      • channelId (string | null, optional)
      • userId (string | null, optional)
      • aadObjectId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "google-chat":
      • platform ("google-chat", required)
      • customerId (string, required)
      • spaceName (string, required)
      • spaceType (enum | null, optional): One of "SPACE", "GROUP_CHAT", "DIRECT_MESSAGE".
      • threadName (string | null, optional)
      • userId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "imessage":
      • platform ("imessage", required)
      • delegationSessionId (string, required)
    • When platform is "readiness-remediation":
      • platform ("readiness-remediation", required)
      • reportId (string, required)
      • repoUrl (string, required)
      • criterionId (string, required)
    • When platform is "readiness-evaluation":
      • platform ("readiness-evaluation", required)
      • repoUrl (string, required)
    • When platform is "automation":
      • platform ("automation", required)
      • automationId (string, required)
      • computerId (string, required)
    • When platform is "wiki-generation":
      • platform ("wiki-generation", required)
      • repoUrl (string, required)
    • When platform is "wiki-ci-setup":
      • platform ("wiki-ci-setup", required)
      • repoUrl (string, required)
    • When platform is "tui":
      • platform ("tui", required)
    • When platform is "desktop":
      • platform ("desktop", required)
    • When platform is "acp":
      • platform ("acp", required)
    • When platform is "unknown":
      • platform ("unknown", required)
  • sessionOriginHint (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
  • tags (object[], optional)
    • name (string, required): At least 1 UTF-16 code unit.
    • metadata (Record<string, string>, optional)
  • privacyLevel (enum, optional): One of "private", "organization".
  • organizationId (string, optional)
  • title (string, optional)
  • autoRejectPermissionRequests (boolean, optional)
  • disableBuiltinSkills (boolean, optional)
  • mcpOAuthCallbackUri (string, optional)
  • blockOnStartupLoad (boolean, optional)
  • blockOnMcpLoad (boolean, optional)
  • worktree (boolean, optional)
  • worktreeDir (string, optional)
  • structuredOutputFormat (object | null, optional)
    • type ("json_schema", required)
    • schema (Record<string, any>, required)
  • toolExecutionMode (enum, optional): One of "direct_only", "script_only".
  • allowSubagentsInScripts (boolean, optional)
  • preloadToolIds (string[], optional)
  • fusion (boolean, optional)
  • worktreeLifecycle (enum, optional): One of "ephemeral", "persistent".
  • worktreeBranchMode (enum, optional): One of "copy", "existing".
  • worktreeBaseBranch (string, optional): At least 1 UTF-16 code unit. At most 255 UTF-16 code units. Matches /^(?!-)(?!.*\.\.)[^\s~^:?*[\\\p{Cc}]+$/u.
  • worktreeBaseBranchFromOrigin (boolean, optional)
  • worktreeNewBranch (string, optional): At least 1 UTF-16 code unit. At most 255 UTF-16 code units. Matches /^(?!-)(?!.*\.\.)[^\s~^:?*[\\\p{Cc}]+$/u.
  • worktreePromptSlug (string, optional)
  • worktreeSetupProfileId (string (uuid), optional)
  • callingMetadata (object, optional)
    • callingSessionId (string, required): At least 1 UTF-16 code unit.
    • callingToolUseId (string, required): At least 1 UTF-16 code unit.
  • importedHistory (object, optional)
    • sourceSessionId (string, required): At least 1 UTF-16 code unit.
    • events (string, required)
  • heldBySender (true, optional)
  • startCause (one of 2 objects, optional)
    • When source is "startup":
      • source ("startup", required)
    • When source is "clear":
      • source ("clear", required)
      • previousSessionId (string, required)
  • clientCapabilities (object, optional)
    • nonBlockingAskUser (true, optional)
  • additionalToolIds (string[], optional)
  • enabledToolIds (string[], optional)
  • disabledToolIds (string[], optional)
  • restrictToolIds (string[], optional)

Result (required)

  • sessionId (string, required)
  • hostId (string (uuid), optional)
  • session (object, required)
    • messages (object[], required)
      • id (string, required)
      • role (enum, required): One of "user", "assistant", "tool", "system".
      • content ((one of 7 objects)[], required)
        • When type is "text":
          • id (string, optional)
          • type ("text", required)
          • text (string, required)
        • When type is "image":
          • id (string, optional)
          • type ("image", required)
          • source (object, required)
            • type ("base64", required)
            • data (string, required)
            • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
          • elided (object, optional)
            • bytes (integer, required): At least 0.
            • lines (integer, optional): At least 0.
            • width (integer, optional): Greater than 0.
            • height (integer, optional): Greater than 0.
            • preview (string, optional)
          • generated (boolean, optional)
        • When type is "thinking":
          • id (string, optional)
          • type ("thinking", required)
          • signature (string, required)
          • signatureProvider (enum, optional): One of "anthropic", "openai", "generic-chat-completion-api", "factory", "google", "xai", "bedrock-converse", "unknown".
          • thinking (string, required)
          • durationMs (number, optional): At least 0.
          • progressUpdate (boolean, optional)
        • When type is "redacted_thinking":
          • id (string, optional)
          • type ("redacted_thinking", required)
          • data (string, required)
        • When type is "tool_use":
          • type ("tool_use", required)
          • id (string, required)
          • input (Record<string, any>, required)
          • name (string, required)
          • thoughtSignature (string, optional)
          • namespace (string, optional)
          • scriptExecution (object, optional)
            • runId (string, required)
            • outerToolUseId (string, required)
            • site (number, optional)
            • step (object, optional)
              • offset (number, required)
              • text (string, required)
            • seen (number, optional)
          • scriptOracle (object, optional)
            • callCount (number, required)
            • rows (object[], required)
              • id (string, required)
              • site (number, optional)
              • toolName (string, required)
              • path (string[], required)
              • input (Record<string, any>, required)
              • count (number, required)
        • When type is "tool_result":
          • id (string, optional)
          • type ("tool_result", required)
          • toolUseId (string, required)
          • content (string | (one of 3 objects)[], optional)
            • When type is "text":
              • id (string, optional)
              • type ("text", required)
              • text (string, required)
            • When type is "image":
              • id (string, optional)
              • type ("image", required)
              • source (object, required)
                • type ("base64", required)
                • data (string, required)
                • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
              • elided (object, optional)
                • bytes (integer, required): At least 0.
                • lines (integer, optional): At least 0.
                • width (integer, optional): Greater than 0.
                • height (integer, optional): Greater than 0.
                • preview (string, optional)
              • generated (boolean, optional)
            • When type is "document":
              • id (string, optional)
              • type ("document", required)
              • source (one of 2 objects, required)
                • When type is "base64":
                  • type ("base64", required)
                  • mediaType ("application/pdf", required)
                  • data (string, required)
                  • parsedData (string, optional)
                  • name (string, optional)
                  • path (string, optional)
                • When type is "text":
                  • type ("text", required)
                  • mediaType ("text/plain", required)
                  • data (string, required)
                  • name (string, optional)
                  • mime (string, optional)
              • elided (object, optional)
                • bytes (integer, required): At least 0.
                • lines (integer, optional): At least 0.
                • width (integer, optional): Greater than 0.
                • height (integer, optional): Greater than 0.
                • preview (string, optional)
          • elided (object, optional)
            • bytes (integer, required): At least 0.
            • lines (integer, optional): At least 0.
            • width (integer, optional): Greater than 0.
            • height (integer, optional): Greater than 0.
            • preview (string, optional)
          • isError (boolean, optional)
          • modelContent (string, optional)
          • respondedBy (object, optional)
            • userId (string, required)
            • name (string, optional)
            • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
            • sharedSessionMember (true, optional)
            • receipt (string, optional)
          • modelOnly (boolean, optional)
        • When type is "document":
          • id (string, optional)
          • type ("document", required)
          • source (one of 2 objects, required)
            • When type is "base64":
              • type ("base64", required)
              • mediaType ("application/pdf", required)
              • data (string, required)
              • parsedData (string, optional)
              • name (string, optional)
              • path (string, optional)
            • When type is "text":
              • type ("text", required)
              • mediaType ("text/plain", required)
              • data (string, required)
              • name (string, optional)
              • mime (string, optional)
          • elided (object, optional)
            • bytes (integer, required): At least 0.
            • lines (integer, optional): At least 0.
            • width (integer, optional): Greater than 0.
            • height (integer, optional): Greater than 0.
            • preview (string, optional)
      • createdAt (number, required): Unix timestamp, in milliseconds, when the message was created.
      • updatedAt (number, required): Unix timestamp, in milliseconds, when the message last changed.
      • parentId (string, optional)
      • seq (integer, optional): At least 0.
      • userMessageSource (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • literalText (true, optional)
      • sender (one of 4 objects, optional)
        • When kind is "orchestrator":
          • kind ("orchestrator", required)
          • sessionId (string, required): At least 1 UTF-16 code unit.
        • When kind is "agent":
          • kind ("agent", required)
          • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
          • sessionId (string, required): At least 1 UTF-16 code unit.
        • When kind is "top-level":
          • kind ("top-level", required)
          • sessionId (string, required): At least 1 UTF-16 code unit.
        • When kind is "work-update":
          • kind ("work-update", required)
          • sessions (object[], required): At least 1 item.
            • sessionId (string, required): At least 1 UTF-16 code unit.
            • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
      • author (object, optional)
        • userId (string, required)
        • name (string, optional)
        • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
        • sharedSessionMember (true, optional)
        • receipt (string, optional)
      • docCommentThread (object, optional)
        • threadId (string (uuid), required)
        • doc (one of 3 objects, optional): The unknown form records a doc reference that could not be read, such as one whose kind a newer client added; reportedKind is the kind it carried.
          • When kind is "space":
            • kind ("space", required)
            • spaceId (string (uuid), required)
            • documentId (string (uuid), required)
          • When kind is "local":
            • kind ("local", required)
            • machineId (string, required): At least 1 UTF-16 code unit.
            • path (string, required): At least 1 UTF-16 code unit.
          • When kind is "unknown":
            • kind ("unknown", required)
            • reportedKind (string, optional)
        • documentPath (string, required): At least 1 UTF-16 code unit.
      • sessionRename (object, optional)
        • title (string, required)
      • mentions (object[], optional)
        • userId (string, required)
        • name (string, required)
      • replyTo (string[], optional)
      • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
      • visibility (enum, optional): One of "both", "llm_only", "user_only".
      • systemNotice (true, optional): Marks a notice the harness wrote into the conversation, such as a provider error or a skill activation. The role is unchanged by it, so readers that predate the marker still show its text.
      • noticeKind ("reasoning_effort_disabled", optional): On a system notice: what it reports. More values may be added; treat a value you do not know as unknown. A client that hides system notices should still show the reasoning_effort_disabled kind, because it explains why the reasoning level in use differs from the one selected.
      • reasoningEffortStepDown (object, optional): On a reasoning_effort_disabled notice: the model, the selected reasoning level the organization disabled, and the level that ran instead. Absent on notices written before the field existed.
        • modelId (string, required)
        • requested (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
        • used (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • hookRowId (string, optional): On a notice that repeats a hook's error: the id of the hook row that already shows the error. A client that draws that hook row can leave the notice out.
      • endedEarly (true, optional): Marks an assistant message that ended early. When the session is loaded, a model-owned call of it that has no result is not run or resumed, unless a pending marker reserves that call or a message without the mark also makes it.
      • openaiMessageId (string, optional)
      • openaiPhase (enum | null, optional): One of "commentary", "final_answer".
      • openaiEncryptedContent (string, optional)
      • openaiReasoningId (string, optional)
      • openaiReasoningSummary (string, optional)
      • geminiThoughtSignature (string, optional): @deprecated Use thinking block signature fields with signatureProvider: "google" instead. Do not use in new code.
      • chatCompletionReasoningField (enum, optional): One of "reasoning", "reasoning_content".
      • chatCompletionReasoningContent (string, optional)
      • geminiNativeContent (string, optional)
      • isUserVisible (boolean, optional)
      • isError (boolean, optional)
      • modelId (string, optional)
      • apiProvider (enum, optional): One of "bedrock", "anthropic", "vertex_anthropic", "bedrock_anthropic", "bedrock_converse", "bedrock_openai", "openai", "azure_openai", "azure_anthropic", "google", "xai", "mistral", "fireworks", "baseten", "together", "snowflake", "databricks".
      • routerId (string, optional)
      • reasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • hookEventName (string, optional)
      • hookMatcher (string, optional)
      • hookCommands (object[], optional)
        • command (string, required)
        • timeout (number, optional)
      • hookStatus (enum, optional): One of "executing", "completed", "error".
      • hookResults (object[], optional)
        • exitCode (number, required)
        • stdout (string, required)
        • stderr (string, required)
        • suppressOutput (boolean, optional)
        • cancelled (true, optional): The run's abort ended this hook before it exited; exitCode, stdout and stderr are the cancellation's, not the hook's.
        • error (string, optional): Diagnostic for this hook alone, never its decision: why it failed (it could not run, timed out, printed JSON that does not parse or fails validation, or exited non-zero with plain-text stdout, or with any stdout where onFailure: "block" applies), or, for an exit 2, its stderr, else its plain-text stdout, else its exit code. A JSON block or deny alone does not create a diagnostic. Absent when the hook succeeded or was cancelled, and on rows recorded before this field existed even if the hook failed. A non-zero exitCode alone is not a failure: exit 1 with valid JSON output succeeds, except on a PreToolUse, PostToolUse, UserPromptSubmit or PreCompact hook with onFailure: "block", which fails on any exit other than 0 or 2.
      • hookToolCallId (string, optional)
      • hookParentId (string, optional)
      • hookOrder (number, optional)
      • hookPreventedAction (boolean, optional)
      • hiddenFromUserViews (boolean, optional)
      • hookStartTime (number, optional): Unix timestamp, in milliseconds, when the hook started.
      • hookEndTime (number, optional): Unix timestamp, in milliseconds, when the hook finished.
      • isParallelExecution (boolean, optional)
      • parallelGroupId (string, optional)
    • title (string, optional)
  • hasOlderMessages (boolean, optional)
  • mcpServers ((one of 3 objects)[], optional)
    • Shape 1:
      • name (string, required)
      • command (string, required)
      • args (string[], optional): Default [].
      • env (Record<string, string>, optional): Default {}.
    • Shape 2:
      • type ("http", required)
      • name (string, required)
      • url (string (uri), required)
      • headers (object[], optional): Default [].
        • name (string, required)
        • value (string, required)
      • oauth (object | false, optional)
        • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
        • resource (string (uri) | false, optional)
        • authorizationServerIssuer (string (uri), optional)
        • clientMetadataUrl (string (uri), optional)
        • clientId (string, optional): At least 1 UTF-16 code unit.
        • clientSecret (string, optional): At least 1 UTF-16 code unit.
        • callbackPort (integer, optional): At least 1. At most 65535.
        • useLocalhostCallback (boolean, optional)
        • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
        • skipOfflineAccessConsentPrompt (boolean, optional)
    • Shape 3:
      • type ("sse", required)
      • name (string, required)
      • url (string (uri), required)
      • headers (object[], optional): Default [].
        • name (string, required)
        • value (string, required)
      • oauth (object | false, optional)
        • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
        • resource (string (uri) | false, optional)
        • authorizationServerIssuer (string (uri), optional)
        • clientMetadataUrl (string (uri), optional)
        • clientId (string, optional): At least 1 UTF-16 code unit.
        • clientSecret (string, optional): At least 1 UTF-16 code unit.
        • callbackPort (integer, optional): At least 1. At most 65535.
        • useLocalhostCallback (boolean, optional)
        • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
        • skipOfflineAccessConsentPrompt (boolean, optional)
  • settings (object, required)
    • modelId (string, required)
    • reasoningEffort (enum, required): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • routedModelId (string, optional)
    • routedReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • autonomyMode (enum, optional): Deprecated: use interactionMode + autonomyLevel instead. One of "normal", "spec", "auto-low", "auto-medium", "auto-high".
    • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
    • autonomyLevel (enum, optional): One of "off", "low", "medium", "high".
    • availableAutonomyLevels (enum[], optional): Autonomy levels the user may select under the organization managed maxAutonomyLevel policy. Clients must build autonomy pickers from this list instead of the full AutonomyLevel enum. Each item: one of "off", "low", "medium", "high".
    • specModeModelId (string, optional)
    • specModeReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • missionSettings (object, optional)
      • workerModel (string, optional)
      • workerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • validationWorkerModel (string, optional)
      • validationWorkerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • skipScrutiny (boolean, optional)
      • skipUserTesting (boolean, optional)
    • tags (object[], optional)
      • name (string, required): At least 1 UTF-16 code unit.
      • metadata (Record<string, string>, optional)
    • sandbox (object, optional)
      • enabled (boolean, required)
      • mode (enum, optional): One of "per-command", "whole-process".
    • compactionThresholdCheckEnabled (boolean, optional)
    • toolExecutionMode (enum, optional): One of "direct_only", "script_only".
    • allowSubagentsInScripts (boolean, optional)
    • systemPrompt (object | string, optional): The string form: matches /\S/.
      • type ("preset", required)
      • preset ("droid", required)
      • append (string, required): Matches /\S/.
    • subagentsInheritSystemPrompt (boolean, optional)
    • fusion (boolean, optional)
    • migrationActive (boolean, optional)
    • migrationDirectory (string, optional)
    • sharedFolderPath (string, optional)
    • contentsCloudSync (boolean, optional)
    • hasPendingStandardRestore (boolean, optional)
    • artifacts (object[], optional): At most 100 items.
      • id (string, required): At least 1 UTF-16 code unit. At most 2048 UTF-16 code units.
      • url (string (uri), required): At most 2048 UTF-16 code units.
      • title (string, optional): At most 500 UTF-16 code units.
      • externalId (string, optional): At most 128 UTF-16 code units.
      • provider (enum, required): One of "github", "gitlab", "linear", "jira", "notion", "web", "local", "connector".
      • kind (enum, required): One of "pull_request", "issue", "document", "record", "file", "link".
      • connector (string, optional)
      • fileRole ("spec", optional)
      • action (enum, optional): One of "create", "update", "delete", "view", "close", "merge". Default "create".
      • source (enum, required): One of "tool", "classifier", "user_message".
      • createdAt (string (date-time), required)
      • toolCallId (string, optional)
    • additionalToolIds (string[], optional)
    • enabledToolIds (string[], optional)
    • disabledToolIds (string[], optional)
    • restrictToolIds (string[], optional)
  • gitRepo (object, optional)
    • owner (string, optional)
    • repoName (string, required)
  • availableModels (object[], optional)
    • id (string, required)
    • displayName (string, required)
    • shortDisplayName (string, required)
    • modelProvider (enum, required): One of "anthropic", "openai", "generic-chat-completion-api", "factory", "google", "xai", "bedrock-converse".
    • supportedReasoningEfforts (enum[], required): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • defaultReasoningEffort (enum, required): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • isCustom (boolean, optional): Default false.
    • behavesLikeModelId (string, optional)
    • credentialSource (enum, optional): One of "chatgpt-plan", "openrouter-account", "github-copilot-plan", "vercel-ai-gateway-account".
    • upstreamModelId (string, optional)
    • noImageSupport (boolean, optional)
    • supportsImageGeneration (boolean, optional)
    • tier (enum, optional): One of "standard", "premium", "overage".
    • tokenMultiplier (number, optional)
    • promoLabel (string, optional)
    • kind (enum, optional): One of "concrete", "router".
    • variantBadge (string, optional)
    • isNew (boolean, optional)
    • disabledReasoningEfforts (enum[], optional): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
  • worktree (object, optional)
    • branch (string, required)
    • lifecycle (enum, optional): One of "ephemeral", "persistent".
    • path (string, required)
    • parentWorktreePath (string, optional)
    • repoRoot (string, optional)
    • isNewlyCreated (boolean, required)
  • enforcesQueueOwnership (boolean, optional)

droid.load_session

Params (required)

  • sessionId (string, required)
  • agentTurnOutcomeTurnId (string, optional): At least 1 UTF-16 code unit.
  • mcpServers ((one of 3 objects)[], optional)
    • Shape 1:
      • name (string, required)
      • command (string, required)
      • args (string[], optional): Default [].
      • env (Record<string, string>, optional): Default {}.
    • Shape 2:
      • type ("http", required)
      • name (string, required)
      • url (string (uri), required)
      • headers (object[], optional): Default [].
        • name (string, required)
        • value (string, required)
      • oauth (object | false, optional)
        • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
        • resource (string (uri) | false, optional)
        • authorizationServerIssuer (string (uri), optional)
        • clientMetadataUrl (string (uri), optional)
        • clientId (string, optional): At least 1 UTF-16 code unit.
        • clientSecret (string, optional): At least 1 UTF-16 code unit.
        • callbackPort (integer, optional): At least 1. At most 65535.
        • useLocalhostCallback (boolean, optional)
        • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
        • skipOfflineAccessConsentPrompt (boolean, optional)
    • Shape 3:
      • type ("sse", required)
      • name (string, required)
      • url (string (uri), required)
      • headers (object[], optional): Default [].
        • name (string, required)
        • value (string, required)
      • oauth (object | false, optional)
        • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
        • resource (string (uri) | false, optional)
        • authorizationServerIssuer (string (uri), optional)
        • clientMetadataUrl (string (uri), optional)
        • clientId (string, optional): At least 1 UTF-16 code unit.
        • clientSecret (string, optional): At least 1 UTF-16 code unit.
        • callbackPort (integer, optional): At least 1. At most 65535.
        • useLocalhostCallback (boolean, optional)
        • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
        • skipOfflineAccessConsentPrompt (boolean, optional)
  • loadAllMessages (boolean, optional)
  • messageLimit (integer, optional): Greater than 0.
  • display (boolean, optional)
  • maxBytes (integer, optional): Greater than 0.
  • mcpOAuthCallbackUri (string, optional)
  • sessionOriginHint (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
  • autoRejectPermissionRequests (boolean, optional)
  • disableBuiltinSkills (boolean, optional)
  • sessionLocation (enum, optional): One of "Landing Page - New Session", "Landing Page - New Session from Repo", "Landing Page - Issue", "Side Panel", "Workflow - Landing Page Shortcut", "Workflow - Workflow Page", "Thread - Thread Page", "Linear - Issue Attachment", "Jira - Remote Issue Link", "Review Droid", "copy_session", "Slack Thread", "Jira Delegation", "Slack Thread Delegation", "Linear Agent Delegation", "Microsoft Teams Delegation", "Google Chat Delegation", "iMessage Delegation", "Agent Readiness - Delegation", "Readiness Remediation - Delegation", "Wiki - Delegation", "Computer Setup", "Droid Execution API", "Unknown".
  • sessionSource (one of 18 objects, optional)
    • When platform is "slack":
      • platform ("slack", required)
      • teamId (string | null, optional)
      • channel (string | null, optional)
      • threadTs (string | null, optional)
      • userId (string | null, optional)
      • delegationSessionId (string, required)
      • automationId (string | null, optional)
    • When platform is "web":
      • platform ("web", required)
      • delegationSessionId (string, required)
    • When platform is "api":
      • platform ("api", required)
      • delegationSessionId (string, required)
    • When platform is "sessions_api":
      • platform ("sessions_api", required)
      • delegationSessionId (string, required)
    • When platform is "jira":
      • platform ("jira", required)
      • cloudId (string, required)
      • issueId (string, required)
      • issueKey (string | null, optional)
      • siteId (string | null, optional)
      • projectId (string | null, optional)
      • commentId (string | null, optional)
      • userId (string | null, optional)
      • taskId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "linear":
      • platform ("linear", required)
      • agentSessionId (string, required)
      • issueId (string | null, optional)
      • issueUrl (string | null, optional)
      • issueIdentifier (string | null, optional)
      • organizationId (string | null, optional)
      • userId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "microsoft-teams":
      • platform ("microsoft-teams", required)
      • tenantId (string, required)
      • conversationId (string, required)
      • serviceUrl (string, required)
      • conversationType (enum | null, optional): One of "personal", "groupChat", "channel".
      • rootMessageId (string | null, optional)
      • teamId (string | null, optional)
      • channelId (string | null, optional)
      • userId (string | null, optional)
      • aadObjectId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "google-chat":
      • platform ("google-chat", required)
      • customerId (string, required)
      • spaceName (string, required)
      • spaceType (enum | null, optional): One of "SPACE", "GROUP_CHAT", "DIRECT_MESSAGE".
      • threadName (string | null, optional)
      • userId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "imessage":
      • platform ("imessage", required)
      • delegationSessionId (string, required)
    • When platform is "readiness-remediation":
      • platform ("readiness-remediation", required)
      • reportId (string, required)
      • repoUrl (string, required)
      • criterionId (string, required)
    • When platform is "readiness-evaluation":
      • platform ("readiness-evaluation", required)
      • repoUrl (string, required)
    • When platform is "automation":
      • platform ("automation", required)
      • automationId (string, required)
      • computerId (string, required)
    • When platform is "wiki-generation":
      • platform ("wiki-generation", required)
      • repoUrl (string, required)
    • When platform is "wiki-ci-setup":
      • platform ("wiki-ci-setup", required)
      • repoUrl (string, required)
    • When platform is "tui":
      • platform ("tui", required)
    • When platform is "desktop":
      • platform ("desktop", required)
    • When platform is "acp":
      • platform ("acp", required)
    • When platform is "unknown":
      • platform ("unknown", required)
  • structuredOutputFormat (object | null, optional)
    • type ("json_schema", required)
    • schema (Record<string, any>, required)
  • heldBySender (true, optional)
  • clientCapabilities (object, optional)
    • nonBlockingAskUser (true, optional)
  • additionalToolIds (string[], optional)
  • enabledToolIds (string[], optional)
  • disabledToolIds (string[], optional)

Result (required)

  • session (object, required)
    • messages (object[], required)
      • id (string, required)
      • role (enum, required): One of "user", "assistant", "tool", "system".
      • content ((one of 7 objects)[], required)
        • When type is "text":
          • id (string, optional)
          • type ("text", required)
          • text (string, required)
          • isStreaming (boolean, optional)
        • When type is "thinking":
          • id (string, optional)
          • type ("thinking", required)
          • signature (string, required)
          • signatureProvider (enum, optional): One of "anthropic", "openai", "generic-chat-completion-api", "factory", "google", "xai", "bedrock-converse", "unknown".
          • thinking (string, required)
          • durationMs (number, optional): At least 0.
          • progressUpdate (boolean, optional)
          • isStreaming (boolean, optional)
        • When type is "image":
          • id (string, optional)
          • type ("image", required)
          • source (object, required)
            • type ("base64", required)
            • data (string, required)
            • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
          • elided (object, optional)
            • bytes (integer, required): At least 0.
            • lines (integer, optional): At least 0.
            • width (integer, optional): Greater than 0.
            • height (integer, optional): Greater than 0.
            • preview (string, optional)
          • generated (boolean, optional)
        • When type is "redacted_thinking":
          • id (string, optional)
          • type ("redacted_thinking", required)
          • data (string, required)
        • When type is "tool_use":
          • type ("tool_use", required)
          • id (string, required)
          • input (Record<string, any>, required)
          • name (string, required)
          • thoughtSignature (string, optional)
          • namespace (string, optional)
          • scriptExecution (object, optional)
            • runId (string, required)
            • outerToolUseId (string, required)
            • site (number, optional)
            • step (object, optional)
              • offset (number, required)
              • text (string, required)
            • seen (number, optional)
          • scriptOracle (object, optional)
            • callCount (number, required)
            • rows (object[], required)
              • id (string, required)
              • site (number, optional)
              • toolName (string, required)
              • path (string[], required)
              • input (Record<string, any>, required)
              • count (number, required)
        • When type is "tool_result":
          • id (string, optional)
          • type ("tool_result", required)
          • toolUseId (string, required)
          • content (string | (one of 3 objects)[], optional)
            • When type is "text":
              • id (string, optional)
              • type ("text", required)
              • text (string, required)
            • When type is "image":
              • id (string, optional)
              • type ("image", required)
              • source (object, required)
                • type ("base64", required)
                • data (string, required)
                • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
              • elided (object, optional)
                • bytes (integer, required): At least 0.
                • lines (integer, optional): At least 0.
                • width (integer, optional): Greater than 0.
                • height (integer, optional): Greater than 0.
                • preview (string, optional)
              • generated (boolean, optional)
            • When type is "document":
              • id (string, optional)
              • type ("document", required)
              • source (one of 2 objects, required)
                • When type is "base64":
                  • type ("base64", required)
                  • mediaType ("application/pdf", required)
                  • data (string, required)
                  • parsedData (string, optional)
                  • name (string, optional)
                  • path (string, optional)
                • When type is "text":
                  • type ("text", required)
                  • mediaType ("text/plain", required)
                  • data (string, required)
                  • name (string, optional)
                  • mime (string, optional)
              • elided (object, optional)
                • bytes (integer, required): At least 0.
                • lines (integer, optional): At least 0.
                • width (integer, optional): Greater than 0.
                • height (integer, optional): Greater than 0.
                • preview (string, optional)
          • elided (object, optional)
            • bytes (integer, required): At least 0.
            • lines (integer, optional): At least 0.
            • width (integer, optional): Greater than 0.
            • height (integer, optional): Greater than 0.
            • preview (string, optional)
          • isError (boolean, optional)
          • modelContent (string, optional)
          • respondedBy (object, optional)
            • userId (string, required)
            • name (string, optional)
            • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
            • sharedSessionMember (true, optional)
            • receipt (string, optional)
          • modelOnly (boolean, optional)
        • When type is "document":
          • id (string, optional)
          • type ("document", required)
          • source (one of 2 objects, required)
            • When type is "base64":
              • type ("base64", required)
              • mediaType ("application/pdf", required)
              • data (string, required)
              • parsedData (string, optional)
              • name (string, optional)
              • path (string, optional)
            • When type is "text":
              • type ("text", required)
              • mediaType ("text/plain", required)
              • data (string, required)
              • name (string, optional)
              • mime (string, optional)
          • elided (object, optional)
            • bytes (integer, required): At least 0.
            • lines (integer, optional): At least 0.
            • width (integer, optional): Greater than 0.
            • height (integer, optional): Greater than 0.
            • preview (string, optional)
      • createdAt (number, required): Unix timestamp, in milliseconds, when the message was created.
      • updatedAt (number, required): Unix timestamp, in milliseconds, when the message last changed.
      • parentId (string, optional)
      • seq (integer, optional): At least 0.
      • userMessageSource (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • literalText (true, optional)
      • sender (one of 4 objects, optional)
        • When kind is "orchestrator":
          • kind ("orchestrator", required)
          • sessionId (string, required): At least 1 UTF-16 code unit.
        • When kind is "agent":
          • kind ("agent", required)
          • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
          • sessionId (string, required): At least 1 UTF-16 code unit.
        • When kind is "top-level":
          • kind ("top-level", required)
          • sessionId (string, required): At least 1 UTF-16 code unit.
        • When kind is "work-update":
          • kind ("work-update", required)
          • sessions (object[], required): At least 1 item.
            • sessionId (string, required): At least 1 UTF-16 code unit.
            • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
      • author (object, optional)
        • userId (string, required)
        • name (string, optional)
        • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
        • sharedSessionMember (true, optional)
        • receipt (string, optional)
      • docCommentThread (object, optional)
        • threadId (string (uuid), required)
        • doc (one of 3 objects, optional): The unknown form records a doc reference that could not be read, such as one whose kind a newer client added; reportedKind is the kind it carried.
          • When kind is "space":
            • kind ("space", required)
            • spaceId (string (uuid), required)
            • documentId (string (uuid), required)
          • When kind is "local":
            • kind ("local", required)
            • machineId (string, required): At least 1 UTF-16 code unit.
            • path (string, required): At least 1 UTF-16 code unit.
          • When kind is "unknown":
            • kind ("unknown", required)
            • reportedKind (string, optional)
        • documentPath (string, required): At least 1 UTF-16 code unit.
      • sessionRename (object, optional)
        • title (string, required)
      • mentions (object[], optional)
        • userId (string, required)
        • name (string, required)
      • replyTo (string[], optional)
      • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
      • visibility (enum, optional): One of "both", "llm_only", "user_only".
      • systemNotice (true, optional): Marks a notice the harness wrote into the conversation, such as a provider error or a skill activation. The role is unchanged by it, so readers that predate the marker still show its text.
      • noticeKind ("reasoning_effort_disabled", optional): On a system notice: what it reports. More values may be added; treat a value you do not know as unknown. A client that hides system notices should still show the reasoning_effort_disabled kind, because it explains why the reasoning level in use differs from the one selected.
      • reasoningEffortStepDown (object, optional): On a reasoning_effort_disabled notice: the model, the selected reasoning level the organization disabled, and the level that ran instead. Absent on notices written before the field existed.
        • modelId (string, required)
        • requested (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
        • used (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • hookRowId (string, optional): On a notice that repeats a hook's error: the id of the hook row that already shows the error. A client that draws that hook row can leave the notice out.
      • endedEarly (true, optional): Marks an assistant message that ended early. When the session is loaded, a model-owned call of it that has no result is not run or resumed, unless a pending marker reserves that call or a message without the mark also makes it.
      • openaiMessageId (string, optional)
      • openaiPhase (enum | null, optional): One of "commentary", "final_answer".
      • openaiEncryptedContent (string, optional)
      • openaiReasoningId (string, optional)
      • openaiReasoningSummary (string, optional)
      • geminiThoughtSignature (string, optional): @deprecated Use thinking block signature fields with signatureProvider: "google" instead. Do not use in new code.
      • chatCompletionReasoningField (enum, optional): One of "reasoning", "reasoning_content".
      • chatCompletionReasoningContent (string, optional)
      • geminiNativeContent (string, optional)
      • isUserVisible (boolean, optional)
      • isError (boolean, optional)
      • modelId (string, optional)
      • apiProvider (enum, optional): One of "bedrock", "anthropic", "vertex_anthropic", "bedrock_anthropic", "bedrock_converse", "bedrock_openai", "openai", "azure_openai", "azure_anthropic", "google", "xai", "mistral", "fireworks", "baseten", "together", "snowflake", "databricks".
      • routerId (string, optional)
      • reasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • hookEventName (string, optional)
      • hookMatcher (string, optional)
      • hookCommands (object[], optional)
        • command (string, required)
        • timeout (number, optional)
      • hookStatus (enum, optional): One of "executing", "completed", "error".
      • hookResults (object[], optional)
        • exitCode (number, required)
        • stdout (string, required)
        • stderr (string, required)
        • suppressOutput (boolean, optional)
        • cancelled (true, optional): The run's abort ended this hook before it exited; exitCode, stdout and stderr are the cancellation's, not the hook's.
        • error (string, optional): Diagnostic for this hook alone, never its decision: why it failed (it could not run, timed out, printed JSON that does not parse or fails validation, or exited non-zero with plain-text stdout, or with any stdout where onFailure: "block" applies), or, for an exit 2, its stderr, else its plain-text stdout, else its exit code. A JSON block or deny alone does not create a diagnostic. Absent when the hook succeeded or was cancelled, and on rows recorded before this field existed even if the hook failed. A non-zero exitCode alone is not a failure: exit 1 with valid JSON output succeeds, except on a PreToolUse, PostToolUse, UserPromptSubmit or PreCompact hook with onFailure: "block", which fails on any exit other than 0 or 2.
      • hookToolCallId (string, optional)
      • hookParentId (string, optional)
      • hookOrder (number, optional)
      • hookPreventedAction (boolean, optional)
      • hiddenFromUserViews (boolean, optional)
      • hookStartTime (number, optional): Unix timestamp, in milliseconds, when the hook started.
      • hookEndTime (number, optional): Unix timestamp, in milliseconds, when the hook finished.
      • isParallelExecution (boolean, optional)
      • parallelGroupId (string, optional)
    • title (string, optional)
  • scriptOracles (Record<string, object>, optional)
    • callCount (number, required)
    • rows (object[], required)
      • id (string, required)
      • site (number, optional)
      • toolName (string, required)
      • path (string[], required)
      • input (Record<string, any>, required)
      • count (number, required)
  • agentTurnOutcome (one of 3 objects | null, optional)
    • When resultKind is "structured":
      • type ("agent_turn_outcome", required)
      • turnId (string, required): At least 1 UTF-16 code unit.
      • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
      • usageLimit (enum, optional): One of "workstream_budget", "account".
      • resultKind ("structured", required)
      • result (Record<string, any>, required)
      • schemaFingerprint (string, required): At least 1 UTF-16 code unit.
    • When resultKind is "text":
      • type ("agent_turn_outcome", required)
      • turnId (string, required): At least 1 UTF-16 code unit.
      • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
      • usageLimit (enum, optional): One of "workstream_budget", "account".
      • resultKind ("text", required)
    • When resultKind is "null":
      • type ("agent_turn_outcome", required)
      • turnId (string, required): At least 1 UTF-16 code unit.
      • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
      • usageLimit (enum, optional): One of "workstream_budget", "account".
      • resultKind ("null", required)
  • latestAgentTurnOutcome (one of 3 objects | null, optional)
    • When resultKind is "structured":
      • type ("agent_turn_outcome", required)
      • turnId (string, required): At least 1 UTF-16 code unit.
      • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
      • usageLimit (enum, optional): One of "workstream_budget", "account".
      • resultKind ("structured", required)
      • result (Record<string, any>, required)
      • schemaFingerprint (string, required): At least 1 UTF-16 code unit.
    • When resultKind is "text":
      • type ("agent_turn_outcome", required)
      • turnId (string, required): At least 1 UTF-16 code unit.
      • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
      • usageLimit (enum, optional): One of "workstream_budget", "account".
      • resultKind ("text", required)
    • When resultKind is "null":
      • type ("agent_turn_outcome", required)
      • turnId (string, required): At least 1 UTF-16 code unit.
      • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
      • usageLimit (enum, optional): One of "workstream_budget", "account".
      • resultKind ("null", required)
  • hasOlderMessages (boolean, optional)
  • loopState (object | null, optional)
    • loopId (string, required)
    • status (enum, required): One of "waiting", "running", "due", "stopped", "error".
    • intervalMs (integer, required): At least 5000. At most 86400000.
    • iteration (integer, required): At least 0.
    • startedAt (integer, required): At least 0.
    • updatedAt (integer, required): At least 0.
    • nextRunAt (integer | null, required): At least 0.
    • isDue (boolean, required)
    • lastRunStartedAt (integer, optional): At least 0.
    • lastRunCompletedAt (integer, optional): At least 0.
    • stopReason (enum, optional): One of "user_stopped", "manual_message", "interrupted", "session_closed", "process_exited", "error".
  • hostId (string (uuid), optional)
  • mcpServers ((one of 3 objects)[], optional)
    • Shape 1:
      • name (string, required)
      • command (string, required)
      • args (string[], optional): Default [].
      • env (Record<string, string>, optional): Default {}.
    • Shape 2:
      • type ("http", required)
      • name (string, required)
      • url (string (uri), required)
      • headers (object[], optional): Default [].
        • name (string, required)
        • value (string, required)
      • oauth (object | false, optional)
        • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
        • resource (string (uri) | false, optional)
        • authorizationServerIssuer (string (uri), optional)
        • clientMetadataUrl (string (uri), optional)
        • clientId (string, optional): At least 1 UTF-16 code unit.
        • clientSecret (string, optional): At least 1 UTF-16 code unit.
        • callbackPort (integer, optional): At least 1. At most 65535.
        • useLocalhostCallback (boolean, optional)
        • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
        • skipOfflineAccessConsentPrompt (boolean, optional)
    • Shape 3:
      • type ("sse", required)
      • name (string, required)
      • url (string (uri), required)
      • headers (object[], optional): Default [].
        • name (string, required)
        • value (string, required)
      • oauth (object | false, optional)
        • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
        • resource (string (uri) | false, optional)
        • authorizationServerIssuer (string (uri), optional)
        • clientMetadataUrl (string (uri), optional)
        • clientId (string, optional): At least 1 UTF-16 code unit.
        • clientSecret (string, optional): At least 1 UTF-16 code unit.
        • callbackPort (integer, optional): At least 1. At most 65535.
        • useLocalhostCallback (boolean, optional)
        • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
        • skipOfflineAccessConsentPrompt (boolean, optional)
  • pendingPermissions (object[], optional)
    • toolUses (object[], required)
      • toolUse (object, required)
        • type ("tool_use", required)
        • id (string, required)
        • input (Record<string, any>, required)
        • name (string, required)
        • thoughtSignature (string, optional)
        • namespace (string, optional)
        • scriptExecution (object, optional)
          • runId (string, required)
          • outerToolUseId (string, required)
          • site (number, optional)
          • step (object, optional)
            • offset (number, required)
            • text (string, required)
          • seen (number, optional)
        • scriptOracle (object, optional)
          • callCount (number, required)
          • rows (object[], required)
            • id (string, required)
            • site (number, optional)
            • toolName (string, required)
            • path (string[], required)
            • input (Record<string, any>, required)
            • count (number, required)
      • confirmationType (enum, required): One of "edit", "exec", "create", "ask_user", "exit_spec_mode", "recommend_mission", "propose_mission", "start_mission_run", "apply_patch", "mcp_tool", "sandbox_violation", "droid_shield_violation", "script".
      • details (one of 13 objects, required)
        • When type is "edit":
          • type ("edit", required)
          • filePath (string, required)
          • fileName (string, required)
          • oldContent (string, optional)
          • newContent (string, optional)
        • When type is "exec":
          • type ("exec", required)
          • fullCommand (string, required)
          • command (string, required)
          • extractedCommands (string[], optional)
          • impactLevel (string, optional)
          • riskLevelReason (string, optional)
        • When type is "create":
          • type ("create", required)
          • filePath (string, required)
          • fileName (string, required)
          • content (string, required)
        • When type is "ask_user":
          • type ("ask_user", required)
          • questionnaire (string, required)
          • parsed (object, optional)
            • questions (object[], required)
              • index (number, required)
              • topic (string, required)
              • question (string, required)
              • options (string[], required)
              • multiSelect (boolean, optional)
          • parseError (object, optional)
            • message (string, required)
            • line (number, optional)
        • When type is "exit_spec_mode":
          • type ("exit_spec_mode", required)
          • plan (string, required)
          • title (string, optional)
          • contextSavingsPercent (number, optional)
          • supportsClientStartedHandoff (boolean, optional)
        • When type is "propose_mission":
          • type ("propose_mission", required)
          • proposal (string, required)
          • title (string, optional)
        • When type is "start_mission_run":
          • type ("start_mission_run", required)
          • runningMissionCount (number, required)
          • runningMissionSessionIds (string[], required)
        • When type is "apply_patch":
          • type ("apply_patch", required)
          • filePath (string, required)
          • fileName (string, required)
          • patchContent (string, required)
          • oldContent (string, optional)
          • newContent (string, optional)
          • files (object[], optional)
            • filePath (string, required)
            • fileName (string, required)
            • operation (enum, required): One of "create", "update", "delete".
            • moveTo (string, optional)
            • oldContent (string, optional)
            • newContent (string, optional)
        • When type is "mcp_tool":
          • type ("mcp_tool", required)
          • toolName (string, required)
          • impactLevel (string, required)
          • serverName (string, optional)
          • actualToolName (string, optional)
        • When type is "sandbox_violation":
          • type ("sandbox_violation", required)
          • violatingToolName (string, required)
          • target (string, required)
          • operationType (enum, required): One of "read", "write", "network", "tool".
          • violationType (enum, required): One of "filesystem-read", "filesystem-write", "network", "tool".
          • reason (string, required)
          • violationReason (enum, optional): One of "deny-list", "not-allowed".
          • isOrgDeny (boolean, required)
        • When type is "droid_shield_violation":
          • type ("droid_shield_violation", required)
          • command (string, required)
          • reason (string, required)
        • When type is "recommend_mission":
          • type ("recommend_mission", required)
          • reason (string, required)
        • When type is "script":
          • type ("script", required)
          • impactLevel (string, required)
          • calls (object[], required)
            • toolName (string, required)
            • line (number, required)
            • column (number, required)
            • toolInput (Record<string, any>, required)
            • confirmation (one of 12 objects, required)
              • When type is "edit":
                • type ("edit", required)
                • filePath (string, required)
                • fileName (string, required)
                • oldContent (string, optional)
                • newContent (string, optional)
              • When type is "exec":
                • type ("exec", required)
                • fullCommand (string, required)
                • command (string, required)
                • extractedCommands (string[], optional)
                • impactLevel (string, optional)
                • riskLevelReason (string, optional)
              • When type is "create":
                • type ("create", required)
                • filePath (string, required)
                • fileName (string, required)
                • content (string, required)
              • When type is "ask_user":
                • type ("ask_user", required)
                • questionnaire (string, required)
                • parsed (object, optional)
                  • questions (object[], required)
                    • index (number, required)
                    • topic (string, required)
                    • question (string, required)
                    • options (string[], required)
                    • multiSelect (boolean, optional)
                • parseError (object, optional)
                  • message (string, required)
                  • line (number, optional)
              • When type is "exit_spec_mode":
                • type ("exit_spec_mode", required)
                • plan (string, required)
                • title (string, optional)
                • contextSavingsPercent (number, optional)
                • supportsClientStartedHandoff (boolean, optional)
              • When type is "propose_mission":
                • type ("propose_mission", required)
                • proposal (string, required)
                • title (string, optional)
              • When type is "start_mission_run":
                • type ("start_mission_run", required)
                • runningMissionCount (number, required)
                • runningMissionSessionIds (string[], required)
              • When type is "apply_patch":
                • type ("apply_patch", required)
                • filePath (string, required)
                • fileName (string, required)
                • patchContent (string, required)
                • oldContent (string, optional)
                • newContent (string, optional)
                • files (object[], optional)
                  • filePath (string, required)
                  • fileName (string, required)
                  • operation (enum, required): One of "create", "update", "delete".
                  • moveTo (string, optional)
                  • oldContent (string, optional)
                  • newContent (string, optional)
              • When type is "mcp_tool":
                • type ("mcp_tool", required)
                • toolName (string, required)
                • impactLevel (string, required)
                • serverName (string, optional)
                • actualToolName (string, optional)
              • When type is "sandbox_violation":
                • type ("sandbox_violation", required)
                • violatingToolName (string, required)
                • target (string, required)
                • operationType (enum, required): One of "read", "write", "network", "tool".
                • violationType (enum, required): One of "filesystem-read", "filesystem-write", "network", "tool".
                • reason (string, required)
                • violationReason (enum, optional): One of "deny-list", "not-allowed".
                • isOrgDeny (boolean, required)
              • When type is "droid_shield_violation":
                • type ("droid_shield_violation", required)
                • command (string, required)
                • reason (string, required)
              • When type is "recommend_mission":
                • type ("recommend_mission", required)
                • reason (string, required)
            • alwaysAsk (boolean, optional)
    • options (object[], required)
      • label (string, required)
      • value (enum, required): One of "proceed_once", "proceed_always", "proceed_always_file", "proceed_auto_run", "proceed_auto_run_low", "proceed_auto_run_medium", "proceed_auto_run_high", "proceed_new_session", "proceed_new_session_low", "proceed_new_session_medium", "proceed_new_session_high", "proceed_edit", "proceed_always_tools", "proceed_always_server", "proceed_report_false_positive", "cancel".
    • associatedSessionIds (string[], optional)
    • workerSessionId (string, optional)
    • requestId (string, required)
  • pendingAskUserRequests (object[], optional)
    • toolCallId (string, required)
    • questions (object[], required)
      • index (number, required)
      • topic (string, required)
      • question (string, required)
      • options (string[], required)
      • optionDescriptions (string[], optional)
      • multiSelect (boolean, optional)
      • context (string, optional)
    • blocking (boolean, optional)
    • requestId (string, required)
  • pendingPickOptionsRequests (object[], optional)
    • toolCallId (string, required)
    • title (string, required)
    • hint (string, optional)
    • emptyText (string, optional)
    • rows (object[], required)
      • id (string, required)
      • label (string, required)
      • detail (string, optional)
    • multi (boolean, required)
    • preselectedIds (string[], required)
    • initialSearch (string, optional)
    • requestId (string, required)
  • settings (object, required)
    • modelId (string, required)
    • reasoningEffort (enum, required): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • routedModelId (string, optional)
    • routedReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • autonomyMode (enum, optional): Deprecated: use interactionMode + autonomyLevel instead. One of "normal", "spec", "auto-low", "auto-medium", "auto-high".
    • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
    • autonomyLevel (enum, optional): One of "off", "low", "medium", "high".
    • availableAutonomyLevels (enum[], optional): Autonomy levels the user may select under the organization managed maxAutonomyLevel policy. Clients must build autonomy pickers from this list instead of the full AutonomyLevel enum. Each item: one of "off", "low", "medium", "high".
    • specModeModelId (string, optional)
    • specModeReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • missionSettings (object, optional)
      • workerModel (string, optional)
      • workerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • validationWorkerModel (string, optional)
      • validationWorkerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • skipScrutiny (boolean, optional)
      • skipUserTesting (boolean, optional)
    • tags (object[], optional)
      • name (string, required): At least 1 UTF-16 code unit.
      • metadata (Record<string, string>, optional)
    • sandbox (object, optional)
      • enabled (boolean, required)
      • mode (enum, optional): One of "per-command", "whole-process".
    • compactionThresholdCheckEnabled (boolean, optional)
    • toolExecutionMode (enum, optional): One of "direct_only", "script_only".
    • allowSubagentsInScripts (boolean, optional)
    • systemPrompt (object | string, optional): The string form: matches /\S/.
      • type ("preset", required)
      • preset ("droid", required)
      • append (string, required): Matches /\S/.
    • subagentsInheritSystemPrompt (boolean, optional)
    • fusion (boolean, optional)
    • migrationActive (boolean, optional)
    • migrationDirectory (string, optional)
    • sharedFolderPath (string, optional)
    • contentsCloudSync (boolean, optional)
    • hasPendingStandardRestore (boolean, optional)
    • artifacts (object[], optional): At most 100 items.
      • id (string, required): At least 1 UTF-16 code unit. At most 2048 UTF-16 code units.
      • url (string (uri), required): At most 2048 UTF-16 code units.
      • title (string, optional): At most 500 UTF-16 code units.
      • externalId (string, optional): At most 128 UTF-16 code units.
      • provider (enum, required): One of "github", "gitlab", "linear", "jira", "notion", "web", "local", "connector".
      • kind (enum, required): One of "pull_request", "issue", "document", "record", "file", "link".
      • connector (string, optional)
      • fileRole ("spec", optional)
      • action (enum, optional): One of "create", "update", "delete", "view", "close", "merge". Default "create".
      • source (enum, required): One of "tool", "classifier", "user_message".
      • createdAt (string (date-time), required)
      • toolCallId (string, optional)
    • additionalToolIds (string[], optional)
    • enabledToolIds (string[], optional)
    • disabledToolIds (string[], optional)
    • restrictToolIds (string[], optional)
  • isAgentLoopInProgress (boolean, optional)
  • pendingMessageRequestIds (string[], optional)
  • workingState (enum, optional): One of "idle", "thinking", "authenticating", "streaming_assistant_message", "waiting_for_tool_confirmation", "executing_tool", "compacting_conversation".
  • backgroundWork (integer, optional): At least 0.
  • backgroundProcesses (object, optional)
    • capturedAtMs (number, required)
    • processes (object[], required)
      • id (string, required)
      • pid (number, required)
      • command (string, required)
      • startedAtMs (number, required)
      • toolUseId (string, optional)
      • outputFile (string, optional)
  • activity (enum, optional): One of "authenticating", "awaiting_background_work".
  • queuedMessagesSnapshot (object[], optional)
    • requestId (string, required)
    • queuePlacement (enum, required): One of "end_of_turn", "end_of_loop".
    • author (object, optional)
      • userId (string, required)
      • name (string, optional)
      • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • sharedSessionMember (true, optional)
      • receipt (string, optional)
    • text (string, required)
    • imageCount (number, required)
    • fileCount (number, required)
  • enforcesQueueOwnership (boolean, optional)
  • messageReactions (object[], optional)
    • messageId (string, required): At least 1 UTF-16 code unit.
    • emoji (string, required): At least 1 UTF-16 code unit.
    • userId (string, required): At least 1 UTF-16 code unit.
    • name (string, optional)
  • pendingAttentionRequests (object[], optional)
    • requestId (string, required): At least 1 UTF-16 code unit.
    • path (string, required): At least 1 UTF-16 code unit.
    • heading (object | null, required)
      • slug (string, required)
      • text (string, required)
    • note (string, required)
    • requestedAt (integer, required): At least 0.
  • queuedMessages (object[], optional)
    • messageId (string, optional)
    • text (string, required)
    • content ((one of 2 objects)[], optional): At least 1 item.
      • When type is "text":
        • id (string, optional)
        • type ("text", required)
        • text (string, required)
      • When type is "image":
        • id (string, optional)
        • type ("image", required)
        • source (object, required)
          • type ("base64", required)
          • data (string, required)
          • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
        • elided (object, optional)
          • bytes (integer, required): At least 0.
          • lines (integer, optional): At least 0.
          • width (integer, optional): Greater than 0.
          • height (integer, optional): Greater than 0.
          • preview (string, optional)
        • generated (boolean, optional)
    • images (object[], optional)
      • type ("base64", required)
      • data (string, required)
      • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
    • imagePaths (string[], optional)
    • files ((one of 2 objects)[], optional)
      • When type is "base64":
        • type ("base64", required)
        • mediaType ("application/pdf", required)
        • data (string, required)
        • parsedData (string, optional)
        • name (string, optional)
        • path (string, optional)
      • When type is "text":
        • type ("text", required)
        • mediaType ("text/plain", required)
        • data (string, required)
        • name (string, optional)
        • mime (string, optional)
    • outputFormat (object, optional)
      • type ("json_schema", required)
      • schema (Record<string, any>, required)
    • skipAgentLoop (boolean, optional)
    • queuePlacement (enum, optional): One of "end_of_turn", "end_of_loop".
    • role (enum, optional): One of "user", "assistant", "tool", "system".
    • visibility (enum, optional): One of "both", "llm_only", "user_only".
    • userMessageSource (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
    • sender (one of 4 objects, optional)
      • When kind is "orchestrator":
        • kind ("orchestrator", required)
        • sessionId (string, required): At least 1 UTF-16 code unit.
      • When kind is "agent":
        • kind ("agent", required)
        • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
        • sessionId (string, required): At least 1 UTF-16 code unit.
      • When kind is "top-level":
        • kind ("top-level", required)
        • sessionId (string, required): At least 1 UTF-16 code unit.
      • When kind is "work-update":
        • kind ("work-update", required)
        • sessions (object[], required): At least 1 item.
          • sessionId (string, required): At least 1 UTF-16 code unit.
          • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
    • author (object, optional)
      • userId (string, required)
      • name (string, optional)
      • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • sharedSessionMember (true, optional)
      • receipt (string, optional)
    • replyTo (string[], optional)
    • mentions (object[], optional)
      • userId (string, required)
      • name (string, required)
    • docCommentThread (object, optional)
      • threadId (string (uuid), required)
      • doc (one of 3 objects, optional): The unknown form records a doc reference that could not be read, such as one whose kind a newer client added; reportedKind is the kind it carried.
        • When kind is "space":
          • kind ("space", required)
          • spaceId (string (uuid), required)
          • documentId (string (uuid), required)
        • When kind is "local":
          • kind ("local", required)
          • machineId (string, required): At least 1 UTF-16 code unit.
          • path (string, required): At least 1 UTF-16 code unit.
        • When kind is "unknown":
          • kind ("unknown", required)
          • reportedKind (string, optional)
      • documentPath (string, required): At least 1 UTF-16 code unit.
    • chatSettingsCatalog (object[], optional): At most 300 items.
      • operationId (string, required): At least 1 UTF-16 code unit. At most 160 UTF-16 code units.
      • pageId (string, required): At least 1 UTF-16 code unit. At most 80 UTF-16 code units.
      • section (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units.
      • label (string, required): At least 1 UTF-16 code unit. At most 160 UTF-16 code units.
      • description (string, required): At least 1 UTF-16 code unit. At most 500 UTF-16 code units.
      • kind (enum, required): One of "setting", "resource", "account".
      • riskLevel (enum, required): One of "low", "medium", "high".
      • inputSchema (object, required)
        • type ("object", required)
        • properties (Record<string, any>, required)
        • required (string[], optional)
        • additionalProperties (boolean, optional)
    • activeFile (object, optional)
      • path (string, required)
    • requestId (string, required)
  • gitRepo (object, optional)
    • owner (string, optional)
    • repoName (string, required)
  • cwd (string, optional)
  • updatedAt (integer, optional): Unix epoch seconds At least 0. At most 9999999999.
  • callingSessionId (string, optional)
  • callingToolUseId (string, optional)
  • availableModels (object[], optional)
    • id (string, required)
    • displayName (string, required)
    • shortDisplayName (string, required)
    • modelProvider (enum, required): One of "anthropic", "openai", "generic-chat-completion-api", "factory", "google", "xai", "bedrock-converse".
    • supportedReasoningEfforts (enum[], required): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • defaultReasoningEffort (enum, required): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • isCustom (boolean, optional): Default false.
    • behavesLikeModelId (string, optional)
    • credentialSource (enum, optional): One of "chatgpt-plan", "openrouter-account", "github-copilot-plan", "vercel-ai-gateway-account".
    • upstreamModelId (string, optional)
    • noImageSupport (boolean, optional)
    • supportsImageGeneration (boolean, optional)
    • tier (enum, optional): One of "standard", "premium", "overage".
    • tokenMultiplier (number, optional)
    • promoLabel (string, optional)
    • kind (enum, optional): One of "concrete", "router".
    • variantBadge (string, optional)
    • isNew (boolean, optional)
    • disabledReasoningEfforts (enum[], optional): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
  • tokenUsage (object, optional)
    • inputTokens (number, required)
    • outputTokens (number, required)
    • cacheCreationTokens (number, required)
    • cacheReadTokens (number, required)
    • thinkingTokens (number, required)
    • factoryCredits (number, optional)
    • tokenCountsScope ("byok_only", optional)
  • inclusiveTokenUsage (object, optional)
    • inputTokens (number, required)
    • outputTokens (number, required)
    • cacheCreationTokens (number, required)
    • cacheReadTokens (number, required)
    • thinkingTokens (number, required)
    • factoryCredits (number, optional)
    • tokenCountsScope ("byok_only", optional)
  • lastCallTokenUsage (object, optional)
    • inputTokens (number, required)
    • cacheReadTokens (number, required)
    • outputTokens (number, optional)
  • contextUsageRatio (number, optional): At least 0.
  • mission (object, optional)
    • state (enum, required): One of "planning", "awaiting_input", "initializing", "running", "paused", "orchestrator_turn", "completed".
    • updatedAt (string, optional)
    • title (string, optional)
    • workingDirectory (string, optional)
    • features (object[], required)
      • id (string, required)
      • description (string, required)
      • status (enum, required): One of "pending", "in_progress", "completed", "cancelled".
      • skillName (string, required)
      • preconditions (string[], required)
      • expectedBehavior (string[], required)
      • fulfills (string[], optional)
      • milestone (string, optional)
      • workerSessionIds (string[], optional)
      • currentWorkerSessionId (string | null, optional)
      • completedWorkerSessionId (string | null, optional)
    • progressLog ((one of 11 objects)[], required)
      • When type is "mission_accepted":
        • timestamp (string, required)
        • type ("mission_accepted", required)
        • title (string, required)
      • When type is "mission_paused":
        • timestamp (string, required)
        • type ("mission_paused", required)
        • pauseReason (enum, optional): One of "unrecoverable_usage_402", "feature_retry_limit_exceeded", "scope_growth_limit_exceeded".
      • When type is "mission_resumed":
        • timestamp (string, required)
        • type ("mission_resumed", required)
        • resumeWorkerSessionId (string, optional)
      • When type is "mission_run_started":
        • timestamp (string, required)
        • type ("mission_run_started", required)
        • message (string, optional)
      • When type is "worker_started":
        • timestamp (string, required)
        • type ("worker_started", required)
        • workerSessionId (string, required)
        • spawnId (string, required)
        • featureId (string, optional)
        • modelId (string, optional)
        • substitutedFromModelId (string, optional)
      • When type is "worker_selected_feature":
        • timestamp (string, required)
        • type ("worker_selected_feature", required)
        • workerSessionId (string, required)
        • featureId (string, required)
      • When type is "worker_completed":
        • timestamp (string, required)
        • type ("worker_completed", required)
        • workerSessionId (string, required)
        • featureId (string, required)
        • successState (enum, required): One of "success", "partial", "failure".
        • returnToOrchestrator (boolean, required)
        • commitId (string, optional)
        • repoPath (string, optional)
        • exitCode (number, required)
        • validatorsPassed (boolean, optional)
        • handoff (object, optional)
          • salientSummary (string, optional)
          • whatWasImplemented (string, required)
          • whatWasLeftUndone (string, required)
          • verification (object, required)
            • commandsRun (object[], required)
              • command (string, required)
              • exitCode (number, required)
              • observation (string, required)
            • interactiveChecks (object[], optional)
              • action (string, required)
              • observed (string, required)
          • tests (object, required)
            • added (object[], required)
              • file (string, required)
              • cases (object[], required)
                • name (string, required)
                • verifies (string, required)
            • updated (string[], optional)
            • coverage (string, required)
          • discoveredIssues (object[], required)
            • severity (enum, required): One of "blocking", "non_blocking", "suggestion".
            • description (string, required)
            • suggestedFix (string, optional)
          • skillFeedback (object, optional)
            • followedProcedure (boolean, required)
            • deviations (object[], required)
              • step (string, required)
              • whatIDidInstead (string, required)
              • why (string, required)
            • suggestedChanges (string[], optional)
      • When type is "worker_failed":
        • timestamp (string, required)
        • type ("worker_failed", required)
        • workerSessionId (string, optional)
        • spawnId (string, required)
        • exitCode (number, optional)
        • reason (string, required)
        • failureReason (enum, optional): One of "unrecoverable_usage_402", "worker_exited_without_handoff".
      • When type is "worker_paused":
        • timestamp (string, required)
        • type ("worker_paused", required)
        • workerSessionId (string, required)
        • featureId (string, optional)
      • When type is "handoff_items_dismissed":
        • timestamp (string, required)
        • type ("handoff_items_dismissed", required)
        • dismissals (object[], optional)
          • type (enum, required): One of "discovered_issue", "critical_context", "incomplete_work".
          • sourceFeatureId (string, required)
          • summary (string, required)
          • justification (string, required)
      • When type is "milestone_validation_triggered":
        • timestamp (string, required)
        • type ("milestone_validation_triggered", required)
        • milestone (string, required)
        • featureId (string, required)
    • workerSessionIds (string[], required)
    • workerStates (Record<string, object>, optional)
      • startedAt (string, required)
      • completedAt (string, optional)
      • exitCode (number, optional)
    • tokenUsage (object, optional)
      • inputTokens (number, required)
      • outputTokens (number, required)
      • cacheCreationTokens (number, required)
      • cacheReadTokens (number, required)
      • thinkingTokens (number, required)
      • factoryCredits (number, optional)
      • tokenCountsScope ("byok_only", optional)
    • tokenUsageBySessionId (Record<string, object>, optional)
      • inputTokens (number, required)
      • outputTokens (number, required)
      • cacheCreationTokens (number, required)
      • cacheReadTokens (number, required)
      • thinkingTokens (number, required)
      • factoryCredits (number, optional)
      • tokenCountsScope ("byok_only", optional)
  • decompSessionType (enum, optional): One of "orchestrator", "worker".
  • subagentInvocations (object[], optional)
    • childSessionId (string, required)
    • toolUseCount (number, optional)
    • durationMs (number, optional)
    • status (enum, required): One of "pending", "running", "completed", "failed", "cancelled".
    • subagentType (string, required)
    • description (string, required)
  • taskInvocation (object, optional)
    • childSessionId (string, required)
    • toolUseCount (number, optional)
    • durationMs (number, optional)
    • status (enum, optional): One of "pending", "running", "completed", "failed", "cancelled".
    • subagentType (string, required)
    • description (string, required)

droid.load_session_page

Loads a session; the result arrives as a droid.session_page.

Params (required)

  • sessionId (string, required)
  • agentTurnOutcomeTurnId (string, optional): At least 1 UTF-16 code unit.
  • mcpServers ((one of 3 objects)[], optional)
    • Shape 1:
      • name (string, required)
      • command (string, required)
      • args (string[], optional): Default [].
      • env (Record<string, string>, optional): Default {}.
    • Shape 2:
      • type ("http", required)
      • name (string, required)
      • url (string (uri), required)
      • headers (object[], optional): Default [].
        • name (string, required)
        • value (string, required)
      • oauth (object | false, optional)
        • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
        • resource (string (uri) | false, optional)
        • authorizationServerIssuer (string (uri), optional)
        • clientMetadataUrl (string (uri), optional)
        • clientId (string, optional): At least 1 UTF-16 code unit.
        • clientSecret (string, optional): At least 1 UTF-16 code unit.
        • callbackPort (integer, optional): At least 1. At most 65535.
        • useLocalhostCallback (boolean, optional)
        • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
        • skipOfflineAccessConsentPrompt (boolean, optional)
    • Shape 3:
      • type ("sse", required)
      • name (string, required)
      • url (string (uri), required)
      • headers (object[], optional): Default [].
        • name (string, required)
        • value (string, required)
      • oauth (object | false, optional)
        • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
        • resource (string (uri) | false, optional)
        • authorizationServerIssuer (string (uri), optional)
        • clientMetadataUrl (string (uri), optional)
        • clientId (string, optional): At least 1 UTF-16 code unit.
        • clientSecret (string, optional): At least 1 UTF-16 code unit.
        • callbackPort (integer, optional): At least 1. At most 65535.
        • useLocalhostCallback (boolean, optional)
        • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
        • skipOfflineAccessConsentPrompt (boolean, optional)
  • loadAllMessages (boolean, optional)
  • messageLimit (integer, optional): Greater than 0.
  • display (boolean, optional)
  • maxBytes (integer, optional): Greater than 0.
  • mcpOAuthCallbackUri (string, optional)
  • sessionOriginHint (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
  • autoRejectPermissionRequests (boolean, optional)
  • disableBuiltinSkills (boolean, optional)
  • sessionLocation (enum, optional): One of "Landing Page - New Session", "Landing Page - New Session from Repo", "Landing Page - Issue", "Side Panel", "Workflow - Landing Page Shortcut", "Workflow - Workflow Page", "Thread - Thread Page", "Linear - Issue Attachment", "Jira - Remote Issue Link", "Review Droid", "copy_session", "Slack Thread", "Jira Delegation", "Slack Thread Delegation", "Linear Agent Delegation", "Microsoft Teams Delegation", "Google Chat Delegation", "iMessage Delegation", "Agent Readiness - Delegation", "Readiness Remediation - Delegation", "Wiki - Delegation", "Computer Setup", "Droid Execution API", "Unknown".
  • sessionSource (one of 18 objects, optional)
    • When platform is "slack":
      • platform ("slack", required)
      • teamId (string | null, optional)
      • channel (string | null, optional)
      • threadTs (string | null, optional)
      • userId (string | null, optional)
      • delegationSessionId (string, required)
      • automationId (string | null, optional)
    • When platform is "web":
      • platform ("web", required)
      • delegationSessionId (string, required)
    • When platform is "api":
      • platform ("api", required)
      • delegationSessionId (string, required)
    • When platform is "sessions_api":
      • platform ("sessions_api", required)
      • delegationSessionId (string, required)
    • When platform is "jira":
      • platform ("jira", required)
      • cloudId (string, required)
      • issueId (string, required)
      • issueKey (string | null, optional)
      • siteId (string | null, optional)
      • projectId (string | null, optional)
      • commentId (string | null, optional)
      • userId (string | null, optional)
      • taskId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "linear":
      • platform ("linear", required)
      • agentSessionId (string, required)
      • issueId (string | null, optional)
      • issueUrl (string | null, optional)
      • issueIdentifier (string | null, optional)
      • organizationId (string | null, optional)
      • userId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "microsoft-teams":
      • platform ("microsoft-teams", required)
      • tenantId (string, required)
      • conversationId (string, required)
      • serviceUrl (string, required)
      • conversationType (enum | null, optional): One of "personal", "groupChat", "channel".
      • rootMessageId (string | null, optional)
      • teamId (string | null, optional)
      • channelId (string | null, optional)
      • userId (string | null, optional)
      • aadObjectId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "google-chat":
      • platform ("google-chat", required)
      • customerId (string, required)
      • spaceName (string, required)
      • spaceType (enum | null, optional): One of "SPACE", "GROUP_CHAT", "DIRECT_MESSAGE".
      • threadName (string | null, optional)
      • userId (string | null, optional)
      • delegationSessionId (string, required)
    • When platform is "imessage":
      • platform ("imessage", required)
      • delegationSessionId (string, required)
    • When platform is "readiness-remediation":
      • platform ("readiness-remediation", required)
      • reportId (string, required)
      • repoUrl (string, required)
      • criterionId (string, required)
    • When platform is "readiness-evaluation":
      • platform ("readiness-evaluation", required)
      • repoUrl (string, required)
    • When platform is "automation":
      • platform ("automation", required)
      • automationId (string, required)
      • computerId (string, required)
    • When platform is "wiki-generation":
      • platform ("wiki-generation", required)
      • repoUrl (string, required)
    • When platform is "wiki-ci-setup":
      • platform ("wiki-ci-setup", required)
      • repoUrl (string, required)
    • When platform is "tui":
      • platform ("tui", required)
    • When platform is "desktop":
      • platform ("desktop", required)
    • When platform is "acp":
      • platform ("acp", required)
    • When platform is "unknown":
      • platform ("unknown", required)
  • structuredOutputFormat (object | null, optional)
    • type ("json_schema", required)
    • schema (Record<string, any>, required)
  • heldBySender (true, optional)
  • clientCapabilities (object, optional)
    • nonBlockingAskUser (true, optional)
  • additionalToolIds (string[], optional)
  • enabledToolIds (string[], optional)
  • disabledToolIds (string[], optional)

Result (required)

  • accepted (true, required)

droid.unload_session

Params (required): an empty object.

Result (required): an empty object.

droid.add_user_message

Params (required)

  • messageId (string, optional)
  • text (string, required)
  • content ((one of 2 objects)[], optional): At least 1 item.
    • When type is "text":
      • id (string, optional)
      • type ("text", required)
      • text (string, required)
    • When type is "image":
      • id (string, optional)
      • type ("image", required)
      • source (object, required)
        • type ("base64", required)
        • data (string, required)
        • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
      • elided (object, optional)
        • bytes (integer, required): At least 0.
        • lines (integer, optional): At least 0.
        • width (integer, optional): Greater than 0.
        • height (integer, optional): Greater than 0.
        • preview (string, optional)
      • generated (boolean, optional)
  • images (object[], optional)
    • type ("base64", required)
    • data (string, required)
    • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
  • imagePaths (string[], optional)
  • files ((one of 2 objects)[], optional)
    • When type is "base64":
      • type ("base64", required)
      • mediaType ("application/pdf", required)
      • data (string, required)
      • parsedData (string, optional)
      • name (string, optional)
      • path (string, optional)
    • When type is "text":
      • type ("text", required)
      • mediaType ("text/plain", required)
      • data (string, required)
      • name (string, optional)
      • mime (string, optional)
  • outputFormat (object, optional)
    • type ("json_schema", required)
    • schema (Record<string, any>, required)
  • skipAgentLoop (boolean, optional)
  • queuePlacement (enum, optional): One of "end_of_turn", "end_of_loop".
  • role (enum, optional): One of "user", "assistant", "tool", "system".
  • visibility (enum, optional): One of "both", "llm_only", "user_only".
  • userMessageSource (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
  • sender (one of 4 objects, optional)
    • When kind is "orchestrator":
      • kind ("orchestrator", required)
      • sessionId (string, required): At least 1 UTF-16 code unit.
    • When kind is "agent":
      • kind ("agent", required)
      • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
      • sessionId (string, required): At least 1 UTF-16 code unit.
    • When kind is "top-level":
      • kind ("top-level", required)
      • sessionId (string, required): At least 1 UTF-16 code unit.
    • When kind is "work-update":
      • kind ("work-update", required)
      • sessions (object[], required): At least 1 item.
        • sessionId (string, required): At least 1 UTF-16 code unit.
        • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
  • author (object, optional)
    • userId (string, required)
    • name (string, optional)
    • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
    • sharedSessionMember (true, optional)
    • receipt (string, optional)
  • replyTo (string[], optional)
  • mentions (object[], optional)
    • userId (string, required)
    • name (string, required)
  • docCommentThread (object, optional)
    • threadId (string (uuid), required)
    • doc (one of 2 objects, required)
      • When kind is "space":
        • kind ("space", required)
        • spaceId (string (uuid), required)
        • documentId (string (uuid), required)
      • When kind is "local":
        • kind ("local", required)
        • machineId (string, required): At least 1 UTF-16 code unit.
        • path (string, required): At least 1 UTF-16 code unit.
    • documentPath (string, required): At least 1 UTF-16 code unit.
  • chatSettingsCatalog (object[], optional): At most 300 items.
    • operationId (string, required): At least 1 UTF-16 code unit. At most 160 UTF-16 code units.
    • pageId (string, required): At least 1 UTF-16 code unit. At most 80 UTF-16 code units.
    • section (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units.
    • label (string, required): At least 1 UTF-16 code unit. At most 160 UTF-16 code units.
    • description (string, required): At least 1 UTF-16 code unit. At most 500 UTF-16 code units.
    • kind (enum, required): One of "setting", "resource", "account".
    • riskLevel (enum, required): One of "low", "medium", "high".
    • inputSchema (object, required)
      • type ("object", required)
      • properties (Record<string, any>, required)
      • required (string[], optional)
      • additionalProperties (boolean, optional)
  • activeFile (object, optional)
    • path (string, required)

Result (required): an empty object.

droid.admit_session_event

Params (required)

  • sessionId (string, required): At least 1 UTF-16 code unit.
  • messageId (string, required): At least 1 UTF-16 code unit.
  • text (string, required): At least 1 UTF-16 code unit.

Result (required): an empty object.

droid.withdraw_session_event

Params (required)

  • messageId (string, required): At least 1 UTF-16 code unit.

Result (required)

  • withdrawn (boolean, required)

droid.append_messages

Params (required)

  • messages (object[], required): At least 1 item.
    • id (string, required)
    • role (enum, required): One of "user", "assistant", "tool", "system".
    • content ((one of 7 objects)[], required)
      • When type is "text":
        • id (string, optional)
        • type ("text", required)
        • text (string, required)
      • When type is "image":
        • id (string, optional)
        • type ("image", required)
        • source (object, required)
          • type ("base64", required)
          • data (string, required)
          • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
        • elided (object, optional)
          • bytes (integer, required): At least 0.
          • lines (integer, optional): At least 0.
          • width (integer, optional): Greater than 0.
          • height (integer, optional): Greater than 0.
          • preview (string, optional)
        • generated (boolean, optional)
      • When type is "thinking":
        • id (string, optional)
        • type ("thinking", required)
        • signature (string, required)
        • signatureProvider (enum, optional): One of "anthropic", "openai", "generic-chat-completion-api", "factory", "google", "xai", "bedrock-converse", "unknown".
        • thinking (string, required)
        • durationMs (number, optional): At least 0.
        • progressUpdate (boolean, optional)
      • When type is "redacted_thinking":
        • id (string, optional)
        • type ("redacted_thinking", required)
        • data (string, required)
      • When type is "tool_use":
        • type ("tool_use", required)
        • id (string, required)
        • input (Record<string, any>, required)
        • name (string, required)
        • thoughtSignature (string, optional)
        • namespace (string, optional)
        • scriptExecution (object, optional)
          • runId (string, required)
          • outerToolUseId (string, required)
          • site (number, optional)
          • step (object, optional)
            • offset (number, required)
            • text (string, required)
          • seen (number, optional)
        • scriptOracle (object, optional)
          • callCount (number, required)
          • rows (object[], required)
            • id (string, required)
            • site (number, optional)
            • toolName (string, required)
            • path (string[], required)
            • input (Record<string, any>, required)
            • count (number, required)
      • When type is "tool_result":
        • id (string, optional)
        • type ("tool_result", required)
        • toolUseId (string, required)
        • content (string | (one of 3 objects)[], optional)
          • When type is "text":
            • id (string, optional)
            • type ("text", required)
            • text (string, required)
          • When type is "image":
            • id (string, optional)
            • type ("image", required)
            • source (object, required)
              • type ("base64", required)
              • data (string, required)
              • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
            • elided (object, optional)
              • bytes (integer, required): At least 0.
              • lines (integer, optional): At least 0.
              • width (integer, optional): Greater than 0.
              • height (integer, optional): Greater than 0.
              • preview (string, optional)
            • generated (boolean, optional)
          • When type is "document":
            • id (string, optional)
            • type ("document", required)
            • source (one of 2 objects, required)
              • When type is "base64":
                • type ("base64", required)
                • mediaType ("application/pdf", required)
                • data (string, required)
                • parsedData (string, optional)
                • name (string, optional)
                • path (string, optional)
              • When type is "text":
                • type ("text", required)
                • mediaType ("text/plain", required)
                • data (string, required)
                • name (string, optional)
                • mime (string, optional)
            • elided (object, optional)
              • bytes (integer, required): At least 0.
              • lines (integer, optional): At least 0.
              • width (integer, optional): Greater than 0.
              • height (integer, optional): Greater than 0.
              • preview (string, optional)
        • elided (object, optional)
          • bytes (integer, required): At least 0.
          • lines (integer, optional): At least 0.
          • width (integer, optional): Greater than 0.
          • height (integer, optional): Greater than 0.
          • preview (string, optional)
        • isError (boolean, optional)
        • modelContent (string, optional)
        • respondedBy (object, optional)
          • userId (string, required)
          • name (string, optional)
          • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
          • sharedSessionMember (true, optional)
          • receipt (string, optional)
        • modelOnly (boolean, optional)
      • When type is "document":
        • id (string, optional)
        • type ("document", required)
        • source (one of 2 objects, required)
          • When type is "base64":
            • type ("base64", required)
            • mediaType ("application/pdf", required)
            • data (string, required)
            • parsedData (string, optional)
            • name (string, optional)
            • path (string, optional)
          • When type is "text":
            • type ("text", required)
            • mediaType ("text/plain", required)
            • data (string, required)
            • name (string, optional)
            • mime (string, optional)
        • elided (object, optional)
          • bytes (integer, required): At least 0.
          • lines (integer, optional): At least 0.
          • width (integer, optional): Greater than 0.
          • height (integer, optional): Greater than 0.
          • preview (string, optional)
    • createdAt (number, required): Unix timestamp, in milliseconds, when the message was created.
    • updatedAt (number, required): Unix timestamp, in milliseconds, when the message last changed.
    • parentId (string, optional)
    • seq (integer, optional): At least 0.
    • userMessageSource (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
    • literalText (true, optional)
    • sender (one of 4 objects, optional)
      • When kind is "orchestrator":
        • kind ("orchestrator", required)
        • sessionId (string, required): At least 1 UTF-16 code unit.
      • When kind is "agent":
        • kind ("agent", required)
        • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
        • sessionId (string, required): At least 1 UTF-16 code unit.
      • When kind is "top-level":
        • kind ("top-level", required)
        • sessionId (string, required): At least 1 UTF-16 code unit.
      • When kind is "work-update":
        • kind ("work-update", required)
        • sessions (object[], required): At least 1 item.
          • sessionId (string, required): At least 1 UTF-16 code unit.
          • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
    • author (object, optional)
      • userId (string, required)
      • name (string, optional)
      • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • sharedSessionMember (true, optional)
      • receipt (string, optional)
    • docCommentThread (object, optional)
      • threadId (string (uuid), required)
      • doc (one of 3 objects, optional): The unknown form records a doc reference that could not be read, such as one whose kind a newer client added; reportedKind is the kind it carried.
        • When kind is "space":
          • kind ("space", required)
          • spaceId (string (uuid), required)
          • documentId (string (uuid), required)
        • When kind is "local":
          • kind ("local", required)
          • machineId (string, required): At least 1 UTF-16 code unit.
          • path (string, required): At least 1 UTF-16 code unit.
        • When kind is "unknown":
          • kind ("unknown", required)
          • reportedKind (string, optional)
      • documentPath (string, required): At least 1 UTF-16 code unit.
    • sessionRename (object, optional)
      • title (string, required)
    • mentions (object[], optional)
      • userId (string, required)
      • name (string, required)
    • replyTo (string[], optional)
    • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
    • visibility ("user_only", required)
    • systemNotice (true, optional): Marks a notice the harness wrote into the conversation, such as a provider error or a skill activation. The role is unchanged by it, so readers that predate the marker still show its text.
    • noticeKind ("reasoning_effort_disabled", optional): On a system notice: what it reports. More values may be added; treat a value you do not know as unknown. A client that hides system notices should still show the reasoning_effort_disabled kind, because it explains why the reasoning level in use differs from the one selected.
    • reasoningEffortStepDown (object, optional): On a reasoning_effort_disabled notice: the model, the selected reasoning level the organization disabled, and the level that ran instead. Absent on notices written before the field existed.
      • modelId (string, required)
      • requested (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • used (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • hookRowId (string, optional): On a notice that repeats a hook's error: the id of the hook row that already shows the error. A client that draws that hook row can leave the notice out.
    • endedEarly (true, optional): Marks an assistant message that ended early. When the session is loaded, a model-owned call of it that has no result is not run or resumed, unless a pending marker reserves that call or a message without the mark also makes it.
    • openaiMessageId (string, optional)
    • openaiPhase (enum | null, optional): One of "commentary", "final_answer".
    • openaiEncryptedContent (string, optional)
    • openaiReasoningId (string, optional)
    • openaiReasoningSummary (string, optional)
    • geminiThoughtSignature (string, optional): @deprecated Use thinking block signature fields with signatureProvider: "google" instead. Do not use in new code.
    • chatCompletionReasoningField (enum, optional): One of "reasoning", "reasoning_content".
    • chatCompletionReasoningContent (string, optional)
    • geminiNativeContent (string, optional)
    • isUserVisible (boolean, optional)
    • isError (boolean, optional)
    • modelId (string, optional)
    • apiProvider (enum, optional): One of "bedrock", "anthropic", "vertex_anthropic", "bedrock_anthropic", "bedrock_converse", "bedrock_openai", "openai", "azure_openai", "azure_anthropic", "google", "xai", "mistral", "fireworks", "baseten", "together", "snowflake", "databricks".
    • routerId (string, optional)
    • reasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • hookEventName (string, optional)
    • hookMatcher (string, optional)
    • hookCommands (object[], optional)
      • command (string, required)
      • timeout (number, optional)
    • hookStatus (enum, optional): One of "executing", "completed", "error".
    • hookResults (object[], optional)
      • exitCode (number, required)
      • stdout (string, required)
      • stderr (string, required)
      • suppressOutput (boolean, optional)
      • cancelled (true, optional): The run's abort ended this hook before it exited; exitCode, stdout and stderr are the cancellation's, not the hook's.
      • error (string, optional): Diagnostic for this hook alone, never its decision: why it failed (it could not run, timed out, printed JSON that does not parse or fails validation, or exited non-zero with plain-text stdout, or with any stdout where onFailure: "block" applies), or, for an exit 2, its stderr, else its plain-text stdout, else its exit code. A JSON block or deny alone does not create a diagnostic. Absent when the hook succeeded or was cancelled, and on rows recorded before this field existed even if the hook failed. A non-zero exitCode alone is not a failure: exit 1 with valid JSON output succeeds, except on a PreToolUse, PostToolUse, UserPromptSubmit or PreCompact hook with onFailure: "block", which fails on any exit other than 0 or 2.
    • hookToolCallId (string, optional)
    • hookParentId (string, optional)
    • hookOrder (number, optional)
    • hookPreventedAction (boolean, optional)
    • hiddenFromUserViews (boolean, optional)
    • hookStartTime (number, optional): Unix timestamp, in milliseconds, when the hook started.
    • hookEndTime (number, optional): Unix timestamp, in milliseconds, when the hook finished.
    • isParallelExecution (boolean, optional)
    • parallelGroupId (string, optional)

Result (required): an empty object.

droid.resolve_queued_user_message

Params (required)

  • When action is "update_queue":
    • requestId (string, required)
    • action ("update_queue", required)
    • queuePlacement (enum, required): One of "end_of_turn", "end_of_loop".
    • author (object, optional)
      • userId (string, required)
      • name (string, optional)
      • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • sharedSessionMember (true, optional)
      • receipt (string, optional)
  • When action is "delete":
    • requestId (string, required)
    • action ("delete", required)
    • author (object, optional)
      • userId (string, required)
      • name (string, optional)
      • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • sharedSessionMember (true, optional)
      • receipt (string, optional)

Result (required): an empty object.

droid.close_session

Params (required)

  • reason (enum, optional): One of "clear", "logout", "prompt_input_exit", "other".

Result (required): an empty object.

droid.interrupt_session

Params (required)

  • reason (enum, optional): One of "user", "shutdown".

Result (required): an empty object.

droid.kill_worker_session

Params (required)

  • workerSessionId (string, required)

Result (required): an empty object.

droid.update_session_settings

Params (required)

  • Shape 1:
    • modelId (string, optional)
    • reasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • autonomyMode (enum, optional): Deprecated: use interactionMode + autonomyLevel instead. One of "normal", "spec", "auto-low", "auto-medium", "auto-high".
    • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
    • autonomyLevel (enum, optional): One of "off", "low", "medium", "high".
    • specModeModelId (string | null, optional)
    • specModeReasoningEffort (enum | null, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • missionSettings (object, optional)
      • workerModel (string, optional)
      • workerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • validationWorkerModel (string, optional)
      • validationWorkerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • skipScrutiny (boolean, optional)
      • skipUserTesting (boolean, optional)
    • tags (object[], optional): Replaces the whole tag list. To change only the tags it names, send tagPatch instead; a request carrying both is rejected.
      • name (string, required): At least 1 UTF-16 code unit.
      • metadata (Record<string, string>, optional)
    • tagPatch (Record<string, Record<string, string | null> | null>, optional): Each key: at least 1 UTF-16 code unit.
    • missionMachines (never, optional): Must be absent.
    • compactionTokenLimit (number, optional): Greater than 0: for zero or a negative number the CLI answers INVALID_PARAMS.
    • compactionThresholdCheckEnabled (boolean, optional)
    • author (object, optional)
      • userId (string, required)
      • name (string, optional)
      • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • sharedSessionMember (true, optional)
      • receipt (string, optional)
    • fusion (boolean, optional)
    • additionalToolIds (string[], optional)
    • enabledToolIds (string[], optional)
    • disabledToolIds (string[], optional)
    • restrictToolIds (string[], optional)
  • Shape 2:
    • missionMachines (object, required)
      • add (object[], optional)
        • target (one of 2 objects, required)
          • When kind is "computer":
            • kind ("computer", required)
            • computerId (string, required): At least 1 UTF-16 code unit.
            • size (object, optional)
              • cpuMillis (integer, required): Greater than 0.
              • memoryMiB (integer, required): Greater than 0.
          • When kind is "template":
            • kind ("template", required)
            • templateId (string, required): At least 1 UTF-16 code unit.
            • size (object, optional)
              • cpuMillis (integer, required): Greater than 0.
              • memoryMiB (integer, required): Greater than 0.
        • description (string, optional)
      • remove ((one of 2 objects)[], optional)
        • When mode is "windDown":
          • label (string, required): At least 1 UTF-16 code unit.
          • mode ("windDown", required)
          • windDownMs (integer, required): Greater than 0. At most 86400000.
        • When mode is "stopNow":
          • label (string, required): At least 1 UTF-16 code unit.
          • mode ("stopNow", required)
      • defaultMachineLabel (string | null, optional): At least 1 UTF-16 code unit.
      • descriptions (Record<string, string>, optional)
      • sizes (Record<string, object | null>, optional)
        • cpuMillis (integer, required): Greater than 0.
        • memoryMiB (integer, required): Greater than 0.
      • seed (object, optional)
        • defaultMachineTarget (one of 2 objects, optional)
          • When kind is "computer":
            • kind ("computer", required)
            • computerId (string, required): At least 1 UTF-16 code unit.
            • size (object, optional)
              • cpuMillis (integer, required): Greater than 0.
              • memoryMiB (integer, required): Greater than 0.
          • When kind is "template":
            • kind ("template", required)
            • templateId (string, required): At least 1 UTF-16 code unit.
            • size (object, optional)
              • cpuMillis (integer, required): Greater than 0.
              • memoryMiB (integer, required): Greater than 0.
    • author (object, optional)
      • userId (string, required)
      • name (string, optional)
      • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • sharedSessionMember (true, optional)
      • receipt (string, optional)
    • modelId (never, optional): Must be absent.
    • reasoningEffort (never, optional): Must be absent.
    • autonomyMode (never, optional): Must be absent.
    • interactionMode (never, optional): Must be absent.
    • autonomyLevel (never, optional): Must be absent.
    • specModeModelId (never, optional): Must be absent.
    • specModeReasoningEffort (never, optional): Must be absent.
    • missionSettings (never, optional): Must be absent.
    • tags (never, optional): Must be absent.
    • tagPatch (never, optional): Must be absent.
    • compactionTokenLimit (never, optional): Must be absent.
    • compactionThresholdCheckEnabled (never, optional): Must be absent.
    • additionalToolIds (never, optional): Must be absent.
    • enabledToolIds (never, optional): Must be absent.
    • disabledToolIds (never, optional): Must be absent.
    • restrictToolIds (never, optional): Must be absent.
    • fusion (never, optional): Must be absent.

Result (required): an empty object.

droid.change_working_directory

Params (required)

  • workingDirectory (string, required): Not blank: for an empty or whitespace-only string the CLI answers INVALID_PARAMS.

Result (required)

  • resolvedPath (string, required)

droid.toggle_mcp_server

Params (required)

  • serverName (string, required)
  • enabled (boolean, required)
  • settingsLevel ("user", required)

Result (required)

  • success (boolean, required)

droid.authenticate_mcp_server

Params (required)

  • serverName (string, required)

Result (required)

  • success (boolean, required)

droid.cancel_mcp_auth

Params (required)

  • serverName (string, required)

Result (required)

  • success (boolean, required)

droid.clear_mcp_auth

Params (required)

  • serverName (string, required)

Result (required)

  • success (boolean, required)

droid.add_mcp_server

Params (required)

  • name (string, required)
  • type (enum, required): One of "stdio", "http", "sse".
  • url (string, optional): A nonempty string is required when type is "http" or "sse": without it the CLI answers INVALID_PARAMS.
  • headers (Record<string, string>, optional)
  • oauth (object | false, optional)
    • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
    • resource (string (uri) | false, optional)
    • authorizationServerIssuer (string (uri), optional)
    • clientMetadataUrl (string (uri), optional)
    • clientId (string, optional): At least 1 UTF-16 code unit.
    • clientSecret (string, optional): At least 1 UTF-16 code unit.
    • callbackPort (integer, optional): At least 1. At most 65535.
    • useLocalhostCallback (boolean, optional)
    • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
    • skipOfflineAccessConsentPrompt (boolean, optional)
  • command (string, optional): A nonempty string is required when type is "stdio": without it the CLI answers INVALID_PARAMS.
  • args (string[], optional)
  • env (Record<string, string>, optional)

Result (required)

  • success (boolean, required)

droid.remove_mcp_server

Params (required)

  • serverName (string, required)
  • settingsLevel ("user", required)

Result (required)

  • success (boolean, required)

droid.list_mcp_registry

Params (required): an empty object.

Result (required)

  • servers (object[], required)
    • name (string, required)
    • description (string, required)
    • type (enum, required): One of "stdio", "http", "sse".
    • url (string, optional)
    • command (string, optional)
    • args (string[], optional)
    • displayName (string, optional)
    • note (string, optional)
    • logoUrl (string, optional)
    • blockedByPolicy (boolean, optional)

droid.list_mcp_tools

Params (required): an empty object.

Result (required)

  • tools (object[], required)
    • serverName (string, required)
    • name (string, required)
    • description (string, optional)
    • isEnabled (boolean, required)
    • isReadOnly (boolean, optional)
    • inputSchema (object, optional)
      • type (string, optional)
      • properties (Record<string, any>, optional)
      • required (string[], optional)

droid.list_tools

Params (required)

  • modelId (string, optional)
  • autonomyMode (enum, optional): Deprecated: use interactionMode + autonomyLevel instead. One of "normal", "spec", "auto-low", "auto-medium", "auto-high".
  • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
  • autonomyLevel (enum, optional): One of "off", "low", "medium", "high".
  • specModeModelId (string | null, optional)
  • additionalToolIds (string[], optional)
  • enabledToolIds (string[], optional)
  • disabledToolIds (string[], optional)
  • restrictToolIds (string[], optional)
  • skipPermissionsUnsafe (boolean, optional)
  • depth (integer, optional): At least 0.
  • includeSchemas (boolean, optional)
  • toolIds (string[], optional)

Result (required)

  • tools (object[], required)
    • id (string, required)
    • llmId (string, required)
    • displayName (string, required)
    • description (string, required)
    • category (enum, required): One of "read", "edit", "execute", "other".
    • defaultAllowed (boolean, required)
    • currentlyAllowed (boolean, required)
    • source (enum, optional): One of "native", "mcp", "connector".
    • schemas (object, optional)
      • input (Record<string, any>, required)
      • result (object, optional)
        • content (Record<string, any>, required)
        • parsedContent (Record<string, any>, optional)
      • progress (Record<string, any>, optional)

droid.refresh_connector_tool_catalog

Params (required): an empty object.

Result (required): an empty object.

droid.list_models

Params (required)

  • includeDisabled (boolean, optional)

Result (required)

  • models ((one of 2 objects)[], required)
    • When disabled is true:
      • id (string, required)
      • displayName (string, required)
      • shortDisplayName (string, required)
      • modelProvider (enum, required): One of "anthropic", "openai", "generic-chat-completion-api", "factory", "google", "xai", "bedrock-converse".
      • supportedReasoningEfforts (enum[], required): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • defaultReasoningEffort (enum, required): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • isCustom (boolean, optional): Default false.
      • behavesLikeModelId (string, optional)
      • credentialSource (enum, optional): One of "chatgpt-plan", "openrouter-account", "github-copilot-plan", "vercel-ai-gateway-account".
      • upstreamModelId (string, optional)
      • noImageSupport (boolean, optional)
      • supportsImageGeneration (boolean, optional)
      • tier (enum, optional): One of "standard", "premium", "overage".
      • tokenMultiplier (number, optional)
      • promoLabel (string, optional)
      • kind (enum, optional): One of "concrete", "router".
      • variantBadge (string, optional)
      • isNew (boolean, optional)
      • disabledReasoningEfforts (enum[], optional): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • disabled (true, required)
      • disabledReason (string, required)
    • When disabled is false or absent:
      • id (string, required)
      • displayName (string, required)
      • shortDisplayName (string, required)
      • modelProvider (enum, required): One of "anthropic", "openai", "generic-chat-completion-api", "factory", "google", "xai", "bedrock-converse".
      • supportedReasoningEfforts (enum[], required): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • defaultReasoningEffort (enum, required): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • isCustom (boolean, optional): Default false.
      • behavesLikeModelId (string, optional)
      • credentialSource (enum, optional): One of "chatgpt-plan", "openrouter-account", "github-copilot-plan", "vercel-ai-gateway-account".
      • upstreamModelId (string, optional)
      • noImageSupport (boolean, optional)
      • supportsImageGeneration (boolean, optional)
      • tier (enum, optional): One of "standard", "premium", "overage".
      • tokenMultiplier (number, optional)
      • promoLabel (string, optional)
      • kind (enum, optional): One of "concrete", "router".
      • variantBadge (string, optional)
      • isNew (boolean, optional)
      • disabledReasoningEfforts (enum[], optional): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • disabled (false, optional)
      • disabledReason (never, optional): Must be absent.

droid.list_mcp_servers

Params (required): an empty object.

Result (required)

  • servers (object[], required)
    • name (string, required)
    • displayName (string, optional)
    • status (enum, required): One of "connecting", "connected", "disconnected", "failed", "disabled".
    • source (enum, required): One of "org", "runtime", "user", "project", "folder", "dynamic", "builtin".
    • isManaged (boolean, required)
    • memberCanToggle (boolean, optional)
    • memberCanRemove (boolean, optional)
    • memberCanChangeTools (boolean, optional)
    • memberCanSignIn (boolean, optional)
    • isUserCloud (boolean, optional)
    • overridesUserCloudServer (boolean, optional)
    • blockedByPolicy (boolean, optional)
    • error (string, optional)
    • toolCount (number, optional)
    • serverType (enum, required): One of "stdio", "http", "sse".
    • hasAuthTokens (boolean, optional)
    • requiresAuth (boolean, optional)
    • pendingAuthUrl (string, optional)
    • pendingAuthMessage (string, optional)
    • pendingAuthState (string, optional)
  • summary (object, required)
    • total (number, required)
    • connected (number, required)
    • connecting (number, required)
    • failed (number, required)
    • disabled (number, optional)
    • configError (object, optional)
      • path (string, required)
      • message (string, required)

droid.toggle_mcp_tool

Params (required)

  • serverName (string, required)
  • toolName (string, required)
  • enabled (boolean, required)

Result (required)

  • success (boolean, required)

droid.submit_mcp_auth_code

Params (required)

  • serverName (string, required)
  • code (string, required)
  • state (string, required)
  • issuerParameter (object, optional)
    • iss (string, optional)

Result (required)

  • success (boolean, required)

droid.submit_mcp_auth_error

Params (required)

  • serverName (string, required)
  • error (string, required)
  • errorDescription (string, optional)
  • state (string, required)
  • issuerParameter (object, optional)
    • iss (string, optional)

Result (required)

  • success (boolean, required)

droid.list_skills

Params (required)

  • includeContent (boolean, optional)
  • skillName (string, optional)

Result (required)

  • skills (object[], required)
    • name (string, required)
    • description (string, optional)
    • location (enum, required): One of "project", "personal", "builtin", "automation".
    • filePath (string, required)
    • enabled (boolean, optional)
    • userInvocable (boolean, optional)
    • version (string, optional)
    • content (string, optional)
    • resources (object[], optional)
      • name (string, required)
      • path (string, required)
      • type (enum, required): One of "reference", "asset".
    • disabledBy (one of 2 objects, optional)
      • When kind is "ledger":
        • kind ("ledger", required)
        • sources (object[], required)
          • level (enum, required): One of "org", "runtime", "user", "project", "folder", "dynamic", "builtin".
          • folderPath (string, optional)
      • When kind is "frontmatter":
        • kind ("frontmatter", required)
    • frontmatterIssues (object[], optional)
      • path (string, required)
      • code (enum, optional): One of "missing", "invalid_type", "invalid".
      • expected (string, optional)
    • pluginId (string, optional)
    • pluginScope (enum, optional): One of "org", "runtime", "user", "project", "folder", "dynamic", "builtin".
  • projectAvailable (boolean, optional)

droid.set_skill_disabled

Params (required)

  • skillName (string, required)
  • disabled (boolean, required)
  • settingsLevel (enum, optional): One of "user", "project".

Result (required)

  • success (boolean, required)

droid.list_commands

Params (required): an empty object.

Result (required)

  • commands (object[], required)
    • name (string, required)
    • description (string, required)
    • argumentHint (string, optional)
    • isExecutable (boolean, optional)

droid.submit_bug_report

Params (required)

  • userComment (string, required)
  • clientLogs (string, optional)
  • source (object, optional)
    • surface (enum, required): One of "desktop", "web", "cli".
    • runtime (enum, optional): One of "local", "byom", "droid-computer", "cloud-workspace".
    • version (string, optional): At most 100 UTF-16 code units.
    • cliVersion (string, optional): At most 100 UTF-16 code units.
    • platform (string, optional): At most 32 UTF-16 code units.
    • arch (string, optional): At most 32 UTF-16 code units.
    • osVersion (string, optional): At most 100 UTF-16 code units.
  • tuiLogs (string, optional)

Result (required)

  • bugReportId (string, required)

droid.get_rewind_info

Params (required)

  • sessionId (string, required)
  • messageId (string, required)

Result (required)

  • availableFiles (object[], required)
    • filePath (string, required)
    • contentHash (string, required)
    • size (number, required)
  • createdFiles (object[], required)
    • filePath (string, required)
  • evictedFiles (object[], required)
    • filePath (string, required)
    • reason (string, required)

droid.execute_rewind

Params (required)

  • sessionId (string, required)
  • messageId (string, required)
  • filesToRestore (object[], required)
    • filePath (string, required)
    • contentHash (string, required)
    • size (number, required)
  • filesToDelete (object[], required)
    • filePath (string, required)
  • forkTitle (string, required)

Result (required)

  • newSessionId (string, required)
  • restoredCount (number, required)
  • deletedCount (number, required)
  • failedRestoreCount (number, required)
  • failedDeleteCount (number, required)

droid.compact_session

Params (required)

  • customInstructions (string, optional)
  • mode ("handoff", optional)

Result (required)

  • newSessionId (string, required)
  • removedCount (number, required)

droid.get_handoff_summary

Params (required): an empty object.

Result (required)

  • compactionState (object, required)
    • type ("compaction_state", required)
    • summaryText (string, required)
    • May carry other fields, which this page does not list.

droid.summarize_for_members

Params (required)

  • handoffSummary (string, required): At least 1 UTF-16 code unit.

Result (required)

  • text (string, required): At least 1 UTF-16 code unit.

droid.fork_session

Params (required)

  • title (string, optional)
  • tags (object[], optional)
    • name (string, required)
    • metadata (Record<string, string>, optional)

Result (required)

  • newSessionId (string, required)

droid.rename_session

Params (required)

  • title (string, required): Not blank: for an empty or whitespace-only title the CLI answers INVALID_PARAMS.

Result (required)

  • success (boolean, required)

droid.get_context_stats

Params (required): an empty object.

Result (required)

  • used (number, required)
  • remaining (number, required)
  • limit (number, required)
  • accuracy (enum, optional): One of "exact", "estimated".
  • updatedAt (string, required)

droid.get_context_breakdown

Params (required): an empty object.

Result (required)

  • modelId (string, required)
  • modelDisplayName (string, required)
  • contextBudget (number, required)
  • lastCallCompactionTokens (number, optional)
  • contextUsageRatio (number, optional): At least 0.
  • usedTokens (number, required)
  • freeTokens (number, required)
  • categories (object[], required)
    • name (string, required)
    • tokens (number, required)
    • colorKey (enum, required): One of "systemPrompt", "systemTools", "mcpTools", "userInfo", "agentsMd", "customAgents", "skills", "messages".
  • skills (object[], required)
    • name (string, required)
    • location (enum, required): One of "project", "personal", "builtin", "automation".
    • tokens (number, required)
  • mcpServers (object[], required)
    • name (string, required)
    • toolCount (number, required)
    • tokens (number, required)
  • droids (object[], required)
    • name (string, required)
    • location (enum, required): One of "project", "personal".
    • tokens (number, required)
  • map (object, optional)
    • blocks (object[], required)
      • id (string, required)
      • label (string, required)
      • kind (enum, required): One of "system", "tools", "mcp", "environment", "instructions", "agents", "skills", "summary", "user", "assistant", "thinking", "toolUse".
      • items (object[], required)
        • label (string, required)
        • tokens (number, required)
        • turn (number, optional)
        • compaction (enum, optional): One of "summarized", "added".
    • compaction (object, optional)
      • createdAt (number, required)
      • removedCount (number, required)
      • before (object[], required)
        • id (string, required)
        • label (string, required)
        • kind (enum, required): One of "system", "tools", "mcp", "environment", "instructions", "agents", "skills", "summary", "user", "assistant", "thinking", "toolUse".
        • items (object[], required)
          • label (string, required)
          • tokens (number, required)
          • turn (number, optional)
          • compaction (enum, optional): One of "summarized", "added".
      • producedTokens (number, required)

droid.warmup_cache

Params (required): an empty object.

Result (required): an empty object.

droid.kill_background_process

Params (required)

  • processId (string, required)

Result (required)

  • killed (boolean, required)

droid.add_message_reaction

Params (required)

  • messageId (string, required): At least 1 UTF-16 code unit.
  • emoji (string, required): At least 1 UTF-16 code unit. At most 32 UTF-16 code units. Matches /^(?=.*[\p{Extended_Pictographic}\p{Regional_Indicator}\u20e3])(?!.*[#*0-9](?!\ufe0f?\u20e3))[\p{Emoji}\p{Emoji_Component}\u200d]+$/u.
  • author (object, required)
    • userId (string, required)
    • name (string, optional)
    • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
    • sharedSessionMember (true, optional)
    • receipt (string, optional)

Result (required): an empty object.

droid.remove_message_reaction

Params (required)

  • messageId (string, required): At least 1 UTF-16 code unit.
  • emoji (string, required): At least 1 UTF-16 code unit. At most 32 UTF-16 code units. Matches /^(?=.*[\p{Extended_Pictographic}\p{Regional_Indicator}\u20e3])(?!.*[#*0-9](?!\ufe0f?\u20e3))[\p{Emoji}\p{Emoji_Component}\u200d]+$/u.
  • author (object, required)
    • userId (string, required)
    • name (string, optional)
    • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
    • sharedSessionMember (true, optional)
    • receipt (string, optional)

Result (required): an empty object.

droid.get_background_work

Params (required)

  • sessionId (string, required)

Result (required)

  • backgroundWork (integer, optional): At least 0.

droid.clear_attention_request

Params (required)

  • requestId (string, required): At least 1 UTF-16 code unit.

Result (required): an empty object.

Messages Droid sends

Droid sends these 6 messages. Answer each request with the result below or an error response.

droid.session_notification

Params (required)

droid.session_page

A load's result, sent in the session's notification stream where the session was read: every notification after it is a change to it.

Params (required)

  • requestId (string, required)
  • page (object, required)
    • session (object, required)
      • messages (object[], required)
        • id (string, required)
        • role (enum, required): One of "user", "assistant", "tool", "system".
        • content ((one of 7 objects)[], required)
          • When type is "text":
            • id (string, optional)
            • type ("text", required)
            • text (string, required)
            • isStreaming (boolean, optional)
          • When type is "thinking":
            • id (string, optional)
            • type ("thinking", required)
            • signature (string, required)
            • signatureProvider (enum, optional): One of "anthropic", "openai", "generic-chat-completion-api", "factory", "google", "xai", "bedrock-converse", "unknown".
            • thinking (string, required)
            • durationMs (number, optional): At least 0.
            • progressUpdate (boolean, optional)
            • isStreaming (boolean, optional)
          • When type is "image":
            • id (string, optional)
            • type ("image", required)
            • source (object, required)
              • type ("base64", required)
              • data (string, required)
              • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
            • elided (object, optional)
              • bytes (integer, required): At least 0.
              • lines (integer, optional): At least 0.
              • width (integer, optional): Greater than 0.
              • height (integer, optional): Greater than 0.
              • preview (string, optional)
            • generated (boolean, optional)
          • When type is "redacted_thinking":
            • id (string, optional)
            • type ("redacted_thinking", required)
            • data (string, required)
          • When type is "tool_use":
            • type ("tool_use", required)
            • id (string, required)
            • input (Record<string, any>, required)
            • name (string, required)
            • thoughtSignature (string, optional)
            • namespace (string, optional)
            • scriptExecution (object, optional)
              • runId (string, required)
              • outerToolUseId (string, required)
              • site (number, optional)
              • step (object, optional)
                • offset (number, required)
                • text (string, required)
              • seen (number, optional)
            • scriptOracle (object, optional)
              • callCount (number, required)
              • rows (object[], required)
                • id (string, required)
                • site (number, optional)
                • toolName (string, required)
                • path (string[], required)
                • input (Record<string, any>, required)
                • count (number, required)
          • When type is "tool_result":
            • id (string, optional)
            • type ("tool_result", required)
            • toolUseId (string, required)
            • content (string | (one of 3 objects)[], optional)
              • When type is "text":
                • id (string, optional)
                • type ("text", required)
                • text (string, required)
              • When type is "image":
                • id (string, optional)
                • type ("image", required)
                • source (object, required)
                  • type ("base64", required)
                  • data (string, required)
                  • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
                • elided (object, optional)
                  • bytes (integer, required): At least 0.
                  • lines (integer, optional): At least 0.
                  • width (integer, optional): Greater than 0.
                  • height (integer, optional): Greater than 0.
                  • preview (string, optional)
                • generated (boolean, optional)
              • When type is "document":
                • id (string, optional)
                • type ("document", required)
                • source (one of 2 objects, required)
                  • When type is "base64":
                    • type ("base64", required)
                    • mediaType ("application/pdf", required)
                    • data (string, required)
                    • parsedData (string, optional)
                    • name (string, optional)
                    • path (string, optional)
                  • When type is "text":
                    • type ("text", required)
                    • mediaType ("text/plain", required)
                    • data (string, required)
                    • name (string, optional)
                    • mime (string, optional)
                • elided (object, optional)
                  • bytes (integer, required): At least 0.
                  • lines (integer, optional): At least 0.
                  • width (integer, optional): Greater than 0.
                  • height (integer, optional): Greater than 0.
                  • preview (string, optional)
            • elided (object, optional)
              • bytes (integer, required): At least 0.
              • lines (integer, optional): At least 0.
              • width (integer, optional): Greater than 0.
              • height (integer, optional): Greater than 0.
              • preview (string, optional)
            • isError (boolean, optional)
            • modelContent (string, optional)
            • respondedBy (object, optional)
              • userId (string, required)
              • name (string, optional)
              • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
              • sharedSessionMember (true, optional)
              • receipt (string, optional)
            • modelOnly (boolean, optional)
          • When type is "document":
            • id (string, optional)
            • type ("document", required)
            • source (one of 2 objects, required)
              • When type is "base64":
                • type ("base64", required)
                • mediaType ("application/pdf", required)
                • data (string, required)
                • parsedData (string, optional)
                • name (string, optional)
                • path (string, optional)
              • When type is "text":
                • type ("text", required)
                • mediaType ("text/plain", required)
                • data (string, required)
                • name (string, optional)
                • mime (string, optional)
            • elided (object, optional)
              • bytes (integer, required): At least 0.
              • lines (integer, optional): At least 0.
              • width (integer, optional): Greater than 0.
              • height (integer, optional): Greater than 0.
              • preview (string, optional)
        • createdAt (number, required): Unix timestamp, in milliseconds, when the message was created.
        • updatedAt (number, required): Unix timestamp, in milliseconds, when the message last changed.
        • parentId (string, optional)
        • seq (integer, optional): At least 0.
        • userMessageSource (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
        • literalText (true, optional)
        • sender (one of 4 objects, optional)
          • When kind is "orchestrator":
            • kind ("orchestrator", required)
            • sessionId (string, required): At least 1 UTF-16 code unit.
          • When kind is "agent":
            • kind ("agent", required)
            • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
            • sessionId (string, required): At least 1 UTF-16 code unit.
          • When kind is "top-level":
            • kind ("top-level", required)
            • sessionId (string, required): At least 1 UTF-16 code unit.
          • When kind is "work-update":
            • kind ("work-update", required)
            • sessions (object[], required): At least 1 item.
              • sessionId (string, required): At least 1 UTF-16 code unit.
              • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
        • author (object, optional)
          • userId (string, required)
          • name (string, optional)
          • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
          • sharedSessionMember (true, optional)
          • receipt (string, optional)
        • docCommentThread (object, optional)
          • threadId (string (uuid), required)
          • doc (one of 3 objects, optional): The unknown form records a doc reference that could not be read, such as one whose kind a newer client added; reportedKind is the kind it carried.
            • When kind is "space":
              • kind ("space", required)
              • spaceId (string (uuid), required)
              • documentId (string (uuid), required)
            • When kind is "local":
              • kind ("local", required)
              • machineId (string, required): At least 1 UTF-16 code unit.
              • path (string, required): At least 1 UTF-16 code unit.
            • When kind is "unknown":
              • kind ("unknown", required)
              • reportedKind (string, optional)
          • documentPath (string, required): At least 1 UTF-16 code unit.
        • sessionRename (object, optional)
          • title (string, required)
        • mentions (object[], optional)
          • userId (string, required)
          • name (string, required)
        • replyTo (string[], optional)
        • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
        • visibility (enum, optional): One of "both", "llm_only", "user_only".
        • systemNotice (true, optional): Marks a notice the harness wrote into the conversation, such as a provider error or a skill activation. The role is unchanged by it, so readers that predate the marker still show its text.
        • noticeKind ("reasoning_effort_disabled", optional): On a system notice: what it reports. More values may be added; treat a value you do not know as unknown. A client that hides system notices should still show the reasoning_effort_disabled kind, because it explains why the reasoning level in use differs from the one selected.
        • reasoningEffortStepDown (object, optional): On a reasoning_effort_disabled notice: the model, the selected reasoning level the organization disabled, and the level that ran instead. Absent on notices written before the field existed.
          • modelId (string, required)
          • requested (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
          • used (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
        • hookRowId (string, optional): On a notice that repeats a hook's error: the id of the hook row that already shows the error. A client that draws that hook row can leave the notice out.
        • endedEarly (true, optional): Marks an assistant message that ended early. When the session is loaded, a model-owned call of it that has no result is not run or resumed, unless a pending marker reserves that call or a message without the mark also makes it.
        • openaiMessageId (string, optional)
        • openaiPhase (enum | null, optional): One of "commentary", "final_answer".
        • openaiEncryptedContent (string, optional)
        • openaiReasoningId (string, optional)
        • openaiReasoningSummary (string, optional)
        • geminiThoughtSignature (string, optional): @deprecated Use thinking block signature fields with signatureProvider: "google" instead. Do not use in new code.
        • chatCompletionReasoningField (enum, optional): One of "reasoning", "reasoning_content".
        • chatCompletionReasoningContent (string, optional)
        • geminiNativeContent (string, optional)
        • isUserVisible (boolean, optional)
        • isError (boolean, optional)
        • modelId (string, optional)
        • apiProvider (enum, optional): One of "bedrock", "anthropic", "vertex_anthropic", "bedrock_anthropic", "bedrock_converse", "bedrock_openai", "openai", "azure_openai", "azure_anthropic", "google", "xai", "mistral", "fireworks", "baseten", "together", "snowflake", "databricks".
        • routerId (string, optional)
        • reasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
        • hookEventName (string, optional)
        • hookMatcher (string, optional)
        • hookCommands (object[], optional)
          • command (string, required)
          • timeout (number, optional)
        • hookStatus (enum, optional): One of "executing", "completed", "error".
        • hookResults (object[], optional)
          • exitCode (number, required)
          • stdout (string, required)
          • stderr (string, required)
          • suppressOutput (boolean, optional)
          • cancelled (true, optional): The run's abort ended this hook before it exited; exitCode, stdout and stderr are the cancellation's, not the hook's.
          • error (string, optional): Diagnostic for this hook alone, never its decision: why it failed (it could not run, timed out, printed JSON that does not parse or fails validation, or exited non-zero with plain-text stdout, or with any stdout where onFailure: "block" applies), or, for an exit 2, its stderr, else its plain-text stdout, else its exit code. A JSON block or deny alone does not create a diagnostic. Absent when the hook succeeded or was cancelled, and on rows recorded before this field existed even if the hook failed. A non-zero exitCode alone is not a failure: exit 1 with valid JSON output succeeds, except on a PreToolUse, PostToolUse, UserPromptSubmit or PreCompact hook with onFailure: "block", which fails on any exit other than 0 or 2.
        • hookToolCallId (string, optional)
        • hookParentId (string, optional)
        • hookOrder (number, optional)
        • hookPreventedAction (boolean, optional)
        • hiddenFromUserViews (boolean, optional)
        • hookStartTime (number, optional): Unix timestamp, in milliseconds, when the hook started.
        • hookEndTime (number, optional): Unix timestamp, in milliseconds, when the hook finished.
        • isParallelExecution (boolean, optional)
        • parallelGroupId (string, optional)
      • title (string, optional)
    • scriptOracles (Record<string, object>, optional)
      • callCount (number, required)
      • rows (object[], required)
        • id (string, required)
        • site (number, optional)
        • toolName (string, required)
        • path (string[], required)
        • input (Record<string, any>, required)
        • count (number, required)
    • agentTurnOutcome (one of 3 objects | null, optional)
      • When resultKind is "structured":
        • type ("agent_turn_outcome", required)
        • turnId (string, required): At least 1 UTF-16 code unit.
        • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
        • usageLimit (enum, optional): One of "workstream_budget", "account".
        • resultKind ("structured", required)
        • result (Record<string, any>, required)
        • schemaFingerprint (string, required): At least 1 UTF-16 code unit.
      • When resultKind is "text":
        • type ("agent_turn_outcome", required)
        • turnId (string, required): At least 1 UTF-16 code unit.
        • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
        • usageLimit (enum, optional): One of "workstream_budget", "account".
        • resultKind ("text", required)
      • When resultKind is "null":
        • type ("agent_turn_outcome", required)
        • turnId (string, required): At least 1 UTF-16 code unit.
        • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
        • usageLimit (enum, optional): One of "workstream_budget", "account".
        • resultKind ("null", required)
    • latestAgentTurnOutcome (one of 3 objects | null, optional)
      • When resultKind is "structured":
        • type ("agent_turn_outcome", required)
        • turnId (string, required): At least 1 UTF-16 code unit.
        • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
        • usageLimit (enum, optional): One of "workstream_budget", "account".
        • resultKind ("structured", required)
        • result (Record<string, any>, required)
        • schemaFingerprint (string, required): At least 1 UTF-16 code unit.
      • When resultKind is "text":
        • type ("agent_turn_outcome", required)
        • turnId (string, required): At least 1 UTF-16 code unit.
        • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
        • usageLimit (enum, optional): One of "workstream_budget", "account".
        • resultKind ("text", required)
      • When resultKind is "null":
        • type ("agent_turn_outcome", required)
        • turnId (string, required): At least 1 UTF-16 code unit.
        • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
        • usageLimit (enum, optional): One of "workstream_budget", "account".
        • resultKind ("null", required)
    • hasOlderMessages (boolean, optional)
    • loopState (object | null, optional)
      • loopId (string, required)
      • status (enum, required): One of "waiting", "running", "due", "stopped", "error".
      • intervalMs (integer, required): At least 5000. At most 86400000.
      • iteration (integer, required): At least 0.
      • startedAt (integer, required): At least 0.
      • updatedAt (integer, required): At least 0.
      • nextRunAt (integer | null, required): At least 0.
      • isDue (boolean, required)
      • lastRunStartedAt (integer, optional): At least 0.
      • lastRunCompletedAt (integer, optional): At least 0.
      • stopReason (enum, optional): One of "user_stopped", "manual_message", "interrupted", "session_closed", "process_exited", "error".
    • hostId (string (uuid), optional)
    • mcpServers ((one of 3 objects)[], optional)
      • Shape 1:
        • name (string, required)
        • command (string, required)
        • args (string[], optional): Default [].
        • env (Record<string, string>, optional): Default {}.
      • Shape 2:
        • type ("http", required)
        • name (string, required)
        • url (string (uri), required)
        • headers (object[], optional): Default [].
          • name (string, required)
          • value (string, required)
        • oauth (object | false, optional)
          • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
          • resource (string (uri) | false, optional)
          • authorizationServerIssuer (string (uri), optional)
          • clientMetadataUrl (string (uri), optional)
          • clientId (string, optional): At least 1 UTF-16 code unit.
          • clientSecret (string, optional): At least 1 UTF-16 code unit.
          • callbackPort (integer, optional): At least 1. At most 65535.
          • useLocalhostCallback (boolean, optional)
          • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
          • skipOfflineAccessConsentPrompt (boolean, optional)
      • Shape 3:
        • type ("sse", required)
        • name (string, required)
        • url (string (uri), required)
        • headers (object[], optional): Default [].
          • name (string, required)
          • value (string, required)
        • oauth (object | false, optional)
          • scopes (string[], optional): Each item: at least 1 UTF-16 code unit.
          • resource (string (uri) | false, optional)
          • authorizationServerIssuer (string (uri), optional)
          • clientMetadataUrl (string (uri), optional)
          • clientId (string, optional): At least 1 UTF-16 code unit.
          • clientSecret (string, optional): At least 1 UTF-16 code unit.
          • callbackPort (integer, optional): At least 1. At most 65535.
          • useLocalhostCallback (boolean, optional)
          • tokenEndpointAuthMethod (enum, optional): One of "none", "client_secret_basic", "client_secret_post".
          • skipOfflineAccessConsentPrompt (boolean, optional)
    • pendingPermissions (object[], optional)
      • toolUses (object[], required)
        • toolUse (object, required)
          • type ("tool_use", required)
          • id (string, required)
          • input (Record<string, any>, required)
          • name (string, required)
          • thoughtSignature (string, optional)
          • namespace (string, optional)
          • scriptExecution (object, optional)
            • runId (string, required)
            • outerToolUseId (string, required)
            • site (number, optional)
            • step (object, optional)
              • offset (number, required)
              • text (string, required)
            • seen (number, optional)
          • scriptOracle (object, optional)
            • callCount (number, required)
            • rows (object[], required)
              • id (string, required)
              • site (number, optional)
              • toolName (string, required)
              • path (string[], required)
              • input (Record<string, any>, required)
              • count (number, required)
        • confirmationType (enum, required): One of "edit", "exec", "create", "ask_user", "exit_spec_mode", "recommend_mission", "propose_mission", "start_mission_run", "apply_patch", "mcp_tool", "sandbox_violation", "droid_shield_violation", "script".
        • details (one of 13 objects, required)
          • When type is "edit":
            • type ("edit", required)
            • filePath (string, required)
            • fileName (string, required)
            • oldContent (string, optional)
            • newContent (string, optional)
          • When type is "exec":
            • type ("exec", required)
            • fullCommand (string, required)
            • command (string, required)
            • extractedCommands (string[], optional)
            • impactLevel (string, optional)
            • riskLevelReason (string, optional)
          • When type is "create":
            • type ("create", required)
            • filePath (string, required)
            • fileName (string, required)
            • content (string, required)
          • When type is "ask_user":
            • type ("ask_user", required)
            • questionnaire (string, required)
            • parsed (object, optional)
              • questions (object[], required)
                • index (number, required)
                • topic (string, required)
                • question (string, required)
                • options (string[], required)
                • multiSelect (boolean, optional)
            • parseError (object, optional)
              • message (string, required)
              • line (number, optional)
          • When type is "exit_spec_mode":
            • type ("exit_spec_mode", required)
            • plan (string, required)
            • title (string, optional)
            • contextSavingsPercent (number, optional)
            • supportsClientStartedHandoff (boolean, optional)
          • When type is "propose_mission":
            • type ("propose_mission", required)
            • proposal (string, required)
            • title (string, optional)
          • When type is "start_mission_run":
            • type ("start_mission_run", required)
            • runningMissionCount (number, required)
            • runningMissionSessionIds (string[], required)
          • When type is "apply_patch":
            • type ("apply_patch", required)
            • filePath (string, required)
            • fileName (string, required)
            • patchContent (string, required)
            • oldContent (string, optional)
            • newContent (string, optional)
            • files (object[], optional)
              • filePath (string, required)
              • fileName (string, required)
              • operation (enum, required): One of "create", "update", "delete".
              • moveTo (string, optional)
              • oldContent (string, optional)
              • newContent (string, optional)
          • When type is "mcp_tool":
            • type ("mcp_tool", required)
            • toolName (string, required)
            • impactLevel (string, required)
            • serverName (string, optional)
            • actualToolName (string, optional)
          • When type is "sandbox_violation":
            • type ("sandbox_violation", required)
            • violatingToolName (string, required)
            • target (string, required)
            • operationType (enum, required): One of "read", "write", "network", "tool".
            • violationType (enum, required): One of "filesystem-read", "filesystem-write", "network", "tool".
            • reason (string, required)
            • violationReason (enum, optional): One of "deny-list", "not-allowed".
            • isOrgDeny (boolean, required)
          • When type is "droid_shield_violation":
            • type ("droid_shield_violation", required)
            • command (string, required)
            • reason (string, required)
          • When type is "recommend_mission":
            • type ("recommend_mission", required)
            • reason (string, required)
          • When type is "script":
            • type ("script", required)
            • impactLevel (string, required)
            • calls (object[], required)
              • toolName (string, required)
              • line (number, required)
              • column (number, required)
              • toolInput (Record<string, any>, required)
              • confirmation (one of 12 objects, required)
                • When type is "edit":
                  • type ("edit", required)
                  • filePath (string, required)
                  • fileName (string, required)
                  • oldContent (string, optional)
                  • newContent (string, optional)
                • When type is "exec":
                  • type ("exec", required)
                  • fullCommand (string, required)
                  • command (string, required)
                  • extractedCommands (string[], optional)
                  • impactLevel (string, optional)
                  • riskLevelReason (string, optional)
                • When type is "create":
                  • type ("create", required)
                  • filePath (string, required)
                  • fileName (string, required)
                  • content (string, required)
                • When type is "ask_user":
                  • type ("ask_user", required)
                  • questionnaire (string, required)
                  • parsed (object, optional)
                    • questions (object[], required)
                      • index (number, required)
                      • topic (string, required)
                      • question (string, required)
                      • options (string[], required)
                      • multiSelect (boolean, optional)
                  • parseError (object, optional)
                    • message (string, required)
                    • line (number, optional)
                • When type is "exit_spec_mode":
                  • type ("exit_spec_mode", required)
                  • plan (string, required)
                  • title (string, optional)
                  • contextSavingsPercent (number, optional)
                  • supportsClientStartedHandoff (boolean, optional)
                • When type is "propose_mission":
                  • type ("propose_mission", required)
                  • proposal (string, required)
                  • title (string, optional)
                • When type is "start_mission_run":
                  • type ("start_mission_run", required)
                  • runningMissionCount (number, required)
                  • runningMissionSessionIds (string[], required)
                • When type is "apply_patch":
                  • type ("apply_patch", required)
                  • filePath (string, required)
                  • fileName (string, required)
                  • patchContent (string, required)
                  • oldContent (string, optional)
                  • newContent (string, optional)
                  • files (object[], optional)
                    • filePath (string, required)
                    • fileName (string, required)
                    • operation (enum, required): One of "create", "update", "delete".
                    • moveTo (string, optional)
                    • oldContent (string, optional)
                    • newContent (string, optional)
                • When type is "mcp_tool":
                  • type ("mcp_tool", required)
                  • toolName (string, required)
                  • impactLevel (string, required)
                  • serverName (string, optional)
                  • actualToolName (string, optional)
                • When type is "sandbox_violation":
                  • type ("sandbox_violation", required)
                  • violatingToolName (string, required)
                  • target (string, required)
                  • operationType (enum, required): One of "read", "write", "network", "tool".
                  • violationType (enum, required): One of "filesystem-read", "filesystem-write", "network", "tool".
                  • reason (string, required)
                  • violationReason (enum, optional): One of "deny-list", "not-allowed".
                  • isOrgDeny (boolean, required)
                • When type is "droid_shield_violation":
                  • type ("droid_shield_violation", required)
                  • command (string, required)
                  • reason (string, required)
                • When type is "recommend_mission":
                  • type ("recommend_mission", required)
                  • reason (string, required)
              • alwaysAsk (boolean, optional)
      • options (object[], required)
        • label (string, required)
        • value (enum, required): One of "proceed_once", "proceed_always", "proceed_always_file", "proceed_auto_run", "proceed_auto_run_low", "proceed_auto_run_medium", "proceed_auto_run_high", "proceed_new_session", "proceed_new_session_low", "proceed_new_session_medium", "proceed_new_session_high", "proceed_edit", "proceed_always_tools", "proceed_always_server", "proceed_report_false_positive", "cancel".
      • associatedSessionIds (string[], optional)
      • workerSessionId (string, optional)
      • requestId (string, required)
    • pendingAskUserRequests (object[], optional)
      • toolCallId (string, required)
      • questions (object[], required)
        • index (number, required)
        • topic (string, required)
        • question (string, required)
        • options (string[], required)
        • optionDescriptions (string[], optional)
        • multiSelect (boolean, optional)
        • context (string, optional)
      • blocking (boolean, optional)
      • requestId (string, required)
    • pendingPickOptionsRequests (object[], optional)
      • toolCallId (string, required)
      • title (string, required)
      • hint (string, optional)
      • emptyText (string, optional)
      • rows (object[], required)
        • id (string, required)
        • label (string, required)
        • detail (string, optional)
      • multi (boolean, required)
      • preselectedIds (string[], required)
      • initialSearch (string, optional)
      • requestId (string, required)
    • settings (object, required)
      • modelId (string, required)
      • reasoningEffort (enum, required): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • routedModelId (string, optional)
      • routedReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • autonomyMode (enum, optional): Deprecated: use interactionMode + autonomyLevel instead. One of "normal", "spec", "auto-low", "auto-medium", "auto-high".
      • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
      • autonomyLevel (enum, optional): One of "off", "low", "medium", "high".
      • availableAutonomyLevels (enum[], optional): Autonomy levels the user may select under the organization managed maxAutonomyLevel policy. Clients must build autonomy pickers from this list instead of the full AutonomyLevel enum. Each item: one of "off", "low", "medium", "high".
      • specModeModelId (string, optional)
      • specModeReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • missionSettings (object, optional)
        • workerModel (string, optional)
        • workerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
        • validationWorkerModel (string, optional)
        • validationWorkerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
        • skipScrutiny (boolean, optional)
        • skipUserTesting (boolean, optional)
      • tags (object[], optional)
        • name (string, required): At least 1 UTF-16 code unit.
        • metadata (Record<string, string>, optional)
      • sandbox (object, optional)
        • enabled (boolean, required)
        • mode (enum, optional): One of "per-command", "whole-process".
      • compactionThresholdCheckEnabled (boolean, optional)
      • toolExecutionMode (enum, optional): One of "direct_only", "script_only".
      • allowSubagentsInScripts (boolean, optional)
      • systemPrompt (object | string, optional): The string form: matches /\S/.
        • type ("preset", required)
        • preset ("droid", required)
        • append (string, required): Matches /\S/.
      • subagentsInheritSystemPrompt (boolean, optional)
      • fusion (boolean, optional)
      • migrationActive (boolean, optional)
      • migrationDirectory (string, optional)
      • sharedFolderPath (string, optional)
      • contentsCloudSync (boolean, optional)
      • hasPendingStandardRestore (boolean, optional)
      • artifacts (object[], optional): At most 100 items.
        • id (string, required): At least 1 UTF-16 code unit. At most 2048 UTF-16 code units.
        • url (string (uri), required): At most 2048 UTF-16 code units.
        • title (string, optional): At most 500 UTF-16 code units.
        • externalId (string, optional): At most 128 UTF-16 code units.
        • provider (enum, required): One of "github", "gitlab", "linear", "jira", "notion", "web", "local", "connector".
        • kind (enum, required): One of "pull_request", "issue", "document", "record", "file", "link".
        • connector (string, optional)
        • fileRole ("spec", optional)
        • action (enum, optional): One of "create", "update", "delete", "view", "close", "merge". Default "create".
        • source (enum, required): One of "tool", "classifier", "user_message".
        • createdAt (string (date-time), required)
        • toolCallId (string, optional)
      • additionalToolIds (string[], optional)
      • enabledToolIds (string[], optional)
      • disabledToolIds (string[], optional)
      • restrictToolIds (string[], optional)
    • isAgentLoopInProgress (boolean, optional)
    • pendingMessageRequestIds (string[], optional)
    • workingState (enum, optional): One of "idle", "thinking", "authenticating", "streaming_assistant_message", "waiting_for_tool_confirmation", "executing_tool", "compacting_conversation".
    • backgroundWork (integer, optional): At least 0.
    • backgroundProcesses (object, optional)
      • capturedAtMs (number, required)
      • processes (object[], required)
        • id (string, required)
        • pid (number, required)
        • command (string, required)
        • startedAtMs (number, required)
        • toolUseId (string, optional)
        • outputFile (string, optional)
    • activity (enum, optional): One of "authenticating", "awaiting_background_work".
    • queuedMessagesSnapshot (object[], optional)
      • requestId (string, required)
      • queuePlacement (enum, required): One of "end_of_turn", "end_of_loop".
      • author (object, optional)
        • userId (string, required)
        • name (string, optional)
        • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
        • sharedSessionMember (true, optional)
        • receipt (string, optional)
      • text (string, required)
      • imageCount (number, required)
      • fileCount (number, required)
    • enforcesQueueOwnership (boolean, optional)
    • messageReactions (object[], optional)
      • messageId (string, required): At least 1 UTF-16 code unit.
      • emoji (string, required): At least 1 UTF-16 code unit.
      • userId (string, required): At least 1 UTF-16 code unit.
      • name (string, optional)
    • pendingAttentionRequests (object[], optional)
      • requestId (string, required): At least 1 UTF-16 code unit.
      • path (string, required): At least 1 UTF-16 code unit.
      • heading (object | null, required)
        • slug (string, required)
        • text (string, required)
      • note (string, required)
      • requestedAt (integer, required): At least 0.
    • queuedMessages (object[], optional)
      • messageId (string, optional)
      • text (string, required)
      • content ((one of 2 objects)[], optional): At least 1 item.
        • When type is "text":
          • id (string, optional)
          • type ("text", required)
          • text (string, required)
        • When type is "image":
          • id (string, optional)
          • type ("image", required)
          • source (object, required)
            • type ("base64", required)
            • data (string, required)
            • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
          • elided (object, optional)
            • bytes (integer, required): At least 0.
            • lines (integer, optional): At least 0.
            • width (integer, optional): Greater than 0.
            • height (integer, optional): Greater than 0.
            • preview (string, optional)
          • generated (boolean, optional)
      • images (object[], optional)
        • type ("base64", required)
        • data (string, required)
        • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
      • imagePaths (string[], optional)
      • files ((one of 2 objects)[], optional)
        • When type is "base64":
          • type ("base64", required)
          • mediaType ("application/pdf", required)
          • data (string, required)
          • parsedData (string, optional)
          • name (string, optional)
          • path (string, optional)
        • When type is "text":
          • type ("text", required)
          • mediaType ("text/plain", required)
          • data (string, required)
          • name (string, optional)
          • mime (string, optional)
      • outputFormat (object, optional)
        • type ("json_schema", required)
        • schema (Record<string, any>, required)
      • skipAgentLoop (boolean, optional)
      • queuePlacement (enum, optional): One of "end_of_turn", "end_of_loop".
      • role (enum, optional): One of "user", "assistant", "tool", "system".
      • visibility (enum, optional): One of "both", "llm_only", "user_only".
      • userMessageSource (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • sender (one of 4 objects, optional)
        • When kind is "orchestrator":
          • kind ("orchestrator", required)
          • sessionId (string, required): At least 1 UTF-16 code unit.
        • When kind is "agent":
          • kind ("agent", required)
          • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
          • sessionId (string, required): At least 1 UTF-16 code unit.
        • When kind is "top-level":
          • kind ("top-level", required)
          • sessionId (string, required): At least 1 UTF-16 code unit.
        • When kind is "work-update":
          • kind ("work-update", required)
          • sessions (object[], required): At least 1 item.
            • sessionId (string, required): At least 1 UTF-16 code unit.
            • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
      • author (object, optional)
        • userId (string, required)
        • name (string, optional)
        • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
        • sharedSessionMember (true, optional)
        • receipt (string, optional)
      • replyTo (string[], optional)
      • mentions (object[], optional)
        • userId (string, required)
        • name (string, required)
      • docCommentThread (object, optional)
        • threadId (string (uuid), required)
        • doc (one of 3 objects, optional): The unknown form records a doc reference that could not be read, such as one whose kind a newer client added; reportedKind is the kind it carried.
          • When kind is "space":
            • kind ("space", required)
            • spaceId (string (uuid), required)
            • documentId (string (uuid), required)
          • When kind is "local":
            • kind ("local", required)
            • machineId (string, required): At least 1 UTF-16 code unit.
            • path (string, required): At least 1 UTF-16 code unit.
          • When kind is "unknown":
            • kind ("unknown", required)
            • reportedKind (string, optional)
        • documentPath (string, required): At least 1 UTF-16 code unit.
      • chatSettingsCatalog (object[], optional): At most 300 items.
        • operationId (string, required): At least 1 UTF-16 code unit. At most 160 UTF-16 code units.
        • pageId (string, required): At least 1 UTF-16 code unit. At most 80 UTF-16 code units.
        • section (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units.
        • label (string, required): At least 1 UTF-16 code unit. At most 160 UTF-16 code units.
        • description (string, required): At least 1 UTF-16 code unit. At most 500 UTF-16 code units.
        • kind (enum, required): One of "setting", "resource", "account".
        • riskLevel (enum, required): One of "low", "medium", "high".
        • inputSchema (object, required)
          • type ("object", required)
          • properties (Record<string, any>, required)
          • required (string[], optional)
          • additionalProperties (boolean, optional)
      • activeFile (object, optional)
        • path (string, required)
      • requestId (string, required)
    • gitRepo (object, optional)
      • owner (string, optional)
      • repoName (string, required)
    • cwd (string, optional)
    • updatedAt (integer, optional): Unix epoch seconds At least 0.
    • callingSessionId (string, optional)
    • callingToolUseId (string, optional)
    • availableModels (object[], optional)
      • id (string, required)
      • displayName (string, required)
      • shortDisplayName (string, required)
      • modelProvider (enum, required): One of "anthropic", "openai", "generic-chat-completion-api", "factory", "google", "xai", "bedrock-converse".
      • supportedReasoningEfforts (enum[], required): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • defaultReasoningEffort (enum, required): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • isCustom (boolean, optional): Default false.
      • behavesLikeModelId (string, optional)
      • credentialSource (enum, optional): One of "chatgpt-plan", "openrouter-account", "github-copilot-plan", "vercel-ai-gateway-account".
      • upstreamModelId (string, optional)
      • noImageSupport (boolean, optional)
      • supportsImageGeneration (boolean, optional)
      • tier (enum, optional): One of "standard", "premium", "overage".
      • tokenMultiplier (number, optional)
      • promoLabel (string, optional)
      • kind (enum, optional): One of "concrete", "router".
      • variantBadge (string, optional)
      • isNew (boolean, optional)
      • disabledReasoningEfforts (enum[], optional): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • tokenUsage (object, optional)
      • inputTokens (number, required)
      • outputTokens (number, required)
      • cacheCreationTokens (number, required)
      • cacheReadTokens (number, required)
      • thinkingTokens (number, required)
      • factoryCredits (number, optional)
      • tokenCountsScope ("byok_only", optional)
    • inclusiveTokenUsage (object, optional)
      • inputTokens (number, required)
      • outputTokens (number, required)
      • cacheCreationTokens (number, required)
      • cacheReadTokens (number, required)
      • thinkingTokens (number, required)
      • factoryCredits (number, optional)
      • tokenCountsScope ("byok_only", optional)
    • lastCallTokenUsage (object, optional)
      • inputTokens (number, required)
      • cacheReadTokens (number, required)
      • outputTokens (number, optional)
    • contextUsageRatio (number, optional): At least 0.
    • mission (object, optional)
      • state (enum, required): One of "planning", "awaiting_input", "initializing", "running", "paused", "orchestrator_turn", "completed".
      • updatedAt (string, optional)
      • title (string, optional)
      • workingDirectory (string, optional)
      • features (object[], required)
        • id (string, required)
        • description (string, required)
        • status (enum, required): One of "pending", "in_progress", "completed", "cancelled".
        • skillName (string, required)
        • preconditions (string[], required)
        • expectedBehavior (string[], required)
        • fulfills (string[], optional)
        • milestone (string, optional)
        • workerSessionIds (string[], optional)
        • currentWorkerSessionId (string | null, optional)
        • completedWorkerSessionId (string | null, optional)
      • progressLog ((one of 11 objects)[], required)
        • When type is "mission_accepted":
          • timestamp (string, required)
          • type ("mission_accepted", required)
          • title (string, required)
        • When type is "mission_paused":
          • timestamp (string, required)
          • type ("mission_paused", required)
          • pauseReason (enum, optional): One of "unrecoverable_usage_402", "feature_retry_limit_exceeded", "scope_growth_limit_exceeded".
        • When type is "mission_resumed":
          • timestamp (string, required)
          • type ("mission_resumed", required)
          • resumeWorkerSessionId (string, optional)
        • When type is "mission_run_started":
          • timestamp (string, required)
          • type ("mission_run_started", required)
          • message (string, optional)
        • When type is "worker_started":
          • timestamp (string, required)
          • type ("worker_started", required)
          • workerSessionId (string, required)
          • spawnId (string, required)
          • featureId (string, optional)
          • modelId (string, optional)
          • substitutedFromModelId (string, optional)
        • When type is "worker_selected_feature":
          • timestamp (string, required)
          • type ("worker_selected_feature", required)
          • workerSessionId (string, required)
          • featureId (string, required)
        • When type is "worker_completed":
          • timestamp (string, required)
          • type ("worker_completed", required)
          • workerSessionId (string, required)
          • featureId (string, required)
          • successState (enum, required): One of "success", "partial", "failure".
          • returnToOrchestrator (boolean, required)
          • commitId (string, optional)
          • repoPath (string, optional)
          • exitCode (number, required)
          • validatorsPassed (boolean, optional)
          • handoff (object, optional)
            • salientSummary (string, optional)
            • whatWasImplemented (string, required)
            • whatWasLeftUndone (string, required)
            • verification (object, required)
              • commandsRun (object[], required)
                • command (string, required)
                • exitCode (number, required)
                • observation (string, required)
              • interactiveChecks (object[], optional)
                • action (string, required)
                • observed (string, required)
            • tests (object, required)
              • added (object[], required)
                • file (string, required)
                • cases (object[], required)
                  • name (string, required)
                  • verifies (string, required)
              • updated (string[], optional)
              • coverage (string, required)
            • discoveredIssues (object[], required)
              • severity (enum, required): One of "blocking", "non_blocking", "suggestion".
              • description (string, required)
              • suggestedFix (string, optional)
            • skillFeedback (object, optional)
              • followedProcedure (boolean, required)
              • deviations (object[], required)
                • step (string, required)
                • whatIDidInstead (string, required)
                • why (string, required)
              • suggestedChanges (string[], optional)
        • When type is "worker_failed":
          • timestamp (string, required)
          • type ("worker_failed", required)
          • workerSessionId (string, optional)
          • spawnId (string, required)
          • exitCode (number, optional)
          • reason (string, required)
          • failureReason (enum, optional): One of "unrecoverable_usage_402", "worker_exited_without_handoff".
        • When type is "worker_paused":
          • timestamp (string, required)
          • type ("worker_paused", required)
          • workerSessionId (string, required)
          • featureId (string, optional)
        • When type is "handoff_items_dismissed":
          • timestamp (string, required)
          • type ("handoff_items_dismissed", required)
          • dismissals (object[], optional)
            • type (enum, required): One of "discovered_issue", "critical_context", "incomplete_work".
            • sourceFeatureId (string, required)
            • summary (string, required)
            • justification (string, required)
        • When type is "milestone_validation_triggered":
          • timestamp (string, required)
          • type ("milestone_validation_triggered", required)
          • milestone (string, required)
          • featureId (string, required)
      • workerSessionIds (string[], required)
      • workerStates (Record<string, object>, optional)
        • startedAt (string, required)
        • completedAt (string, optional)
        • exitCode (number, optional)
      • tokenUsage (object, optional)
        • inputTokens (number, required)
        • outputTokens (number, required)
        • cacheCreationTokens (number, required)
        • cacheReadTokens (number, required)
        • thinkingTokens (number, required)
        • factoryCredits (number, optional)
        • tokenCountsScope ("byok_only", optional)
      • tokenUsageBySessionId (Record<string, object>, optional)
        • inputTokens (number, required)
        • outputTokens (number, required)
        • cacheCreationTokens (number, required)
        • cacheReadTokens (number, required)
        • thinkingTokens (number, required)
        • factoryCredits (number, optional)
        • tokenCountsScope ("byok_only", optional)
    • decompSessionType (enum, optional): One of "orchestrator", "worker".
    • subagentInvocations (object[], optional)
      • childSessionId (string, required)
      • toolUseCount (number, optional)
      • durationMs (number, optional)
      • status (enum, required): One of "pending", "running", "completed", "failed", "cancelled".
      • subagentType (string, required)
      • description (string, required)
    • taskInvocation (object, optional)
      • childSessionId (string, required)
      • toolUseCount (number, optional)
      • durationMs (number, optional)
      • status (enum, optional): One of "pending", "running", "completed", "failed", "cancelled".
      • subagentType (string, required)
      • description (string, required)
    • streaming (object, optional)
      • messageId (string, required)
      • blockIndices ((number | null)[], required)
    • mcpStatus (object, optional)
      • type ("mcp_status_changed", required)
      • servers (object[], required)
        • name (string, required)
        • displayName (string, optional)
        • status (enum, required): One of "connecting", "connected", "disconnected", "failed", "disabled".
        • source (enum, required): One of "org", "runtime", "user", "project", "folder", "dynamic", "builtin".
        • isManaged (boolean, required)
        • memberCanToggle (boolean, optional)
        • memberCanRemove (boolean, optional)
        • memberCanChangeTools (boolean, optional)
        • memberCanSignIn (boolean, optional)
        • isUserCloud (boolean, optional)
        • overridesUserCloudServer (boolean, optional)
        • blockedByPolicy (boolean, optional)
        • error (string, optional)
        • toolCount (number, optional)
        • serverType (enum, required): One of "stdio", "http", "sse".
        • hasAuthTokens (boolean, optional)
        • requiresAuth (boolean, optional)
        • pendingAuthUrl (string, optional)
        • pendingAuthMessage (string, optional)
        • pendingAuthState (string, optional)
      • summary (object, required)
        • total (number, required)
        • connected (number, required)
        • connecting (number, required)
        • failed (number, required)
        • disabled (number, optional)
        • configError (object, optional)
          • path (string, required)
          • message (string, required)
    • hiddenThroughMessageId (string | null, optional): Default null.
    • runningHooks (object[], optional): Default [].
      • type ("hook_execution_started", required)
      • hookId (string, required)
      • hookEventName (string, required)
      • hookMatcher (string, optional)
      • hookCommands (object[], required)
        • command (string, required)
        • timeout (number, optional)
      • hookToolCallId (string, optional)
      • hookParentId (string, optional)
      • hookOrder (number, optional)
      • hiddenFromUserViews (boolean, optional)
      • isParallelExecution (boolean, optional)
      • parallelGroupId (string, optional)

droid.request_permission

Params (required)

  • toolUses (object[], required)
    • toolUse (object, required)
      • type ("tool_use", required)
      • id (string, required)
      • input (Record<string, any>, required)
      • name (string, required)
      • thoughtSignature (string, optional)
      • namespace (string, optional)
      • scriptExecution (object, optional)
        • runId (string, required)
        • outerToolUseId (string, required)
        • site (number, optional)
        • step (object, optional)
          • offset (number, required)
          • text (string, required)
        • seen (number, optional)
      • scriptOracle (object, optional)
        • callCount (number, required)
        • rows (object[], required)
          • id (string, required)
          • site (number, optional)
          • toolName (string, required)
          • path (string[], required)
          • input (Record<string, any>, required)
          • count (number, required)
    • confirmationType (enum, required): One of "edit", "exec", "create", "ask_user", "exit_spec_mode", "recommend_mission", "propose_mission", "start_mission_run", "apply_patch", "mcp_tool", "sandbox_violation", "droid_shield_violation", "script".
    • details (one of 13 objects, required)
      • When type is "edit":
        • type ("edit", required)
        • filePath (string, required)
        • fileName (string, required)
        • oldContent (string, optional)
        • newContent (string, optional)
      • When type is "exec":
        • type ("exec", required)
        • fullCommand (string, required)
        • command (string, required)
        • extractedCommands (string[], optional)
        • impactLevel (string, optional)
        • riskLevelReason (string, optional)
      • When type is "create":
        • type ("create", required)
        • filePath (string, required)
        • fileName (string, required)
        • content (string, required)
      • When type is "ask_user":
        • type ("ask_user", required)
        • questionnaire (string, required)
        • parsed (object, optional)
          • questions (object[], required)
            • index (number, required)
            • topic (string, required)
            • question (string, required)
            • options (string[], required)
            • multiSelect (boolean, optional)
        • parseError (object, optional)
          • message (string, required)
          • line (number, optional)
      • When type is "exit_spec_mode":
        • type ("exit_spec_mode", required)
        • plan (string, required)
        • title (string, optional)
        • contextSavingsPercent (number, optional)
        • supportsClientStartedHandoff (boolean, optional)
      • When type is "propose_mission":
        • type ("propose_mission", required)
        • proposal (string, required)
        • title (string, optional)
      • When type is "start_mission_run":
        • type ("start_mission_run", required)
        • runningMissionCount (number, required)
        • runningMissionSessionIds (string[], required)
      • When type is "apply_patch":
        • type ("apply_patch", required)
        • filePath (string, required)
        • fileName (string, required)
        • patchContent (string, required)
        • oldContent (string, optional)
        • newContent (string, optional)
        • files (object[], optional)
          • filePath (string, required)
          • fileName (string, required)
          • operation (enum, required): One of "create", "update", "delete".
          • moveTo (string, optional)
          • oldContent (string, optional)
          • newContent (string, optional)
      • When type is "mcp_tool":
        • type ("mcp_tool", required)
        • toolName (string, required)
        • impactLevel (string, required)
        • serverName (string, optional)
        • actualToolName (string, optional)
      • When type is "sandbox_violation":
        • type ("sandbox_violation", required)
        • violatingToolName (string, required)
        • target (string, required)
        • operationType (enum, required): One of "read", "write", "network", "tool".
        • violationType (enum, required): One of "filesystem-read", "filesystem-write", "network", "tool".
        • reason (string, required)
        • violationReason (enum, optional): One of "deny-list", "not-allowed".
        • isOrgDeny (boolean, required)
      • When type is "droid_shield_violation":
        • type ("droid_shield_violation", required)
        • command (string, required)
        • reason (string, required)
      • When type is "recommend_mission":
        • type ("recommend_mission", required)
        • reason (string, required)
      • When type is "script":
        • type ("script", required)
        • impactLevel (string, required)
        • calls (object[], required)
          • toolName (string, required)
          • line (number, required)
          • column (number, required)
          • toolInput (Record<string, any>, required)
          • confirmation (one of 12 objects, required)
            • When type is "edit":
              • type ("edit", required)
              • filePath (string, required)
              • fileName (string, required)
              • oldContent (string, optional)
              • newContent (string, optional)
            • When type is "exec":
              • type ("exec", required)
              • fullCommand (string, required)
              • command (string, required)
              • extractedCommands (string[], optional)
              • impactLevel (string, optional)
              • riskLevelReason (string, optional)
            • When type is "create":
              • type ("create", required)
              • filePath (string, required)
              • fileName (string, required)
              • content (string, required)
            • When type is "ask_user":
              • type ("ask_user", required)
              • questionnaire (string, required)
              • parsed (object, optional)
                • questions (object[], required)
                  • index (number, required)
                  • topic (string, required)
                  • question (string, required)
                  • options (string[], required)
                  • multiSelect (boolean, optional)
              • parseError (object, optional)
                • message (string, required)
                • line (number, optional)
            • When type is "exit_spec_mode":
              • type ("exit_spec_mode", required)
              • plan (string, required)
              • title (string, optional)
              • contextSavingsPercent (number, optional)
              • supportsClientStartedHandoff (boolean, optional)
            • When type is "propose_mission":
              • type ("propose_mission", required)
              • proposal (string, required)
              • title (string, optional)
            • When type is "start_mission_run":
              • type ("start_mission_run", required)
              • runningMissionCount (number, required)
              • runningMissionSessionIds (string[], required)
            • When type is "apply_patch":
              • type ("apply_patch", required)
              • filePath (string, required)
              • fileName (string, required)
              • patchContent (string, required)
              • oldContent (string, optional)
              • newContent (string, optional)
              • files (object[], optional)
                • filePath (string, required)
                • fileName (string, required)
                • operation (enum, required): One of "create", "update", "delete".
                • moveTo (string, optional)
                • oldContent (string, optional)
                • newContent (string, optional)
            • When type is "mcp_tool":
              • type ("mcp_tool", required)
              • toolName (string, required)
              • impactLevel (string, required)
              • serverName (string, optional)
              • actualToolName (string, optional)
            • When type is "sandbox_violation":
              • type ("sandbox_violation", required)
              • violatingToolName (string, required)
              • target (string, required)
              • operationType (enum, required): One of "read", "write", "network", "tool".
              • violationType (enum, required): One of "filesystem-read", "filesystem-write", "network", "tool".
              • reason (string, required)
              • violationReason (enum, optional): One of "deny-list", "not-allowed".
              • isOrgDeny (boolean, required)
            • When type is "droid_shield_violation":
              • type ("droid_shield_violation", required)
              • command (string, required)
              • reason (string, required)
            • When type is "recommend_mission":
              • type ("recommend_mission", required)
              • reason (string, required)
          • alwaysAsk (boolean, optional)
  • options (object[], required)
    • label (string, required)
    • value (enum, required): One of "proceed_once", "proceed_always", "proceed_always_file", "proceed_auto_run", "proceed_auto_run_low", "proceed_auto_run_medium", "proceed_auto_run_high", "proceed_new_session", "proceed_new_session_low", "proceed_new_session_medium", "proceed_new_session_high", "proceed_edit", "proceed_always_tools", "proceed_always_server", "proceed_report_false_positive", "cancel".
  • associatedSessionIds (string[], optional)
  • workerSessionId (string, optional)

Your result (required)

  • selectedOption (enum, required): One of "proceed_once", "proceed_always", "proceed_always_file", "proceed_auto_run", "proceed_auto_run_low", "proceed_auto_run_medium", "proceed_auto_run_high", "proceed_new_session", "proceed_new_session_low", "proceed_new_session_medium", "proceed_new_session_high", "proceed_edit", "proceed_always_tools", "proceed_always_server", "proceed_report_false_positive", "cancel".
  • comment (string, optional)
  • editedSpecContent (string, optional): Required when selectedOption is proceed_edit.
  • clientStartsHandoffSession (boolean, optional): Set it with a proceed_new_session* option to start the new session yourself: Droid creates the session without switching to it and sends spec_handoff_session_created with its ID and first prompt, instead of starting the implementation in place. A Droid that predates the field ignores it and starts in place.
  • specHandoffId (string, optional): Droid echoes it on spec_handoff_session_created, so that when several clients answer the same permission request, only the one whose answer was accepted starts the new session.
  • respondedBy (object, optional)
    • userId (string, required)
    • name (string, optional)
    • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
    • sharedSessionMember (true, optional)
    • receipt (string, optional)

droid.ask_user

Params (required)

  • toolCallId (string, required)
  • questions (object[], required)
    • index (number, required)
    • topic (string, required)
    • question (string, required)
    • options (string[], required)
    • optionDescriptions (string[], optional)
    • multiSelect (boolean, optional)
    • context (string, optional)
  • blocking (boolean, optional)

Your result (required)

  • cancelled (boolean, optional)
  • answers (object[], required)
    • index (number, required)
    • question (string, required)
    • answer (string, required)
  • respondedBy (object, optional)
    • userId (string, required)
    • name (string, optional)
    • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
    • sharedSessionMember (true, optional)
    • receipt (string, optional)

droid.pick_options

Params (required)

  • toolCallId (string, required)
  • title (string, required)
  • hint (string, optional)
  • emptyText (string, optional)
  • rows (object[], required)
    • id (string, required)
    • label (string, required)
    • detail (string, optional)
  • multi (boolean, required)
  • preselectedIds (string[], required)
  • initialSearch (string, optional)

Your result (required)

  • cancelled (boolean, optional)
  • selectedIds (string[], required)
  • refresh (boolean, optional)

droid.disconnect

Droid reads no further requests. Its client counts it as disconnected from then on, even while the transport stays open.

Params (required): an empty object.

Session notifications

droid.session_notification carries one of these 46 notifications in params.notification, named by its type. Ignore a type your client does not know: newer versions of Droid add types.

tool_result

Payload

  • id (string, optional)
  • type ("tool_result", required)
  • toolUseId (string, required)
  • content (string | (one of 3 objects)[], optional)
    • When type is "text":
      • id (string, optional)
      • type ("text", required)
      • text (string, required)
    • When type is "image":
      • id (string, optional)
      • type ("image", required)
      • source (object, required)
        • type ("base64", required)
        • data (string, required)
        • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
      • elided (object, optional)
        • bytes (integer, required): At least 0.
        • lines (integer, optional): At least 0.
        • width (integer, optional): Greater than 0.
        • height (integer, optional): Greater than 0.
        • preview (string, optional)
      • generated (boolean, optional)
    • When type is "document":
      • id (string, optional)
      • type ("document", required)
      • source (one of 2 objects, required)
        • When type is "base64":
          • type ("base64", required)
          • mediaType ("application/pdf", required)
          • data (string, required)
          • parsedData (string, optional)
          • name (string, optional)
          • path (string, optional)
        • When type is "text":
          • type ("text", required)
          • mediaType ("text/plain", required)
          • data (string, required)
          • name (string, optional)
          • mime (string, optional)
      • elided (object, optional)
        • bytes (integer, required): At least 0.
        • lines (integer, optional): At least 0.
        • width (integer, optional): Greater than 0.
        • height (integer, optional): Greater than 0.
        • preview (string, optional)
  • elided (object, optional)
    • bytes (integer, required): At least 0.
    • lines (integer, optional): At least 0.
    • width (integer, optional): Greater than 0.
    • height (integer, optional): Greater than 0.
    • preview (string, optional)
  • isError (boolean, optional)
  • modelContent (string, optional)
  • respondedBy (object, optional)
    • userId (string, required)
    • name (string, optional)
    • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
    • sharedSessionMember (true, optional)
    • receipt (string, optional)
  • modelOnly (boolean, optional)
  • messageId (string, required)

tool_progress_update

Payload

  • type ("tool_progress_update", required)
  • toolUseId (string, required)
  • toolName (string, required)
  • update (object, required)
    • type (enum, required): One of "tool_call", "tool_result", "error", "status", "message".
    • toolName (string, optional)
    • status (string, optional)
    • details (string, optional)
    • text (string, optional)
    • error (string, optional)
    • timestamp (number, optional)
    • parameters (Record<string, any>, optional)
    • valueSnippet (string, optional)
    • terminalId (string, optional)
    • fullOutput (string, optional)
    • exitCode (integer | null, optional)
    • signal (string | null, optional)
    • subagentSessionId (string, optional)

create_message

Payload

  • type ("create_message", required)
  • message (object, required)
    • id (string, required)
    • role (enum, required): One of "user", "assistant", "tool", "system".
    • content ((one of 7 objects)[], required)
      • When type is "text":
        • id (string, optional)
        • type ("text", required)
        • text (string, required)
      • When type is "image":
        • id (string, optional)
        • type ("image", required)
        • source (object, required)
          • type ("base64", required)
          • data (string, required)
          • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
        • elided (object, optional)
          • bytes (integer, required): At least 0.
          • lines (integer, optional): At least 0.
          • width (integer, optional): Greater than 0.
          • height (integer, optional): Greater than 0.
          • preview (string, optional)
        • generated (boolean, optional)
      • When type is "thinking":
        • id (string, optional)
        • type ("thinking", required)
        • signature (string, required)
        • signatureProvider (enum, optional): One of "anthropic", "openai", "generic-chat-completion-api", "factory", "google", "xai", "bedrock-converse", "unknown".
        • thinking (string, required)
        • durationMs (number, optional): At least 0.
        • progressUpdate (boolean, optional)
      • When type is "redacted_thinking":
        • id (string, optional)
        • type ("redacted_thinking", required)
        • data (string, required)
      • When type is "tool_use":
        • type ("tool_use", required)
        • id (string, required)
        • input (Record<string, any>, required)
        • name (string, required)
        • thoughtSignature (string, optional)
        • namespace (string, optional)
        • scriptExecution (object, optional)
          • runId (string, required)
          • outerToolUseId (string, required)
          • site (number, optional)
          • step (object, optional)
            • offset (number, required)
            • text (string, required)
          • seen (number, optional)
        • scriptOracle (object, optional)
          • callCount (number, required)
          • rows (object[], required)
            • id (string, required)
            • site (number, optional)
            • toolName (string, required)
            • path (string[], required)
            • input (Record<string, any>, required)
            • count (number, required)
      • When type is "tool_result":
        • id (string, optional)
        • type ("tool_result", required)
        • toolUseId (string, required)
        • content (string | (one of 3 objects)[], optional)
          • When type is "text":
            • id (string, optional)
            • type ("text", required)
            • text (string, required)
          • When type is "image":
            • id (string, optional)
            • type ("image", required)
            • source (object, required)
              • type ("base64", required)
              • data (string, required)
              • mediaType (enum, required): One of "image/jpeg", "image/png", "image/gif", "image/webp".
            • elided (object, optional)
              • bytes (integer, required): At least 0.
              • lines (integer, optional): At least 0.
              • width (integer, optional): Greater than 0.
              • height (integer, optional): Greater than 0.
              • preview (string, optional)
            • generated (boolean, optional)
          • When type is "document":
            • id (string, optional)
            • type ("document", required)
            • source (one of 2 objects, required)
              • When type is "base64":
                • type ("base64", required)
                • mediaType ("application/pdf", required)
                • data (string, required)
                • parsedData (string, optional)
                • name (string, optional)
                • path (string, optional)
              • When type is "text":
                • type ("text", required)
                • mediaType ("text/plain", required)
                • data (string, required)
                • name (string, optional)
                • mime (string, optional)
            • elided (object, optional)
              • bytes (integer, required): At least 0.
              • lines (integer, optional): At least 0.
              • width (integer, optional): Greater than 0.
              • height (integer, optional): Greater than 0.
              • preview (string, optional)
        • elided (object, optional)
          • bytes (integer, required): At least 0.
          • lines (integer, optional): At least 0.
          • width (integer, optional): Greater than 0.
          • height (integer, optional): Greater than 0.
          • preview (string, optional)
        • isError (boolean, optional)
        • modelContent (string, optional)
        • respondedBy (object, optional)
          • userId (string, required)
          • name (string, optional)
          • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
          • sharedSessionMember (true, optional)
          • receipt (string, optional)
        • modelOnly (boolean, optional)
      • When type is "document":
        • id (string, optional)
        • type ("document", required)
        • source (one of 2 objects, required)
          • When type is "base64":
            • type ("base64", required)
            • mediaType ("application/pdf", required)
            • data (string, required)
            • parsedData (string, optional)
            • name (string, optional)
            • path (string, optional)
          • When type is "text":
            • type ("text", required)
            • mediaType ("text/plain", required)
            • data (string, required)
            • name (string, optional)
            • mime (string, optional)
        • elided (object, optional)
          • bytes (integer, required): At least 0.
          • lines (integer, optional): At least 0.
          • width (integer, optional): Greater than 0.
          • height (integer, optional): Greater than 0.
          • preview (string, optional)
    • createdAt (number, required): Unix timestamp, in milliseconds, when the message was created.
    • updatedAt (number, required): Unix timestamp, in milliseconds, when the message last changed.
    • parentId (string, optional)
    • seq (integer, optional): At least 0.
    • userMessageSource (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
    • literalText (true, optional)
    • sender (one of 4 objects, optional)
      • When kind is "orchestrator":
        • kind ("orchestrator", required)
        • sessionId (string, required): At least 1 UTF-16 code unit.
      • When kind is "agent":
        • kind ("agent", required)
        • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
        • sessionId (string, required): At least 1 UTF-16 code unit.
      • When kind is "top-level":
        • kind ("top-level", required)
        • sessionId (string, required): At least 1 UTF-16 code unit.
      • When kind is "work-update":
        • kind ("work-update", required)
        • sessions (object[], required): At least 1 item.
          • sessionId (string, required): At least 1 UTF-16 code unit.
          • title (string, required): At least 1 UTF-16 code unit. At most 120 UTF-16 code units. Matches /^\P{Cc}+$/u.
    • author (object, optional)
      • userId (string, required)
      • name (string, optional)
      • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • sharedSessionMember (true, optional)
      • receipt (string, optional)
    • docCommentThread (object, optional)
      • threadId (string (uuid), required)
      • doc (one of 3 objects, optional): The unknown form records a doc reference that could not be read, such as one whose kind a newer client added; reportedKind is the kind it carried.
        • When kind is "space":
          • kind ("space", required)
          • spaceId (string (uuid), required)
          • documentId (string (uuid), required)
        • When kind is "local":
          • kind ("local", required)
          • machineId (string, required): At least 1 UTF-16 code unit.
          • path (string, required): At least 1 UTF-16 code unit.
        • When kind is "unknown":
          • kind ("unknown", required)
          • reportedKind (string, optional)
      • documentPath (string, required): At least 1 UTF-16 code unit.
    • sessionRename (object, optional)
      • title (string, required)
    • mentions (object[], optional)
      • userId (string, required)
      • name (string, required)
    • replyTo (string[], optional)
    • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
    • visibility (enum, optional): One of "both", "llm_only", "user_only".
    • systemNotice (true, optional): Marks a notice the harness wrote into the conversation, such as a provider error or a skill activation. The role is unchanged by it, so readers that predate the marker still show its text.
    • noticeKind ("reasoning_effort_disabled", optional): On a system notice: what it reports. More values may be added; treat a value you do not know as unknown. A client that hides system notices should still show the reasoning_effort_disabled kind, because it explains why the reasoning level in use differs from the one selected.
    • reasoningEffortStepDown (object, optional): On a reasoning_effort_disabled notice: the model, the selected reasoning level the organization disabled, and the level that ran instead. Absent on notices written before the field existed.
      • modelId (string, required)
      • requested (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • used (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • hookRowId (string, optional): On a notice that repeats a hook's error: the id of the hook row that already shows the error. A client that draws that hook row can leave the notice out.
    • endedEarly (true, optional): Marks an assistant message that ended early. When the session is loaded, a model-owned call of it that has no result is not run or resumed, unless a pending marker reserves that call or a message without the mark also makes it.
    • openaiMessageId (string, optional)
    • openaiPhase (enum | null, optional): One of "commentary", "final_answer".
    • openaiEncryptedContent (string, optional)
    • openaiReasoningId (string, optional)
    • openaiReasoningSummary (string, optional)
    • geminiThoughtSignature (string, optional): @deprecated Use thinking block signature fields with signatureProvider: "google" instead. Do not use in new code.
    • chatCompletionReasoningField (enum, optional): One of "reasoning", "reasoning_content".
    • chatCompletionReasoningContent (string, optional)
    • geminiNativeContent (string, optional)
    • isUserVisible (boolean, optional)
    • isError (boolean, optional)
    • modelId (string, optional)
    • apiProvider (enum, optional): One of "bedrock", "anthropic", "vertex_anthropic", "bedrock_anthropic", "bedrock_converse", "bedrock_openai", "openai", "azure_openai", "azure_anthropic", "google", "xai", "mistral", "fireworks", "baseten", "together", "snowflake", "databricks".
    • routerId (string, optional)
    • reasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • hookEventName (string, optional)
    • hookMatcher (string, optional)
    • hookCommands (object[], optional)
      • command (string, required)
      • timeout (number, optional)
    • hookStatus (enum, optional): One of "executing", "completed", "error".
    • hookResults (object[], optional)
      • exitCode (number, required)
      • stdout (string, required)
      • stderr (string, required)
      • suppressOutput (boolean, optional)
      • cancelled (true, optional): The run's abort ended this hook before it exited; exitCode, stdout and stderr are the cancellation's, not the hook's.
      • error (string, optional): Diagnostic for this hook alone, never its decision: why it failed (it could not run, timed out, printed JSON that does not parse or fails validation, or exited non-zero with plain-text stdout, or with any stdout where onFailure: "block" applies), or, for an exit 2, its stderr, else its plain-text stdout, else its exit code. A JSON block or deny alone does not create a diagnostic. Absent when the hook succeeded or was cancelled, and on rows recorded before this field existed even if the hook failed. A non-zero exitCode alone is not a failure: exit 1 with valid JSON output succeeds, except on a PreToolUse, PostToolUse, UserPromptSubmit or PreCompact hook with onFailure: "block", which fails on any exit other than 0 or 2.
    • hookToolCallId (string, optional)
    • hookParentId (string, optional)
    • hookOrder (number, optional)
    • hookPreventedAction (boolean, optional)
    • hiddenFromUserViews (boolean, optional)
    • hookStartTime (number, optional): Unix timestamp, in milliseconds, when the hook started.
    • hookEndTime (number, optional): Unix timestamp, in milliseconds, when the hook finished.
    • isParallelExecution (boolean, optional)
    • parallelGroupId (string, optional)
  • parentId (string, optional)
  • requestId (string, optional)

error

Payload

  • type ("error", required)
  • message (string, required)
  • errorType (enum, required): One of "ConnectionError", "ProtocolError", "SessionError", "TimeoutError", "DroidClientError", "ProcessExitError", "Error".
  • timestamp (string, required)
  • exitCode (integer, optional)
  • turnId (string, optional)
  • unstarted (boolean, optional)
  • error (object, optional)
    • name (string, required)
    • message (string, required)

droid_working_state_changed

Payload

  • type ("droid_working_state_changed", required)
  • newState (enum, required): One of "idle", "thinking", "authenticating", "streaming_assistant_message", "waiting_for_tool_confirmation", "executing_tool", "compacting_conversation".
  • activity (enum, optional): One of "authenticating", "awaiting_background_work".
  • backgroundWork (integer, optional): At least 0.
  • synthetic (boolean, optional)

session_compacted

Payload

  • type ("session_compacted", required)
  • summaryId (string, required)
  • removedCount (number, required): At least 0.
  • visibleBoundaryMessageId (string | null, required)
  • hiddenThroughMessageId (string | null, optional)

loop_state_changed

Deprecated: Loop state notifications are superseded by daemon cron events.

Payload

  • type ("loop_state_changed", required)
  • loopState (object, required)
    • loopId (string, required)
    • status (enum, required): One of "waiting", "running", "due", "stopped", "error".
    • intervalMs (integer, required): At least 5000. At most 86400000.
    • iteration (integer, required): At least 0.
    • startedAt (integer, required): At least 0.
    • updatedAt (integer, required): At least 0.
    • nextRunAt (integer | null, required): At least 0.
    • isDue (boolean, required)
    • lastRunStartedAt (integer, optional): At least 0.
    • lastRunCompletedAt (integer, optional): At least 0.
    • stopReason (enum, optional): One of "user_stopped", "manual_message", "interrupted", "session_closed", "process_exited", "error".

permission_resolved

Payload

  • type ("permission_resolved", required)
  • requestId (string, required)
  • toolUseIds (string[], required)
  • selectedOption (enum, required): One of "proceed_once", "proceed_always", "proceed_always_file", "proceed_auto_run", "proceed_auto_run_low", "proceed_auto_run_medium", "proceed_auto_run_high", "proceed_new_session", "proceed_new_session_low", "proceed_new_session_medium", "proceed_new_session_high", "proceed_edit", "proceed_always_tools", "proceed_always_server", "proceed_report_false_positive", "cancel".
  • respondedBy (object, optional)
    • userId (string, required)
    • name (string, optional)
    • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
    • sharedSessionMember (true, optional)
    • receipt (string, optional)

settings_updated

Payload

  • type ("settings_updated", required)
  • requestId (string, optional)
  • settings (object, required)
    • autonomyMode (enum, optional): Deprecated: use interactionMode + autonomyLevel instead. One of "normal", "spec", "auto-low", "auto-medium", "auto-high".
    • interactionMode (enum, optional): One of "auto", "spec", "agi", "mission".
    • autonomyLevel (enum, optional): One of "off", "low", "medium", "high".
    • availableAutonomyLevels (enum[], optional): Autonomy levels the user may select under the organization managed maxAutonomyLevel policy. Each item: one of "off", "low", "medium", "high".
    • modelId (string, optional)
    • reasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • routedModelId (string, optional)
    • routedReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • specModeModelId (string, optional)
    • specModeReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • additionalToolIds (string[], optional)
    • enabledToolIds (string[], optional)
    • disabledToolIds (string[], optional)
    • restrictToolIds (string[], optional)
    • missionSettings (object, optional)
      • workerModel (string, optional)
      • workerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • validationWorkerModel (string, optional)
      • validationWorkerReasoningEffort (enum, optional): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • skipScrutiny (boolean, optional)
      • skipUserTesting (boolean, optional)
    • tags (object[], optional)
      • name (string, required): At least 1 UTF-16 code unit.
      • metadata (Record<string, string>, optional)
    • compactionThresholdCheckEnabled (boolean, optional)
    • migrationActive (boolean, optional)
    • migrationDirectory (string, optional)
    • sharedFolderPath (string, optional)
    • hasPendingStandardRestore (boolean, optional)
    • artifacts (object[], optional): At most 100 items.
      • id (string, required): At least 1 UTF-16 code unit. At most 2048 UTF-16 code units.
      • url (string (uri), required): At most 2048 UTF-16 code units.
      • title (string, optional): At most 500 UTF-16 code units.
      • externalId (string, optional): At most 128 UTF-16 code units.
      • provider (enum, required): One of "github", "gitlab", "linear", "jira", "notion", "web", "local", "connector".
      • kind (enum, required): One of "pull_request", "issue", "document", "record", "file", "link".
      • connector (string, optional)
      • fileRole ("spec", optional)
      • action (enum, optional): One of "create", "update", "delete", "view", "close", "merge". Default "create".
      • source (enum, required): One of "tool", "classifier", "user_message".
      • createdAt (string (date-time), required)
      • toolCallId (string, optional)
    • availableModels (object[], optional)
      • id (string, required)
      • displayName (string, required)
      • shortDisplayName (string, required)
      • modelProvider (enum, required): One of "anthropic", "openai", "generic-chat-completion-api", "factory", "google", "xai", "bedrock-converse".
      • supportedReasoningEfforts (enum[], required): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • defaultReasoningEffort (enum, required): One of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
      • isCustom (boolean, optional): Default false.
      • behavesLikeModelId (string, optional)
      • credentialSource (enum, optional): One of "chatgpt-plan", "openrouter-account", "github-copilot-plan", "vercel-ai-gateway-account".
      • upstreamModelId (string, optional)
      • noImageSupport (boolean, optional)
      • supportsImageGeneration (boolean, optional)
      • tier (enum, optional): One of "standard", "premium", "overage".
      • tokenMultiplier (number, optional)
      • promoLabel (string, optional)
      • kind (enum, optional): One of "concrete", "router".
      • variantBadge (string, optional)
      • isNew (boolean, optional)
      • disabledReasoningEfforts (enum[], optional): Each item: one of "none", "dynamic", "off", "minimal", "low", "medium", "high", "xhigh", "max".
    • fusion (boolean, optional)

session_title_updated

Payload

  • type ("session_title_updated", required)
  • requestId (string, optional)
  • title (string, required)
  • updateType (enum, optional): One of "llm_generated", "first_user_message", "manual_rename".

session_working_directory_changed

Payload

  • type ("session_working_directory_changed", required)
  • cwd (string, required)

child_session_available

Payload

  • type ("child_session_available", required)
  • childSessionId (string, required)
  • toolUseId (string, optional)
  • subagentType (string, optional)
  • description (string, optional)
  • timestamp (number, required)

child_session_settled

Sent on a parent session when one of its Task children reaches a terminal outcome, so a client that cannot reach the child's computer can settle it.

Payload

  • type ("child_session_settled", required)
  • childSessionId (string, required)
  • toolUseId (string, optional)
  • status (enum, optional): Droid sends one of completed, failed, cancelled. One of "pending", "running", "completed", "failed", "cancelled".
  • timestamp (number, required)

spec_handoff_session_created

A spec was approved into a new session the client asked to start itself; carries the new session ID and the prompt that starts its implementation.

Payload

  • type ("spec_handoff_session_created", required)
  • newSessionId (string, required)
  • initialPrompt (string, required)
  • specHandoffId (string, optional): The specHandoffId of the accepted permission result.
  • timestamp (number, required)

mcp_status_changed

Payload

  • type ("mcp_status_changed", required)
  • servers (object[], required)
    • name (string, required)
    • displayName (string, optional)
    • status (enum, required): One of "connecting", "connected", "disconnected", "failed", "disabled".
    • source (enum, required): One of "org", "runtime", "user", "project", "folder", "dynamic", "builtin".
    • isManaged (boolean, required)
    • memberCanToggle (boolean, optional)
    • memberCanRemove (boolean, optional)
    • memberCanChangeTools (boolean, optional)
    • memberCanSignIn (boolean, optional)
    • isUserCloud (boolean, optional)
    • overridesUserCloudServer (boolean, optional)
    • blockedByPolicy (boolean, optional)
    • error (string, optional)
    • toolCount (number, optional)
    • serverType (enum, required): One of "stdio", "http", "sse".
    • hasAuthTokens (boolean, optional)
    • requiresAuth (boolean, optional)
    • pendingAuthUrl (string, optional)
    • pendingAuthMessage (string, optional)
    • pendingAuthState (string, optional)
  • summary (object, required)
    • total (number, required)
    • connected (number, required)
    • connecting (number, required)
    • failed (number, required)
    • disabled (number, optional)
    • configError (object, optional)
      • path (string, required)
      • message (string, required)

assistant_text_delta

Payload

  • type ("assistant_text_delta", required)
  • messageId (string, required)
  • blockIndex (number, required)
  • textDelta (string, required)

assistant_text_complete

Payload

  • type ("assistant_text_complete", required)
  • messageId (string, required)
  • blockIndex (number, required)

assistant_message_retracted

Payload

  • type ("assistant_message_retracted", required)
  • messageId (string, required)

structured_output

Payload

  • type ("structured_output", required)
  • messageId (string, required)
  • structuredOutput (Record<string, any> | null, required)

thinking_text_delta

Payload

  • type ("thinking_text_delta", required)
  • messageId (string, required)
  • blockIndex (number, required)
  • textDelta (string, required)

thinking_text_complete

Payload

  • type ("thinking_text_complete", required)
  • messageId (string, required)
  • blockIndex (number, required)
  • durationMs (number, optional): At least 0.

session_token_usage_changed

Payload

  • type ("session_token_usage_changed", required)
  • sessionId (string, required)
  • tokenUsage (object, required)
    • inputTokens (number, required)
    • outputTokens (number, required)
    • cacheCreationTokens (number, required)
    • cacheReadTokens (number, required)
    • thinkingTokens (number, required)
    • factoryCredits (number, optional)
    • tokenCountsScope ("byok_only", optional)
  • inclusiveTokenUsage (object, optional)
    • inputTokens (number, required)
    • outputTokens (number, required)
    • cacheCreationTokens (number, required)
    • cacheReadTokens (number, required)
    • thinkingTokens (number, required)
    • factoryCredits (number, optional)
    • tokenCountsScope ("byok_only", optional)
  • lastCallTokenUsage (object, optional)
    • inputTokens (number, required)
    • cacheReadTokens (number, required)
    • outputTokens (number, optional)
  • contextUsageRatio (number, optional): At least 0.

agent_turn_completed

Payload

  • type ("agent_turn_completed", required)
  • reason (enum, required): One of "completed", "cancelled", "permission_rejected", "error", "process_exit", "spec_handoff", "structured_output_missing", "structured_output_invalid", "structured_output_schema_invalid", "model_usage_exhausted", "model_authentication_failed", "model_request_rejected", "model_provider_unreachable", "model_provider_unavailable", "model_rate_limited", "prompt_rejected", "completion_persistence_failed", "no_approver_available", "host_resources_exhausted".
  • stopReason ("exit", optional)
  • usageLimit (enum, optional): One of "workstream_budget", "account".
  • stoppedScriptCalls (string[], optional): Each item: at least 1 UTF-16 code unit.
  • naturalStop (true, optional)
  • turnId (string, optional)
  • unstarted (boolean, optional)
  • newSessionId (string, optional)
  • tokenUsage (object, required)
    • inputTokens (number, required)
    • outputTokens (number, required)
    • cacheCreationTokens (number, required)
    • cacheReadTokens (number, required)
    • thinkingTokens (number, required)
    • factoryCredits (number, optional)
    • tokenCountsScope ("byok_only", optional)
  • cumulativeTokenUsage (object, optional)
    • inputTokens (number, required)
    • outputTokens (number, required)
    • cacheCreationTokens (number, required)
    • cacheReadTokens (number, required)
    • thinkingTokens (number, required)
    • factoryCredits (number, optional)
    • tokenCountsScope ("byok_only", optional)
  • childTokenUsage (object, optional)
    • inputTokens (number, required)
    • outputTokens (number, required)
    • cacheCreationTokens (number, required)
    • cacheReadTokens (number, required)
    • thinkingTokens (number, required)
    • factoryCredits (number, optional)
    • tokenCountsScope ("byok_only", optional)
  • cumulativeChildTokenUsage (object, optional)
    • inputTokens (number, required)
    • outputTokens (number, required)
    • cacheCreationTokens (number, required)
    • cacheReadTokens (number, required)
    • thinkingTokens (number, required)
    • factoryCredits (number, optional)
    • tokenCountsScope ("byok_only", optional)
  • durationMs (number, optional): At least 0.
  • turnAssistantMessageCount (integer, optional): At least 0.

mission_state_changed

Payload

  • type ("mission_state_changed", required)
  • state (enum, required): One of "planning", "awaiting_input", "initializing", "running", "paused", "orchestrator_turn", "completed".
  • updatedAt (string, optional)

mission_features_changed

Payload

  • type ("mission_features_changed", required)
  • features (object[], required)
    • id (string, required)
    • description (string, required)
    • status (enum, required): One of "pending", "in_progress", "completed", "cancelled".
    • skillName (string, required)
    • preconditions (string[], required)
    • expectedBehavior (string[], required)
    • fulfills (string[], optional)
    • milestone (string, optional)
    • workerSessionIds (string[], optional)
    • currentWorkerSessionId (string | null, optional)
    • completedWorkerSessionId (string | null, optional)

mission_progress_entry

Payload

  • type ("mission_progress_entry", required)
  • progressLog ((one of 11 objects)[], required)
    • When type is "mission_accepted":
      • timestamp (string, required)
      • type ("mission_accepted", required)
      • title (string, required)
    • When type is "mission_paused":
      • timestamp (string, required)
      • type ("mission_paused", required)
      • pauseReason (enum, optional): One of "unrecoverable_usage_402", "feature_retry_limit_exceeded", "scope_growth_limit_exceeded".
    • When type is "mission_resumed":
      • timestamp (string, required)
      • type ("mission_resumed", required)
      • resumeWorkerSessionId (string, optional)
    • When type is "mission_run_started":
      • timestamp (string, required)
      • type ("mission_run_started", required)
      • message (string, optional)
    • When type is "worker_started":
      • timestamp (string, required)
      • type ("worker_started", required)
      • workerSessionId (string, required)
      • spawnId (string, required)
      • featureId (string, optional)
      • modelId (string, optional)
      • substitutedFromModelId (string, optional)
    • When type is "worker_selected_feature":
      • timestamp (string, required)
      • type ("worker_selected_feature", required)
      • workerSessionId (string, required)
      • featureId (string, required)
    • When type is "worker_completed":
      • timestamp (string, required)
      • type ("worker_completed", required)
      • workerSessionId (string, required)
      • featureId (string, required)
      • successState (enum, required): One of "success", "partial", "failure".
      • returnToOrchestrator (boolean, required)
      • commitId (string, optional)
      • repoPath (string, optional)
      • exitCode (number, required)
      • validatorsPassed (boolean, optional)
      • handoff (object, optional)
        • salientSummary (string, optional)
        • whatWasImplemented (string, required)
        • whatWasLeftUndone (string, required)
        • verification (object, required)
          • commandsRun (object[], required)
            • command (string, required)
            • exitCode (number, required)
            • observation (string, required)
          • interactiveChecks (object[], optional)
            • action (string, required)
            • observed (string, required)
        • tests (object, required)
          • added (object[], required)
            • file (string, required)
            • cases (object[], required)
              • name (string, required)
              • verifies (string, required)
          • updated (string[], optional)
          • coverage (string, required)
        • discoveredIssues (object[], required)
          • severity (enum, required): One of "blocking", "non_blocking", "suggestion".
          • description (string, required)
          • suggestedFix (string, optional)
        • skillFeedback (object, optional)
          • followedProcedure (boolean, required)
          • deviations (object[], required)
            • step (string, required)
            • whatIDidInstead (string, required)
            • why (string, required)
          • suggestedChanges (string[], optional)
    • When type is "worker_failed":
      • timestamp (string, required)
      • type ("worker_failed", required)
      • workerSessionId (string, optional)
      • spawnId (string, required)
      • exitCode (number, optional)
      • reason (string, required)
      • failureReason (enum, optional): One of "unrecoverable_usage_402", "worker_exited_without_handoff".
    • When type is "worker_paused":
      • timestamp (string, required)
      • type ("worker_paused", required)
      • workerSessionId (string, required)
      • featureId (string, optional)
    • When type is "handoff_items_dismissed":
      • timestamp (string, required)
      • type ("handoff_items_dismissed", required)
      • dismissals (object[], optional)
        • type (enum, required): One of "discovered_issue", "critical_context", "incomplete_work".
        • sourceFeatureId (string, required)
        • summary (string, required)
        • justification (string, required)
    • When type is "milestone_validation_triggered":
      • timestamp (string, required)
      • type ("milestone_validation_triggered", required)
      • milestone (string, required)
      • featureId (string, required)

mission_heartbeat

Payload

  • type ("mission_heartbeat", required)
  • timestamp (string, required)

mission_worker_started

Payload

  • type ("mission_worker_started", required)
  • workerSessionId (string, required)

mission_worker_completed

Payload

  • type ("mission_worker_completed", required)
  • workerSessionId (string, required)
  • exitCode (number, required)

mcp_auth_required

Payload

  • type ("mcp_auth_required", required)
  • serverName (string, required)
  • authUrl (string, required)
  • message (string, required)
  • state (string, required)

mcp_auth_completed

Payload

  • type ("mcp_auth_completed", required)
  • serverName (string, required)
  • outcome (enum, required): One of "success", "cancelled", "failed".
  • message (string, required)

hook_execution_started

Payload

  • type ("hook_execution_started", required)
  • hookId (string, required)
  • hookEventName (string, required)
  • hookMatcher (string, optional)
  • hookCommands (object[], required)
    • command (string, required)
    • timeout (number, optional)
  • hookToolCallId (string, optional)
  • hookParentId (string, optional)
  • hookOrder (number, optional)
  • hiddenFromUserViews (boolean, optional)
  • isParallelExecution (boolean, optional)
  • parallelGroupId (string, optional)

hook_execution_completed

Payload

  • type ("hook_execution_completed", required)
  • hookId (string, required)
  • hookEventName (enum, optional): One of "PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit", "Stop", "SubagentStop", "PreCompact", "SessionStart", "SessionEnd".
  • hookMatcher (string, optional)
  • hookToolCallId (string, optional)
  • hookParentId (string, optional)
  • hookOrder (number, optional)
  • hookPreventedAction (boolean, optional)
  • hiddenFromUserViews (boolean, optional)
  • hookStatus (enum, required): One of "completed", "error".
  • hookResults (object[], optional)
    • exitCode (number, required)
    • stdout (string, required)
    • stderr (string, required)
    • suppressOutput (boolean, optional)
    • cancelled (true, optional): The run's abort ended this hook before it exited; exitCode, stdout and stderr are the cancellation's, not the hook's.
    • error (string, optional): Diagnostic for this hook alone, never its decision: why it failed (it could not run, timed out, printed JSON that does not parse or fails validation, or exited non-zero with plain-text stdout, or with any stdout where onFailure: "block" applies), or, for an exit 2, its stderr, else its plain-text stdout, else its exit code. A JSON block or deny alone does not create a diagnostic. Absent when the hook succeeded or was cancelled, and on rows recorded before this field existed even if the hook failed. A non-zero exitCode alone is not a failure: exit 1 with valid JSON output succeeds, except on a PreToolUse, PostToolUse, UserPromptSubmit or PreCompact hook with onFailure: "block", which fails on any exit other than 0 or 2.
    • command (string, optional)
    • timeout (number, optional)

tool_call

Payload

  • type ("tool_call", required)
  • toolUse (object, required)
    • type ("tool_use", required)
    • id (string, required)
    • input (Record<string, any>, required)
    • name (string, required)
    • thoughtSignature (string, optional)
    • namespace (string, optional)
    • scriptExecution (object, optional)
      • runId (string, required)
      • outerToolUseId (string, required)
      • site (number, optional)
      • step (object, optional)
        • offset (number, required)
        • text (string, required)
      • seen (number, optional)
    • scriptOracle (object, optional)
      • callCount (number, required)
      • rows (object[], required)
        • id (string, required)
        • site (number, optional)
        • toolName (string, required)
        • path (string[], required)
        • input (Record<string, any>, required)
        • count (number, required)

queued_messages_discarded

Payload

  • type ("queued_messages_discarded", required)
  • messages (object[], optional)
    • requestId (string, optional)
    • text (string, required)
  • drainedRequestIds (string[], optional)
  • text (string, required)
  • requestId (string, optional)

llm_retry

Payload

  • type ("llm_retry", required)
  • attempt (number, required)
  • reason (enum, optional): One of "overloaded", "rate_limited", "timeout", "network", "empty_response", "unknown".

tool_execution_heartbeat

Keep-alive that Execute, Task and TaskOutput send about every 30 seconds while their call runs, whether or not it streams output; a call waiting on a person may send none. A background Execute keeps sending it after its call returns, marked detached unless the session's turn is held waiting on that command, and detached ones stop after a time limit. No other tool sends it, and a client may ignore it. The daemon refreshes the session's inactivity timeout on it and passes it only to that session's listeners, never to daemon-wide ones.

Payload

  • type ("tool_execution_heartbeat", required)
  • toolUseId (string, required)
  • toolName (string, required)
  • detached (boolean, optional)

tool_execution_phase_changed

Payload

  • type ("tool_execution_phase_changed", required)
  • toolUseId (string, required)
  • toolName (string, required)
  • phase (enum, required): One of "streaming_input", "queued", "executing", "settled_after_execution", "settled_without_execution", "settled_unknown".

queued_message_handed_back

Payload

  • type ("queued_message_handed_back", required)
  • requestId (string, required)
  • text (string, required)
  • message (string, optional)

ask_user_resolved

Payload

  • type ("ask_user_resolved", required)
  • requestIds (string[], required)

background_processes_changed

Full snapshot of the background processes the session is tracking, sent whenever that set changes.

Payload

  • capturedAtMs (number, required)
  • processes (object[], required)
    • id (string, required)
    • pid (number, required)
    • command (string, required)
    • startedAtMs (number, required)
    • toolUseId (string, optional)
    • outputFile (string, optional)
  • type ("background_processes_changed", required)

script_oracle_changed

The oracle's rows for a Script changed: its text grew while streaming, or the run on the complete text finished. Clients render the rows as the Script's preview and never parse the program themselves.

Payload

  • type ("script_oracle_changed", required)
  • scriptToolUseId (string, required)
  • oracle (object, required)
    • callCount (number, required)
    • rows (object[], required)
      • id (string, required)
      • site (number, optional)
      • toolName (string, required)
      • path (string[], required)
      • input (Record<string, any>, required)
      • count (number, required)

queued_messages_changed

Every user prompt waiting in the session's queue, in order, sent to all of the session's clients whenever that queue changes.

Payload

  • type ("queued_messages_changed", required)
  • messages (object[], required)
    • requestId (string, required)
    • queuePlacement (enum, required): One of "end_of_turn", "end_of_loop".
    • author (object, optional)
      • userId (string, required)
      • name (string, optional)
      • source (enum, optional): One of "web", "desktop", "cli_tui", "cli_exec", "cli_acp", "slack", "jira", "linear", "microsoft-teams", "google-chat", "imessage", "sessions_api", "api", "sdk", "automation", "readiness-remediation", "readiness-evaluation", "wiki-generation", "wiki-ci-setup", "ios".
      • sharedSessionMember (true, optional)
      • receipt (string, optional)
    • text (string, required)
    • imageCount (number, required)
    • fileCount (number, required)

user_message_settled

Every frame addressed to one add_user_message request has been sent. The session's working state has its own frame and can follow.

Payload

  • type ("user_message_settled", required)
  • requestId (string, required)
  • turnId (string, required)

message_reactions_changed

One message's reactions after a person added or took one back, sent to all of the session's clients.

Payload

  • type ("message_reactions_changed", required)
  • messageId (string, required)
  • reactions (object[], required)
    • messageId (string, required): At least 1 UTF-16 code unit.
    • emoji (string, required): At least 1 UTF-16 code unit.
    • userId (string, required): At least 1 UTF-16 code unit.
    • name (string, optional)

attention_requests_changed

Every doc the session's agent asked the human to look at that is still waiting to be opened or dismissed, sent whenever that list changes.

Payload

  • type ("attention_requests_changed", required)
  • requests (object[], required)
    • requestId (string, required): At least 1 UTF-16 code unit.
    • path (string, required): At least 1 UTF-16 code unit.
    • heading (object | null, required)
      • slug (string, required)
      • text (string, required)
    • note (string, required)
    • requestedAt (integer, required): At least 0.