Expand description
JSON-RPC request/response types and typed namespace builders for
Client::rpc and session::Session::rpc.
JSON-RPC request/response types and typed namespace builders.
All types are auto-generated from the Copilot CLI protocol schemas. This module is the stable public access point — the underlying crate-private modules where the types are defined are an implementation detail whose layout may change.
Use the crate::Client::rpc and crate::session::Session::rpc helper
methods to obtain a typed view over the protocol surface.
Modules§
- rpc_
methods - JSON-RPC method name constants.
Structs§
- Abort
Request - Parameters for aborting the current turn
- Abort
Result - Result of aborting the current turn
- Account
GetQuota Request - Optional GitHub token used to look up quota for a specific user instead of the global auth context.
- Account
GetQuota Result - Quota usage snapshots for the resolved user, keyed by quota type.
- Account
Quota Snapshot - Schema for the
AccountQuotaSnapshottype. - Agent
Discovery Path - Schema for the
AgentDiscoveryPathtype. - Agent
Discovery Path List - Canonical locations where custom agents can be created so the runtime will recognize them.
- Agent
GetCurrent Result - The currently selected custom agent, or null when using the default agent.
- Agent
Info - Schema for the
AgentInfotype. - Agent
List - Custom agents available to the session.
- Agent
Registry Live Target Entry - Full registry entry for the spawned child. Lets the controller call
handleLiveTargetSelected(entry)directly without re-reading the registry (avoids a TOCTOU window). - Agent
Registry LogCapture - Per-spawn log-capture outcome; populated from spawnLiveTarget.
- Agent
Registry Spawn Error child_process.spawnitself failed before the child entered the registry.- Agent
Registry Spawn Registry Timeout - Spawn succeeded but the child did not publish a matching managed-server entry within the timeout.
- Agent
Registry Spawn Request - Inputs to spawn a managed-server child via the controller’s spawn delegate.
- Agent
Registry Spawn Spawned - Managed-server child was spawned and registered successfully.
- Agent
Registry Spawn Validation Error - Synchronous pre-validation rejected the spawn request.
- Agent
Reload Result - Custom agents available to the session after reloading definitions from disk.
- Agent
Select Request - Name of the custom agent to select for subsequent turns.
- Agent
Select Result - The newly selected custom agent.
- Agents
Discover Request - Optional project paths to include in agent discovery.
- Agents
Discover Result - Agents discovered across user, project, plugin, and remote sources.
- Agents
GetDiscovery Paths Request - Optional project paths to include when enumerating agent discovery directories.
- Agents
GetDiscovery Paths Result - Canonical locations where custom agents can be created so the runtime will recognize them.
- Allow
AllPermission SetResult - Indicates whether the operation succeeded and reports the post-mutation state.
- Allow
AllPermission State - Current full allow-all permission state.
- ApiKey
Auth Info - Schema for the
ApiKeyAuthInfotype. - Attachment
Blob - Blob attachment with inline base64-encoded data
- Attachment
Directory - Directory attachment
- Attachment
Extension Context - Structured context contributed by an extension. Composer pills displayed in the host are forwarded back through session.send.attachments, then rendered into the model prompt as an <extension_context> XML block.
- Attachment
File - File attachment
- Attachment
File Line Range - Optional line range to scope the attachment to a specific section of the file
- Attachment
GitHub Reference - GitHub issue, pull request, or discussion reference
- Attachment
Selection - Code selection attachment from an editor
- Attachment
Selection Details - Position range of the selection within the file
- Attachment
Selection Details End - End position of the selection
- Attachment
Selection Details Start - Start position of the selection
- Cancel
User Requested Shell Command Result - Cancellation result for a user-requested shell command.
- Canvas
Action - Canvas action that the agent or host can invoke. To discover the input schema for a particular action, call the list_canvas_capabilities tool.
- Canvas
Action Invoke Request - Canvas action invocation parameters.
- Canvas
Action Invoke Result - Canvas action invocation result.
- Canvas
Close Request - Canvas close parameters.
- Canvas
Host Context - Host context supplied by the runtime.
- Canvas
Host Context Capabilities - Host capabilities
- Canvas
List - Declared canvases available in this session.
- Canvas
List Open Result - Live open-canvas snapshot.
- Canvas
Open Request - Canvas open parameters.
- Canvas
Open Result - Canvas open result returned by the provider.
- Canvas
Provider Close Request - Canvas close parameters sent to the provider.
- Canvas
Provider Invoke Action Request - Canvas action invocation parameters sent to the provider.
- Canvas
Provider Open Request - Canvas open parameters sent to the provider.
- Canvas
Provider Open Result - Canvas open result returned by the provider.
- Canvas
Session Context - Session context supplied by the runtime.
- Client
Rpc - Typed view over the
Client’s server-level RPC namespace. - Client
RpcAccount account.*RPCs.- Client
RpcAgent Registry agentRegistry.*RPCs.- Client
RpcAgents agents.*RPCs.- Client
RpcInstructions instructions.*RPCs.- Client
RpcMcp mcp.*RPCs.- Client
RpcMcp Config mcp.config.*RPCs.- Client
RpcModels models.*RPCs.- Client
RpcPlugins plugins.*RPCs.- Client
RpcPlugins Marketplaces plugins.marketplaces.*RPCs.- Client
RpcRuntime runtime.*RPCs.- Client
RpcSecrets secrets.*RPCs.- Client
RpcSession Fs sessionFs.*RPCs.- Client
RpcSessions sessions.*RPCs.- Client
RpcSkills skills.*RPCs.- Client
RpcSkills Config skills.config.*RPCs.- Client
RpcTools tools.*RPCs.- Client
RpcUser user.*RPCs.- Client
RpcUser Settings user.settings.*RPCs.- Command
List - Slash commands available in the session, after applying any include/exclude filters.
- Commands
Handle Pending Command Request - Pending command request ID and an optional error if the client handler failed.
- Commands
Handle Pending Command Result - Indicates whether the pending client-handled command was completed successfully.
- Commands
Invoke Request - Slash command name and optional raw input string to invoke.
- Commands
List Request - Optional filters controlling which command sources to include in the listing.
- Commands
Respond ToQueued Command Request - Queued-command request ID and the result indicating whether the host executed it (and whether to stop processing further queued commands).
- Commands
Respond ToQueued Command Result - Indicates whether the queued-command response was matched to a pending request.
- Connect
Remote Session Params - Remote session connection parameters.
- Connected
Remote Session Metadata - Metadata for a connected remote session.
- Connected
Remote Session Metadata Repository - Repository associated with the connected remote session.
- Copilot
ApiToken Auth Info - Schema for the
CopilotApiTokenAuthInfotype. - Copilot
User Response - Snapshot of the authenticated user’s Copilot subscription info, if known. Mirrors the GitHub API
/copilot_internal/v2/tokenuser response shape — the runtime trusts this verbatim and does not re-fetch when set. - Copilot
User Response Endpoints - Schema for the
CopilotUserResponseEndpointstype. - Copilot
User Response Quota Snapshots - Schema for the
CopilotUserResponseQuotaSnapshotstype. - Copilot
User Response Quota Snapshots Chat - Schema for the
CopilotUserResponseQuotaSnapshotsChattype. - Copilot
User Response Quota Snapshots Completions - Schema for the
CopilotUserResponseQuotaSnapshotsCompletionstype. - Copilot
User Response Quota Snapshots Premium Interactions - Schema for the
CopilotUserResponseQuotaSnapshotsPremiumInteractionstype. - Current
Model - The currently selected model, reasoning effort, and context tier for the session. The context tier reflects
Session.getContextTier(), restored from the session journal on resume. - Current
Tool Metadata - Lightweight metadata for a currently initialized session tool
- Discovered
Canvas - Canvas available in the current session.
- Discovered
McpServer - Schema for the
DiscoveredMcpServertype. - Enqueue
Command Params - Slash-prefixed command string to enqueue for FIFO processing.
- Enqueue
Command Result - Indicates whether the command was accepted into the local execution queue.
- EnvAuth
Info - Schema for the
EnvAuthInfotype. - Event
LogRead Request - Cursor, batch size, and optional long-poll/filter parameters for reading session events.
- Event
LogRelease Interest Result - Indicates whether the operation succeeded.
- Event
LogTail Result - Snapshot of the current tail cursor without returning any events. Use this when a consumer wants to subscribe to live events going forward without first paginating through the entire persisted history (which would happen if
readwere called without a cursor on a long-lived session). - Events
Read Result - Batch of session events returned by a read, with cursor and continuation metadata.
- Execute
Command Params - Slash command name and argument string to execute synchronously.
- Execute
Command Result - Error message produced while executing the command, if any.
- Extension
- Schema for the
Extensiontype. - Extension
Context Push Input - Slim input shape for extension_context attachments; identity fields are runtime-derived.
- Extension
List - Extensions discovered for the session, with their current status.
- Extensions
Disable Request - Source-qualified extension identifier to disable for the session.
- Extensions
Enable Request - Source-qualified extension identifier to enable for the session.
- External
Tool Text Result ForLlm - Expanded external tool result payload
- External
Tool Text Result ForLlm Binary Results ForLlm - Binary result returned by a tool for the model
- External
Tool Text Result ForLlm Content Audio - Audio content block with base64-encoded data
- External
Tool Text Result ForLlm Content Image - Image content block with base64-encoded data
- External
Tool Text Result ForLlm Content Resource - Embedded resource content block with inline text or binary data
- External
Tool Text Result ForLlm Content Resource Link - Resource link content block referencing an external resource
- External
Tool Text Result ForLlm Content Resource Link Icon - Icon image for a resource
- External
Tool Text Result ForLlm Content Terminal - Terminal/shell output content block with optional exit code and working directory
- External
Tool Text Result ForLlm Content Text - Plain text content block
- Fleet
Start Request - Optional user prompt to combine with the fleet orchestration instructions.
- Fleet
Start Result - Indicates whether fleet mode was successfully activated.
- Folder
Trust AddParams - Folder path to add to trusted folders.
- Folder
Trust Check Params - Folder path to check for trust.
- Folder
Trust Check Result - Folder trust check result.
- GhCli
Auth Info - Schema for the
GhCliAuthInfotype. - HMAC
Auth Info - Schema for the
HMACAuthInfotype. - Handle
Pending Tool Call Request - Pending external tool call request ID, with the tool result or an error describing why it failed.
- Handle
Pending Tool Call Result - Indicates whether the external tool call result was handled successfully.
- History
Abort Manual Compaction Result - Indicates whether an in-progress manual compaction was aborted.
- History
Cancel Background Compaction Result - Indicates whether an in-progress background compaction was cancelled.
- History
Compact Context Window - Post-compaction context window usage breakdown
- History
Compact Request - Optional compaction parameters.
- History
Compact Result - Compaction outcome with the number of tokens and messages removed, summary text, and the resulting context window breakdown.
- History
Summarize ForHandoff Result - Markdown summary of the conversation context (empty when not available).
- History
Truncate Request - Identifier of the event to truncate to; this event and all later events are removed.
- History
Truncate Result - Number of events that were removed by the truncation.
- Installed
Plugin - Schema for the
InstalledPlugintype. - Installed
Plugin Info - Information about an installed plugin tracked in global state.
- Installed
Plugin Source GitHub - Schema for the
InstalledPluginSourceGitHubtype. - Installed
Plugin Source Local - Schema for the
InstalledPluginSourceLocaltype. - Installed
Plugin Source Url - Schema for the
InstalledPluginSourceUrltype. - Instruction
Discovery Path - Schema for the
InstructionDiscoveryPathtype. - Instruction
Discovery Path List - Canonical files and directories where custom instructions can be created so the runtime will recognize them.
- Instruction
Source - Schema for the
InstructionSourcetype. - Instructions
Discover Request - Optional project paths to include in instruction discovery.
- Instructions
Discover Result - Instruction sources discovered across user, repository, and plugin sources.
- Instructions
GetDiscovery Paths Request - Optional project paths to include when enumerating instruction discovery targets.
- Instructions
GetDiscovery Paths Result - Canonical files and directories where custom instructions can be created so the runtime will recognize them.
- Instructions
GetSources Result - Instruction sources loaded for the session, in merge order.
- Local
Session Metadata Value - Schema for the
LocalSessionMetadataValuetype. - LogRequest
- Message text, optional severity level, persistence flag, optional follow-up URL, and optional tip.
- LogResult
- Identifier of the session event that was emitted for the log message.
- LspInitialize
Request - Parameters for (re)loading the merged LSP configuration set.
- Marketplace
AddResult - Result of registering a new marketplace.
- Marketplace
Browse Result - Plugins advertised by the marketplace.
- Marketplace
Info - Registered marketplace summary.
- Marketplace
List Result - All registered marketplaces, including built-in defaults.
- Marketplace
Plugin Info - Plugin entry advertised by a marketplace.
- Marketplace
Refresh Entry - Schema for the
MarketplaceRefreshEntrytype. - Marketplace
Refresh Result - Result of refreshing one or more marketplace catalogs.
- Marketplace
Remove Result - Outcome of the remove attempt, including dependent-plugin info when applicable.
- McpAllowed
Server - Schema for the
McpAllowedServertype. - McpApps
Call Tool Request - MCP server, tool name, and arguments to invoke from an MCP App view.
- McpApps
Diagnose Capability - Capability negotiation snapshot
- McpApps
Diagnose Request - MCP server to diagnose MCP Apps wiring for.
- McpApps
Diagnose Result - Diagnostic snapshot of MCP Apps wiring for the named server.
- McpApps
Diagnose Server - What the server returned for this session
- McpApps
Host Context - Current host context advertised to MCP App guests.
- McpApps
Host Context Details - Current host context
- McpApps
List Tools Request - MCP server to list app-callable tools for.
- McpApps
List Tools Result - App-callable tools from the named MCP server.
- McpApps
Read Resource Request - MCP server and resource URI to fetch.
- McpApps
Read Resource Result - Resource contents returned by the MCP server.
- McpApps
Resource Content - Schema for the
McpAppsResourceContenttype. - McpApps
SetHost Context Details - Host context advertised to MCP App guests
- McpApps
SetHost Context Request - Host context to advertise to MCP App guests.
- McpCancel
Sampling Execution Params - The requestId previously passed to executeSampling that should be cancelled.
- McpCancel
Sampling Execution Result - Indicates whether an in-flight sampling execution with the given requestId was found and cancelled.
- McpConfig
AddRequest - MCP server name and configuration to add to user configuration.
- McpConfig
Disable Request - MCP server names to disable for new sessions.
- McpConfig
Enable Request - MCP server names to enable for new sessions.
- McpConfig
List - User-configured MCP servers, keyed by server name.
- McpConfig
List Result - User-configured MCP servers, keyed by server name.
- McpConfig
Remove Request - MCP server name to remove from user configuration.
- McpConfig
Update Request - MCP server name and replacement configuration to write to user configuration.
- McpConfigure
GitHub Result - Result of configuring GitHub MCP.
- McpDisable
Request - Name of the MCP server to disable for the session.
- McpDiscover
Request - Optional working directory used as context for MCP server discovery.
- McpDiscover
Result - MCP servers discovered from user, workspace, plugin, and built-in sources.
- McpEnable
Request - Name of the MCP server to enable for the session.
- McpExecute
Sampling Params - Identifiers and raw MCP CreateMessageRequest params used to run a sampling inference.
- McpExecute
Sampling Request - Raw MCP CreateMessageRequest params, as received in the
sampling.requestedevent. Treated as opaque at the schema layer; the runtime converts the embedded MCP messages into the OpenAI chat-completion shape internally. - McpFiltered
Server - Schema for the
McpFilteredServertype. - McpHost
State - Host-level state, omitted when no MCP host is initialized.
- McpIs
Server Running Request - Server name to check running status for.
- McpIs
Server Running Result - Whether the named MCP server is running.
- McpList
Tools Request - Server name whose tool list should be returned.
- McpList
Tools Result - Tools exposed by the connected MCP server. Throws when the server is not connected.
- McpOauth
Login Request - Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, and the callback success-page copy.
- McpOauth
Login Result - OAuth authorization URL the caller should open, or empty when cached tokens already authenticated the server.
- McpOauth
Respond Result - Empty result after recording the MCP OAuth response.
- McpRemove
GitHub Result - Indicates whether the auto-managed
githubMCP server was removed (false when nothing to remove). - McpSampling
Execution Result - Outcome of an MCP sampling execution: success result, failure error, or cancellation.
- McpServer
- Schema for the
McpServertype. - McpServer
Auth Config Redirect Port - Authentication settings with optional redirect port configuration.
- McpServer
Config Http - Remote MCP server configuration accessed over HTTP or SSE.
- McpServer
Config Stdio - Stdio MCP server configuration launched as a child process.
- McpServer
Failure Info - Recorded MCP server connection failure.
- McpServer
List - MCP servers configured for the session, with their connection status and host-level state.
- McpServer
Needs Auth Info - Recorded MCP server pending-auth state.
- McpSet
EnvValue Mode Params - Mode controlling how MCP server env values are resolved (
directorindirect). - McpSet
EnvValue Mode Result - Env-value mode recorded on the session after the update.
- McpStart
Servers Result - MCP server startup filtering result.
- McpStop
Server Request - Server name for an individual MCP server stop.
- McpTools
- Schema for the
McpToolstype. - Memory
Configuration - Memory configuration for this session.
- Metadata
Context Info Request - Model identifier and token limits used to compute the context-info breakdown.
- Metadata
Context Info Result - Token breakdown for the session’s current context window, or null if uninitialized.
- Metadata
Context Info Result Context Info - Token-usage breakdown for the session’s current context window
- Metadata
IsProcessing Result - Indicates whether the local session is currently processing a turn or background continuation.
- Metadata
Recompute Context Tokens Request - Model identifier to use when re-tokenizing the session’s existing messages.
- Metadata
Recompute Context Tokens Result - Re-tokenize the session’s existing messages against
modelIdand return the token totals. Useful for hosts that want an initial estimate of context usage on session resume, before the next agent turn firessession.context_info_changedevents. Returns zeros for an empty session. - Metadata
Record Context Change Request - Updated working-directory/git context to record on the session.
- Metadata
Record Context Change Result - Notify the session that its working directory context has changed. Emits a
session.context_changedevent so consumers (telemetry, OTel tracker, ACP, the timeline UI) can react. Use this when the host has detected a cwd/branch/repo change outside the session’s normal lifecycle (e.g., after a shell command in interactive mode). - Metadata
SetWorking Directory Request - Absolute path to set as the session’s new working directory.
- Metadata
SetWorking Directory Result - Update the session’s working directory. Used by the host when the user explicitly changes cwd (e.g., the
/cdslash command). The host is responsible forprocess.chdirand any related side-effects (file index, etc.); this method only updates the session’s own recorded path. - Metadata
Snapshot Remote Metadata - Remote-session-specific metadata. Populated only when
isRemoteis true. Fields are immutable for the lifetime of the session. - Metadata
Snapshot Remote Metadata Repository - The repository the remote session targets.
- Mode
SetRequest - Agent interaction mode to apply to the session.
- Model
- Schema for the
Modeltype. - Model
Billing - Billing information
- Model
Billing Token Prices - Token-level pricing information for this model
- Model
Billing Token Prices Long Context - Long context tier pricing (available for models with extended context windows)
- Model
Capabilities - Model capabilities and limits
- Model
Capabilities Limits - Token limits for prompts, outputs, and context window
- Model
Capabilities Limits Vision - Vision-specific limits
- Model
Capabilities Override - Optional capability overrides (vision, tool_calls, reasoning, etc.).
- Model
Capabilities Override Limits - Token limits for prompts, outputs, and context window
- Model
Capabilities Override Limits Vision - Vision-specific limits
- Model
Capabilities Override Supports - Feature flags indicating what the model supports
- Model
Capabilities Supports - Feature flags indicating what the model supports
- Model
List - List of Copilot models available to the resolved user, including capabilities and billing metadata.
- Model
List Request - Optional listing options.
- Model
Policy - Policy state (if applicable)
- Model
SetReasoning Effort Request - Reasoning effort level to apply to the currently selected model.
- Model
SetReasoning Effort Result - Update the session’s reasoning effort without changing the selected model. Use
switchToinstead when you also need to change the model. The runtime stores the effort on the session and applies it to subsequent turns. - Model
Switch ToRequest - Target model identifier and optional reasoning effort, summary, capability overrides, and context tier.
- Model
Switch ToResult - The model identifier active on the session after the switch.
- Models
List Request - Optional GitHub token used to list models for a specific user instead of the global auth context.
- Models
List Result - List of Copilot models available to the resolved user, including capabilities and billing metadata.
- Name
GetResult - The session’s friendly name, or null when not yet set.
- Name
SetAuto Request - Auto-generated session summary to apply as the session’s name when no user-set name exists.
- Name
SetAuto Result - Indicates whether the auto-generated summary was applied as the session’s name.
- Name
SetRequest - New friendly name to apply to the session.
- Named
Provider Config - A named BYOK provider connection (transport + credentials).
- Open
Canvas Instance - Open canvas instance snapshot.
- Options
Update Additional Content Exclusion Policy - Schema for the
OptionsUpdateAdditionalContentExclusionPolicytype. - Options
Update Additional Content Exclusion Policy Rule - Schema for the
OptionsUpdateAdditionalContentExclusionPolicyRuletype. - Options
Update Additional Content Exclusion Policy Rule Source - Schema for the
OptionsUpdateAdditionalContentExclusionPolicyRuleSourcetype. - Pending
Permission Request - Schema for the
PendingPermissionRequesttype. - Pending
Permission Request List - List of pending permission requests reconstructed from event history.
- Permission
Decision Approve ForLocation - Schema for the
PermissionDecisionApproveForLocationtype. - Permission
Decision Approve ForLocation Approval Commands - Schema for the
PermissionDecisionApproveForLocationApprovalCommandstype. - Permission
Decision Approve ForLocation Approval Custom Tool - Schema for the
PermissionDecisionApproveForLocationApprovalCustomTooltype. - Permission
Decision Approve ForLocation Approval Extension Management - Schema for the
PermissionDecisionApproveForLocationApprovalExtensionManagementtype. - Permission
Decision Approve ForLocation Approval Extension Permission Access - Schema for the
PermissionDecisionApproveForLocationApprovalExtensionPermissionAccesstype. - Permission
Decision Approve ForLocation Approval Mcp - Schema for the
PermissionDecisionApproveForLocationApprovalMcptype. - Permission
Decision Approve ForLocation Approval McpSampling - Schema for the
PermissionDecisionApproveForLocationApprovalMcpSamplingtype. - Permission
Decision Approve ForLocation Approval Memory - Schema for the
PermissionDecisionApproveForLocationApprovalMemorytype. - Permission
Decision Approve ForLocation Approval Read - Schema for the
PermissionDecisionApproveForLocationApprovalReadtype. - Permission
Decision Approve ForLocation Approval Write - Schema for the
PermissionDecisionApproveForLocationApprovalWritetype. - Permission
Decision Approve ForSession - Schema for the
PermissionDecisionApproveForSessiontype. - Permission
Decision Approve ForSession Approval Commands - Schema for the
PermissionDecisionApproveForSessionApprovalCommandstype. - Permission
Decision Approve ForSession Approval Custom Tool - Schema for the
PermissionDecisionApproveForSessionApprovalCustomTooltype. - Permission
Decision Approve ForSession Approval Extension Management - Schema for the
PermissionDecisionApproveForSessionApprovalExtensionManagementtype. - Permission
Decision Approve ForSession Approval Extension Permission Access - Schema for the
PermissionDecisionApproveForSessionApprovalExtensionPermissionAccesstype. - Permission
Decision Approve ForSession Approval Mcp - Schema for the
PermissionDecisionApproveForSessionApprovalMcptype. - Permission
Decision Approve ForSession Approval McpSampling - Schema for the
PermissionDecisionApproveForSessionApprovalMcpSamplingtype. - Permission
Decision Approve ForSession Approval Memory - Schema for the
PermissionDecisionApproveForSessionApprovalMemorytype. - Permission
Decision Approve ForSession Approval Read - Schema for the
PermissionDecisionApproveForSessionApprovalReadtype. - Permission
Decision Approve ForSession Approval Write - Schema for the
PermissionDecisionApproveForSessionApprovalWritetype. - Permission
Decision Approve Once - Schema for the
PermissionDecisionApproveOncetype. - Permission
Decision Approve Permanently - Schema for the
PermissionDecisionApprovePermanentlytype. - Permission
Decision Approved - Schema for the
PermissionDecisionApprovedtype. - Permission
Decision Approved ForLocation - Schema for the
PermissionDecisionApprovedForLocationtype. - Permission
Decision Approved ForSession - Schema for the
PermissionDecisionApprovedForSessiontype. - Permission
Decision Cancelled - Schema for the
PermissionDecisionCancelledtype. - Permission
Decision Denied ByContent Exclusion Policy - Schema for the
PermissionDecisionDeniedByContentExclusionPolicytype. - Permission
Decision Denied ByPermission Request Hook - Schema for the
PermissionDecisionDeniedByPermissionRequestHooktype. - Permission
Decision Denied ByRules - Schema for the
PermissionDecisionDeniedByRulestype. - Permission
Decision Denied Interactively ByUser - Schema for the
PermissionDecisionDeniedInteractivelyByUsertype. - Permission
Decision Denied NoApproval Rule AndCould NotRequest From User - Schema for the
PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUsertype. - Permission
Decision Reject - Schema for the
PermissionDecisionRejecttype. - Permission
Decision Request - Pending permission request ID and the decision to apply (approve/reject and scope).
- Permission
Decision User NotAvailable - Schema for the
PermissionDecisionUserNotAvailabletype. - Permission
Location AddTool Approval Params - Location-scoped tool approval to persist.
- Permission
Location Apply Params - Working directory to load persisted location permissions for.
- Permission
Location Apply Result - Summary of persisted location permissions applied to the session.
- Permission
Location Resolve Params - Working directory to resolve into a location-permissions key.
- Permission
Location Resolve Result - Resolved location-permissions key and type.
- Permission
Paths AddParams - Directory path to add to the session’s allowed directories.
- Permission
Paths Allowed Check Params - Path to evaluate against the session’s allowed directories.
- Permission
Paths Allowed Check Result - Indicates whether the supplied path is within the session’s allowed directories.
- Permission
Paths Config - If specified, replaces the session’s path-permission policy. The runtime constructs the appropriate PathManager based on these inputs (rooted at the session’s working directory). Omit to leave the current path policy unchanged.
- Permission
Paths List - Snapshot of the session’s allow-listed directories and primary working directory.
- Permission
Paths Update Primary Params - Directory path to set as the session’s new primary working directory.
- Permission
Paths Workspace Check Params - Path to evaluate against the session’s workspace (primary) directory.
- Permission
Paths Workspace Check Result - Indicates whether the supplied path is within the session’s workspace directory.
- Permission
Prompt Shown Notification - Notification payload describing the permission prompt that the client just rendered.
- Permission
Request Result - Indicates whether the permission decision was applied; false when the request was already resolved.
- Permission
Rules Set - If specified, replaces the session’s approved/denied permission rules. Omit to leave the current rules unchanged.
- Permission
Urls Config - If specified, replaces the session’s URL-permission policy. The runtime constructs a fresh DefaultUrlManager based on these inputs. Omit to leave the current URL policy unchanged.
- Permission
Urls SetUnrestricted Mode Params - Whether the URL-permission policy should run in unrestricted mode.
- Permissions
Configure Additional Content Exclusion Policy - Schema for the
PermissionsConfigureAdditionalContentExclusionPolicytype. - Permissions
Configure Additional Content Exclusion Policy Rule - Schema for the
PermissionsConfigureAdditionalContentExclusionPolicyRuletype. - Permissions
Configure Additional Content Exclusion Policy Rule Source - Schema for the
PermissionsConfigureAdditionalContentExclusionPolicyRuleSourcetype. - Permissions
Configure Params - Patch of permission policy fields to apply (omit a field to leave it unchanged).
- Permissions
Configure Result - Indicates whether the operation succeeded.
- Permissions
Folder Trust AddTrusted Result - Indicates whether the operation succeeded.
- Permissions
GetAllow AllRequest - No parameters.
- Permissions
Locations AddTool Approval Details Commands - Schema for the
PermissionsLocationsAddToolApprovalDetailsCommandstype. - Permissions
Locations AddTool Approval Details Custom Tool - Schema for the
PermissionsLocationsAddToolApprovalDetailsCustomTooltype. - Permissions
Locations AddTool Approval Details Extension Management - Schema for the
PermissionsLocationsAddToolApprovalDetailsExtensionManagementtype. - Permissions
Locations AddTool Approval Details Extension Permission Access - Schema for the
PermissionsLocationsAddToolApprovalDetailsExtensionPermissionAccesstype. - Permissions
Locations AddTool Approval Details Mcp - Schema for the
PermissionsLocationsAddToolApprovalDetailsMcptype. - Permissions
Locations AddTool Approval Details McpSampling - Schema for the
PermissionsLocationsAddToolApprovalDetailsMcpSamplingtype. - Permissions
Locations AddTool Approval Details Memory - Schema for the
PermissionsLocationsAddToolApprovalDetailsMemorytype. - Permissions
Locations AddTool Approval Details Read - Schema for the
PermissionsLocationsAddToolApprovalDetailsReadtype. - Permissions
Locations AddTool Approval Details Write - Schema for the
PermissionsLocationsAddToolApprovalDetailsWritetype. - Permissions
Locations AddTool Approval Result - Indicates whether the operation succeeded.
- Permissions
Modify Rules Params - Scope and add/remove instructions for modifying session- or location-scoped permission rules.
- Permissions
Modify Rules Result - Indicates whether the operation succeeded.
- Permissions
Notify Prompt Shown Result - Indicates whether the operation succeeded.
- Permissions
Paths AddResult - Indicates whether the operation succeeded.
- Permissions
Paths List Request - No parameters; returns the session’s allow-listed directories.
- Permissions
Paths Update Primary Result - Indicates whether the operation succeeded.
- Permissions
Pending Requests Request - No parameters; returns currently-pending permission requests for the session.
- Permissions
Reset Session Approvals Request - No parameters; clears all session-scoped tool permission approvals.
- Permissions
Reset Session Approvals Result - Indicates whether the operation succeeded.
- Permissions
SetAllow AllRequest - Whether to enable full allow-all permissions for the session.
- Permissions
SetApprove AllRequest - Allow-all toggle for tool permission requests, with an optional telemetry source.
- Permissions
SetApprove AllResult - Indicates whether the operation succeeded.
- Permissions
SetRequired Request - Toggles whether permission prompts should be bridged into session events for this client.
- Permissions
SetRequired Result - Indicates whether the operation succeeded.
- Permissions
Urls SetUnrestricted Mode Result - Indicates whether the operation succeeded.
- Ping
Request - Optional message to echo back to the caller.
- Ping
Result - Server liveness response, including the echoed message, current server timestamp, and protocol version.
- Plan
Read Result - Existence, contents, and resolved path of the session plan file.
- Plan
Read SqlTodos Result - Todo rows read from the session SQL database. Empty when no session database is available.
- Plan
Read SqlTodos With Dependencies Result - Todo rows + dependency edges read from the session SQL database.
- Plan
SqlTodo Dependency - A single dependency edge read from the session SQL
todo_depstable, indicating that one todo must complete before another. - Plan
SqlTodos Row - A single todo row read from the session SQL
todostable. All fields are optional because the SQL schema is best-effort and the agent may not have populated every column. - Plan
Update Request - Replacement contents to write to the session plan file.
- Plugin
- Schema for the
Plugintype. - Plugin
Install Result - Result of installing a plugin.
- Plugin
List - Plugins installed for the session, with their enabled state and version metadata.
- Plugin
List Result - Plugins installed in user/global state.
- Plugin
Update AllEntry - Schema for the
PluginUpdateAllEntrytype. - Plugin
Update AllResult - Result of updating all installed plugins.
- Plugin
Update Result - Result of updating a single plugin.
- Plugins
Disable Request - Plugin names (or specs) to disable.
- Plugins
Enable Request - Plugin names (or specs) to enable.
- Plugins
Install Request - Plugin source and optional working directory for relative-path resolution.
- Plugins
Install Result - Result of installing a plugin.
- Plugins
List Result - Plugins installed in user/global state.
- Plugins
Marketplaces AddRequest - Marketplace source to register.
- Plugins
Marketplaces AddResult - Result of registering a new marketplace.
- Plugins
Marketplaces Browse Request - Name of the marketplace whose plugin catalog to fetch.
- Plugins
Marketplaces Browse Result - Plugins advertised by the marketplace.
- Plugins
Marketplaces List Result - All registered marketplaces, including built-in defaults.
- Plugins
Marketplaces Refresh Request - Optional marketplace name; omit to refresh all.
- Plugins
Marketplaces Refresh Result - Result of refreshing one or more marketplace catalogs.
- Plugins
Marketplaces Remove Request - Name of the marketplace to remove and an optional force flag.
- Plugins
Marketplaces Remove Result - Outcome of the remove attempt, including dependent-plugin info when applicable.
- Plugins
Reload Request - Optional flags controlling which side effects the reload performs.
- Plugins
Uninstall Request - Name (or spec) of the plugin to uninstall.
- Plugins
Update AllResult - Result of updating all installed plugins.
- Plugins
Update Request - Name (or spec) of the plugin to update.
- Plugins
Update Result - Result of updating a single plugin.
- Poll
Spawned Sessions Result - Batch of spawn events plus a cursor for follow-up polls.
- Provider
Config - Custom model-provider configuration (BYOK).
- Provider
Config Azure - Azure-specific provider options.
- Provider
Endpoint - A snapshot of the provider endpoint the session is currently configured to talk to.
- Provider
GetEndpoint Request - Optional model identifier to scope the endpoint snapshot to.
- Provider
Model Config - A BYOK model definition referencing a named provider.
- Provider
Session Token - Short-lived, rotating credential the caller must send on every request, in addition to
apiKeyif one is present. Omitted when the endpoint does not require one. - Push
Attachment Blob - Blob attachment with inline base64-encoded data
- Push
Attachment Directory - Directory attachment
- Push
Attachment File - File attachment
- Push
Attachment File Line Range - Optional line range to scope the attachment to a specific section of the file
- Push
Attachment GitHub Reference - GitHub issue, pull request, or discussion reference
- Push
Attachment Selection - Code selection attachment from an editor
- Push
Attachment Selection Details - Position range of the selection within the file
- Push
Attachment Selection Details End - End position of the selection
- Push
Attachment Selection Details Start - Start position of the selection
- Queue
Pending Items - Schema for the
QueuePendingItemstype. - Queue
Pending Items Result - Snapshot of the session’s pending queued items and immediate-steering messages.
- Queue
Remove Most Recent Result - Indicates whether a user-facing pending item was removed.
- Queued
Command Handled - Schema for the
QueuedCommandHandledtype. - Queued
Command NotHandled - Schema for the
QueuedCommandNotHandledtype. - Register
Event Interest Params - Event type to register consumer interest for, used by runtime gating logic.
- Register
Event Interest Result - Opaque handle representing an event-type interest registration.
- Release
Event Interest Params - Opaque handle previously returned by
registerInterestto release. - Remote
Control Config - Configuration for the runtime-managed remote-control singleton.
- Remote
Control Config Existing McSession - Reattach to an existing MC session without creating a new one.
- Remote
Control Status Active - Remote control is connected to a local session.
- Remote
Control Status Connecting - Remote control is in the middle of initial setup.
- Remote
Control Status Error - The last setup attempt failed. The singleton is otherwise off.
- Remote
Control Status Off - Remote control is not connected.
- Remote
Control Status Result - Wrapper for the singleton’s current status.
- Remote
Control Stop Result - Outcome of a stopRemoteControl call.
- Remote
Control Transfer Result - Outcome of a transferRemoteControl call.
- Remote
Enable Request - Optional remote session mode (“off”, “export”, or “on”); defaults to enabling both export and remote steering.
- Remote
Enable Result - GitHub URL for the session and a flag indicating whether remote steering is enabled.
- Remote
Notify Steerable Changed Request - New remote-steerability state to persist as a
session.remote_steerable_changedevent. - Remote
Notify Steerable Changed Result - Persist a steerability change as a
session.remote_steerable_changedevent. Used by the host (CLI / SDK consumer) when it has just finished enabling or disabling steering on a remote exporter that the runtime does not directly own. - Remote
Session Connection Result - Remote session connection result.
- Remote
Session Metadata Repository - GitHub repository the remote session belongs to.
- Remote
Session Metadata Value - Remote session metadata for the session to hand off (typically obtained from
sessions.listwithsource: "remote"). - Remote
Session Repository - Repository context for the remote session.
- Sandbox
Config - Resolved sandbox configuration.
- Sandbox
Config User Policy - User-managed sandbox policy fragment merged into the auto-discovered base policy.
- Sandbox
Config User Policy Experimental - Platform-specific experimental policy fields.
- Sandbox
Config User Policy Experimental Seatbelt - macOS seatbelt experimental options.
- Sandbox
Config User Policy Filesystem - Filesystem rules to merge into the base policy.
- Sandbox
Config User Policy Network - Network rules to merge into the base policy.
- Schedule
Entry - Schema for the
ScheduleEntrytype. - Schedule
List - Snapshot of the currently active recurring prompts for this session.
- Schedule
Stop Request - Identifier of the scheduled prompt to remove.
- Schedule
Stop Result - Remove a scheduled prompt by id. The result entry is omitted if the id was unknown.
- Secrets
AddFilter Values Request - Secret values to add to the redaction filter.
- Secrets
AddFilter Values Result - Confirmation that the secret values were registered.
- Send
Attachments ToMessage Params - Parameters for session.extensions.sendAttachmentsToMessage.
- Send
Request - Parameters for sending a user message to the session
- Send
Result - Result of sending a user message
- Server
Agent List - Agents discovered across user, project, plugin, and remote sources.
- Server
Instruction Source List - Instruction sources discovered across user, repository, and plugin sources.
- Server
Skill - Schema for the
ServerSkilltype. - Server
Skill List - Skills discovered across global and project sources.
- Session
Abort Result - Result of aborting the current turn
- Session
Activity - Current activity flags for the session.
- Session
Agent Deselect Params - Identifies the target session.
- Session
Agent GetCurrent Params - Identifies the target session.
- Session
Agent GetCurrent Result - The currently selected custom agent, or null when using the default agent.
- Session
Agent List Params - Identifies the target session.
- Session
Agent List Result - Custom agents available to the session.
- Session
Agent Reload Params - Identifies the target session.
- Session
Agent Reload Result - Custom agents available to the session after reloading definitions from disk.
- Session
Agent Select Result - The newly selected custom agent.
- Session
Auth GetStatus Params - Identifies the target session.
- Session
Auth GetStatus Result - Authentication status and account metadata for the session.
- Session
Auth SetCredentials Result - Indicates whether the credential update succeeded.
- Session
Auth Status - Authentication status and account metadata for the session.
- Session
Bulk Delete Result - Map of sessionId -> bytes freed by removing the session’s workspace directory.
- Session
Canvas Action Invoke Result - Canvas action invocation result.
- Session
Canvas List Open Params - Identifies the target session.
- Session
Canvas List Open Result - Live open-canvas snapshot.
- Session
Canvas List Params - Identifies the target session.
- Session
Canvas List Result - Declared canvases available in this session.
- Session
Canvas Open Result - Open canvas instance snapshot.
- Session
Commands Enqueue Result - Indicates whether the command was accepted into the local execution queue.
- Session
Commands Execute Result - Error message produced while executing the command, if any.
- Session
Commands Handle Pending Command Result - Indicates whether the pending client-handled command was completed successfully.
- Session
Commands List Result - Slash commands available in the session, after applying any include/exclude filters.
- Session
Commands Respond ToQueued Command Result - Indicates whether the queued-command response was matched to a pending request.
- Session
Context - Pre-resolved working-directory context for session startup.
- Session
Context Info - Token breakdown for the current context window, or null if the session has not yet been initialized (no system prompt or tool metadata cached).
- Session
Enrich Metadata Result - The enriched metadata records, with summary and context fields backfilled where available. Sessions confirmed empty and unnamed are omitted.
- Session
Event LogRead Result - Batch of session events returned by a read, with cursor and continuation metadata.
- Session
Event LogRegister Interest Result - Opaque handle representing an event-type interest registration.
- Session
Event LogRelease Interest Result - Indicates whether the operation succeeded.
- Session
Event LogTail Params - Identifies the target session.
- Session
Event LogTail Result - Snapshot of the current tail cursor without returning any events. Use this when a consumer wants to subscribe to live events going forward without first paginating through the entire persisted history (which would happen if
readwere called without a cursor on a long-lived session). - Session
Extensions List Params - Identifies the target session.
- Session
Extensions List Result - Extensions discovered for the session, with their current status.
- Session
Extensions Reload Params - Identifies the target session.
- Session
Fleet Start Result - Indicates whether fleet mode was successfully activated.
- Session
FsAppend File Request - File path, content to append, and optional mode for the client-provided session filesystem.
- Session
FsError - Describes a filesystem error.
- Session
FsExists Request - Path to test for existence in the client-provided session filesystem.
- Session
FsExists Result - Indicates whether the requested path exists in the client-provided session filesystem.
- Session
FsMkdir Request - Directory path to create in the client-provided session filesystem, with options for recursive creation and POSIX mode.
- Session
FsRead File Request - Path of the file to read from the client-provided session filesystem.
- Session
FsRead File Result - File content as a UTF-8 string, or a filesystem error if the read failed.
- Session
FsReaddir Request - Directory path whose entries should be listed from the client-provided session filesystem.
- Session
FsReaddir Result - Names of entries in the requested directory, or a filesystem error if the read failed.
- Session
FsReaddir With Types Entry - Schema for the
SessionFsReaddirWithTypesEntrytype. - Session
FsReaddir With Types Request - Directory path whose entries (with type information) should be listed from the client-provided session filesystem.
- Session
FsReaddir With Types Result - Entries in the requested directory paired with file/directory type information, or a filesystem error if the read failed.
- Session
FsRename Request - Source and destination paths for renaming or moving an entry in the client-provided session filesystem.
- Session
FsRm Request - Path to remove from the client-provided session filesystem, with options for recursive removal and force.
- Session
FsSet Provider Capabilities - Optional capabilities declared by the provider
- Session
FsSet Provider Request - Initial working directory, session-state path layout, and path conventions used to register the calling SDK client as the session filesystem provider.
- Session
FsSet Provider Result - Indicates whether the calling client was registered as the session filesystem provider.
- Session
FsSqlite Exists Params - Identifies the target session.
- Session
FsSqlite Exists Result - Indicates whether the per-session SQLite database already exists.
- Session
FsSqlite Query Request - SQL query, query type, and optional bind parameters for executing a SQLite query against the per-session database.
- Session
FsSqlite Query Result - Query results including rows, columns, and rows affected, or a filesystem error if execution failed.
- Session
FsStat Request - Path whose metadata should be returned from the client-provided session filesystem.
- Session
FsStat Result - Filesystem metadata for the requested path, or a filesystem error if the stat failed.
- Session
FsWrite File Request - File path, content to write, and optional mode for the client-provided session filesystem.
- Session
History Abort Manual Compaction Params - Identifies the target session.
- Session
History Abort Manual Compaction Result - Indicates whether an in-progress manual compaction was aborted.
- Session
History Cancel Background Compaction Params - Identifies the target session.
- Session
History Cancel Background Compaction Result - Indicates whether an in-progress background compaction was cancelled.
- Session
History Compact Result - Compaction outcome with the number of tokens and messages removed, summary text, and the resulting context window breakdown.
- Session
History Summarize ForHandoff Params - Identifies the target session.
- Session
History Summarize ForHandoff Result - Markdown summary of the conversation context (empty when not available).
- Session
History Truncate Result - Number of events that were removed by the truncation.
- Session
Installed Plugin - Schema for the
SessionInstalledPlugintype. - Session
Installed Plugin Source GitHub - Schema for the
SessionInstalledPluginSourceGitHubtype. - Session
Installed Plugin Source Local - Schema for the
SessionInstalledPluginSourceLocaltype. - Session
Installed Plugin Source Url - Schema for the
SessionInstalledPluginSourceUrltype. - Session
Instructions GetSources Params - Identifies the target session.
- Session
Instructions GetSources Result - Instruction sources loaded for the session, in merge order.
- Session
List - Sessions matching the filter, ordered most-recently-modified first.
- Session
List Filter - Optional filter applied to the returned sessions
- Session
Load Deferred Repo Hooks Result - Queued repo-level startup prompts and the total hook command count after loading.
- Session
LogResult - Identifier of the session event that was emitted for the log message.
- Session
McpApps Diagnose Result - Diagnostic snapshot of MCP Apps wiring for the named server.
- Session
McpApps GetHost Context Params - Identifies the target session.
- Session
McpApps GetHost Context Result - Current host context advertised to MCP App guests.
- Session
McpApps List Tools Result - App-callable tools from the named MCP server.
- Session
McpApps Read Resource Result - Resource contents returned by the MCP server.
- Session
McpCancel Sampling Execution Result - Indicates whether an in-flight sampling execution with the given requestId was found and cancelled.
- Session
McpConfigure GitHub Result - Result of configuring GitHub MCP.
- Session
McpExecute Sampling Result - Outcome of an MCP sampling execution: success result, failure error, or cancellation.
- Session
McpIs Server Running Result - Whether the named MCP server is running.
- Session
McpList Params - Identifies the target session.
- Session
McpList Result - MCP servers configured for the session, with their connection status and host-level state.
- Session
McpList Tools Result - Tools exposed by the connected MCP server. Throws when the server is not connected.
- Session
McpOauth Login Result - OAuth authorization URL the caller should open, or empty when cached tokens already authenticated the server.
- Session
McpOauth Respond Result - Empty result after recording the MCP OAuth response.
- Session
McpReload Params - Identifies the target session.
- Session
McpReload With Config Result - MCP server startup filtering result.
- Session
McpRemove GitHub Params - Identifies the target session.
- Session
McpRemove GitHub Result - Indicates whether the auto-managed
githubMCP server was removed (false when nothing to remove). - Session
McpSet EnvValue Mode Result - Env-value mode recorded on the session after the update.
- Session
Metadata Activity Params - Identifies the target session.
- Session
Metadata Activity Result - Current activity flags for the session.
- Session
Metadata Context Info Result - Token breakdown for the session’s current context window, or null if uninitialized.
- Session
Metadata Context Info Result Context Info - Token-usage breakdown for the session’s current context window
- Session
Metadata IsProcessing Params - Identifies the target session.
- Session
Metadata IsProcessing Result - Indicates whether the local session is currently processing a turn or background continuation.
- Session
Metadata Recompute Context Tokens Result - Re-tokenize the session’s existing messages against
modelIdand return the token totals. Useful for hosts that want an initial estimate of context usage on session resume, before the next agent turn firessession.context_info_changedevents. Returns zeros for an empty session. - Session
Metadata Record Context Change Result - Notify the session that its working directory context has changed. Emits a
session.context_changedevent so consumers (telemetry, OTel tracker, ACP, the timeline UI) can react. Use this when the host has detected a cwd/branch/repo change outside the session’s normal lifecycle (e.g., after a shell command in interactive mode). - Session
Metadata SetWorking Directory Result - Update the session’s working directory. Used by the host when the user explicitly changes cwd (e.g., the
/cdslash command). The host is responsible forprocess.chdirand any related side-effects (file index, etc.); this method only updates the session’s own recorded path. - Session
Metadata Snapshot - Point-in-time snapshot of slow-changing session identifier and state fields
- Session
Metadata Snapshot Params - Identifies the target session.
- Session
Metadata Snapshot Result - Point-in-time snapshot of slow-changing session identifier and state fields
- Session
Metadata Snapshot Result Workspace - Public-facing projection of workspace metadata for SDK / TUI consumers
- Session
Metadata Snapshot Workspace - Public-facing projection of workspace metadata for SDK / TUI consumers
- Session
Mode GetParams - Identifies the target session.
- Session
Model GetCurrent Params - Identifies the target session.
- Session
Model GetCurrent Result - The currently selected model, reasoning effort, and context tier for the session. The context tier reflects
Session.getContextTier(), restored from the session journal on resume. - Session
Model List - The list of models available to this session.
- Session
Model List Result - The list of models available to this session.
- Session
Model SetReasoning Effort Result - Update the session’s reasoning effort without changing the selected model. Use
switchToinstead when you also need to change the model. The runtime stores the effort on the session and applies it to subsequent turns. - Session
Model Switch ToResult - The model identifier active on the session after the switch.
- Session
Name GetParams - Identifies the target session.
- Session
Name GetResult - The session’s friendly name, or null when not yet set.
- Session
Name SetAuto Result - Indicates whether the auto-generated summary was applied as the session’s name.
- Session
Open Options - Session construction options.
- Session
Open Options Additional Content Exclusion Policy - Schema for the
SessionOpenOptionsAdditionalContentExclusionPolicytype. - Session
Open Options Additional Content Exclusion Policy Rule - Schema for the
SessionOpenOptionsAdditionalContentExclusionPolicyRuletype. - Session
Open Options Additional Content Exclusion Policy Rule Source - Schema for the
SessionOpenOptionsAdditionalContentExclusionPolicyRuleSourcetype. - Session
Open Result - Result of opening a session.
- Session
Options Update Result - Indicates whether the session options patch was applied successfully.
- Session
Permissions Configure Result - Indicates whether the operation succeeded.
- Session
Permissions Folder Trust AddTrusted Result - Indicates whether the operation succeeded.
- Session
Permissions Folder Trust IsTrusted Result - Folder trust check result.
- Session
Permissions GetAllow AllResult - Current full allow-all permission state.
- Session
Permissions Handle Pending Permission Request Result - Indicates whether the permission decision was applied; false when the request was already resolved.
- Session
Permissions Locations AddTool Approval Result - Indicates whether the operation succeeded.
- Session
Permissions Locations Apply Result - Summary of persisted location permissions applied to the session.
- Session
Permissions Locations Resolve Result - Resolved location-permissions key and type.
- Session
Permissions Modify Rules Result - Indicates whether the operation succeeded.
- Session
Permissions Notify Prompt Shown Result - Indicates whether the operation succeeded.
- Session
Permissions Paths AddResult - Indicates whether the operation succeeded.
- Session
Permissions Paths IsPath Within Allowed Directories Result - Indicates whether the supplied path is within the session’s allowed directories.
- Session
Permissions Paths IsPath Within Workspace Result - Indicates whether the supplied path is within the session’s workspace directory.
- Session
Permissions Paths List Result - Snapshot of the session’s allow-listed directories and primary working directory.
- Session
Permissions Paths Update Primary Result - Indicates whether the operation succeeded.
- Session
Permissions Pending Requests Result - List of pending permission requests reconstructed from event history.
- Session
Permissions Reset Session Approvals Result - Indicates whether the operation succeeded.
- Session
Permissions SetAllow AllResult - Indicates whether the operation succeeded and reports the post-mutation state.
- Session
Permissions SetApprove AllResult - Indicates whether the operation succeeded.
- Session
Permissions SetRequired Result - Indicates whether the operation succeeded.
- Session
Permissions Urls SetUnrestricted Mode Result - Indicates whether the operation succeeded.
- Session
Plan Delete Params - Identifies the target session.
- Session
Plan Read Params - Identifies the target session.
- Session
Plan Read Result - Existence, contents, and resolved path of the session plan file.
- Session
Plan Read SqlTodos Params - Identifies the target session.
- Session
Plan Read SqlTodos Result - Todo rows read from the session SQL database. Empty when no session database is available.
- Session
Plan Read SqlTodos With Dependencies Params - Identifies the target session.
- Session
Plan Read SqlTodos With Dependencies Result - Todo rows + dependency edges read from the session SQL database.
- Session
Plugins List Params - Identifies the target session.
- Session
Plugins List Result - Plugins installed for the session, with their enabled state and version metadata.
- Session
Provider GetEndpoint Result - A snapshot of the provider endpoint the session is currently configured to talk to.
- Session
Prune Result - Outcome of the prune operation: deleted IDs, dry-run candidates, skipped IDs, total bytes freed, and the dry-run flag.
- Session
Queue Clear Params - Identifies the target session.
- Session
Queue Pending Items Params - Identifies the target session.
- Session
Queue Pending Items Result - Snapshot of the session’s pending queued items and immediate-steering messages.
- Session
Queue Remove Most Recent Params - Identifies the target session.
- Session
Queue Remove Most Recent Result - Indicates whether a user-facing pending item was removed.
- Session
Remote Disable Params - Identifies the target session.
- Session
Remote Enable Result - GitHub URL for the session and a flag indicating whether remote steering is enabled.
- Session
Remote Notify Steerable Changed Result - Persist a steerability change as a
session.remote_steerable_changedevent. Used by the host (CLI / SDK consumer) when it has just finished enabling or disabling steering on a remote exporter that the runtime does not directly own. - Session
Rpc - Typed view over a
Session’s RPC namespace. - Session
RpcAgent session.agent.*RPCs.- Session
RpcAuth session.auth.*RPCs.- Session
RpcCanvas session.canvas.*RPCs.- Session
RpcCanvas Action session.canvas.action.*RPCs.- Session
RpcCommands session.commands.*RPCs.- Session
RpcEvent Log session.eventLog.*RPCs.- Session
RpcExtensions session.extensions.*RPCs.- Session
RpcFleet session.fleet.*RPCs.- Session
RpcHistory session.history.*RPCs.- Session
RpcInstructions session.instructions.*RPCs.- Session
RpcLsp session.lsp.*RPCs.- Session
RpcMcp session.mcp.*RPCs.- Session
RpcMcp Apps session.mcp.apps.*RPCs.- Session
RpcMcp Oauth session.mcp.oauth.*RPCs.- Session
RpcMetadata session.metadata.*RPCs.- Session
RpcMode session.mode.*RPCs.- Session
RpcModel session.model.*RPCs.- Session
RpcName session.name.*RPCs.- Session
RpcOptions session.options.*RPCs.- Session
RpcPermissions session.permissions.*RPCs.- Session
RpcPermissions Folder Trust session.permissions.folderTrust.*RPCs.- Session
RpcPermissions Locations session.permissions.locations.*RPCs.- Session
RpcPermissions Paths session.permissions.paths.*RPCs.- Session
RpcPermissions Urls session.permissions.urls.*RPCs.- Session
RpcPlan session.plan.*RPCs.- Session
RpcPlugins session.plugins.*RPCs.- Session
RpcProvider session.provider.*RPCs.- Session
RpcQueue session.queue.*RPCs.- Session
RpcRemote session.remote.*RPCs.- Session
RpcSchedule session.schedule.*RPCs.- Session
RpcShell session.shell.*RPCs.- Session
RpcSkills session.skills.*RPCs.- Session
RpcTasks session.tasks.*RPCs.- Session
RpcTelemetry session.telemetry.*RPCs.- Session
RpcTools session.tools.*RPCs.- Session
RpcUi session.ui.*RPCs.- Session
RpcUsage session.usage.*RPCs.- Session
RpcWorkspaces session.workspaces.*RPCs.- Session
Schedule List Params - Identifies the target session.
- Session
Schedule List Result - Snapshot of the currently active recurring prompts for this session.
- Session
Schedule Stop Result - Remove a scheduled prompt by id. The result entry is omitted if the id was unknown.
- Session
Send Result - Result of sending a user message
- Session
SetCredentials Params - New auth credentials to install on the session. Omit to leave credentials unchanged.
- Session
SetCredentials Result - Indicates whether the credential update succeeded.
- Session
Shell Cancel User Requested Result - Cancellation result for a user-requested shell command.
- Session
Shell Exec Result - Identifier of the spawned process, used to correlate streamed output and exit notifications.
- Session
Shell Execute User Requested Result - Result of a user-requested shell command.
- Session
Shell Kill Result - Indicates whether the signal was delivered; false if the process was unknown or already exited.
- Session
Sizes - Map of sessionId -> on-disk size in bytes for each session’s workspace directory.
- Session
Skills Ensure Loaded Params - Identifies the target session.
- Session
Skills GetInvoked Params - Identifies the target session.
- Session
Skills GetInvoked Result - Skills invoked during this session, ordered by invocation time (most recent last).
- Session
Skills List Params - Identifies the target session.
- Session
Skills List Result - Skills available to the session, with their enabled state.
- Session
Skills Reload Params - Identifies the target session.
- Session
Skills Reload Result - Diagnostics from reloading skill definitions, with warnings and errors as separate lists.
- Session
Suspend Params - Identifies the target session.
- Session
Tasks Cancel Result - Indicates whether the background task was successfully cancelled.
- Session
Tasks GetCurrent Promotable Params - Identifies the target session.
- Session
Tasks GetCurrent Promotable Result - The first sync-waiting task that can currently be promoted to background mode.
- Session
Tasks GetProgress Result - Progress information for the task, or null when no task with that ID is tracked.
- Session
Tasks List Params - Identifies the target session.
- Session
Tasks List Result - Background tasks currently tracked by the session.
- Session
Tasks Promote Current ToBackground Params - Identifies the target session.
- Session
Tasks Promote Current ToBackground Result - The promoted task as it now exists in background mode, omitted if no promotable task was waiting.
- Session
Tasks Promote ToBackground Result - Indicates whether the task was successfully promoted to background mode.
- Session
Tasks Refresh Params - Identifies the target session.
- Session
Tasks Refresh Result - Refresh metadata for any detached background shells the runtime knows about. Use after a long pause to pick up exit/output state for shells running outside the agent loop.
- Session
Tasks Remove Result - Indicates whether the task was removed. False when the task does not exist or is still running/idle.
- Session
Tasks Send Message Result - Indicates whether the message was delivered, with an error message when delivery failed.
- Session
Tasks Start Agent Result - Identifier assigned to the newly started background agent task.
- Session
Tasks Wait ForPending Params - Identifies the target session.
- Session
Tasks Wait ForPending Result - Wait until all in-flight background tasks (agents + shells) and any follow-up turns scheduled by their completions have settled. Returns when the runtime is fully drained or after an internal timeout (default 10 minutes; configurable via COPILOT_TASK_WAIT_TIMEOUT_SECONDS).
- Session
Telemetry Engagement - Telemetry engagement ID for the session, when available.
- Session
Telemetry GetEngagement IdParams - Identifies the target session.
- Session
Telemetry GetEngagement IdResult - Telemetry engagement ID for the session, when available.
- Session
Tools GetCurrent Metadata Params - Identifies the target session.
- Session
Tools GetCurrent Metadata Result - Current lightweight tool metadata snapshot for the session.
- Session
Tools Handle Pending Tool Call Result - Indicates whether the external tool call result was handled successfully.
- Session
Tools Initialize AndValidate Params - Identifies the target session.
- Session
Tools Initialize AndValidate Result - Resolve, build, and validate the runtime tool list for this session. Subagent sessions and consumer flows that need an initialized tool set before
sendinvoke this. Default base-class implementation is a no-op for sessions that don’t support tool validation. - Session
Tools Update Subagent Settings Result - Empty result after applying subagent settings
- Session
UiElicitation Result - The elicitation response (accept with form values, decline, or cancel)
- Session
UiEphemeral Query Result - Transient answer generated from current conversation context.
- Session
UiHandle Pending Auto Mode Switch Result - Indicates whether the pending UI request was resolved by this call.
- Session
UiHandle Pending Elicitation Result - Indicates whether the elicitation response was accepted; false if it was already resolved by another client.
- Session
UiHandle Pending Exit Plan Mode Result - Indicates whether the pending UI request was resolved by this call.
- Session
UiHandle Pending Sampling Result - Indicates whether the pending UI request was resolved by this call.
- Session
UiHandle Pending User Input Result - Indicates whether the pending UI request was resolved by this call.
- Session
UiRegister Direct Auto Mode Switch Handler Params - Identifies the target session.
- Session
UiRegister Direct Auto Mode Switch Handler Result - Register an in-process handler for
auto_mode_switch.requestedevents. The caller still attaches the actual listener via the standard event-subscription mechanism; this registration solely tells the server bridge to skip its own dispatch (so a remote client doesn’t race the in-process handler for the same requestId). - Session
UiUnregister Direct Auto Mode Switch Handler Result - Indicates whether the handle was active and the registration count was decremented.
- Session
Update Options Params - Patch of mutable session options to apply to the running session.
- Session
Update Options Result - Indicates whether the session options patch was applied successfully.
- Session
Usage GetMetrics Params - Identifies the target session.
- Session
Usage GetMetrics Result - Accumulated session usage metrics, including premium request cost, token counts, model breakdown, and code-change totals.
- Session
Working Directory Context - Updated working directory and git context. Emitted as the new payload of
session.context_changed. - Session
Workspaces Diff Result - Workspace diff result for the requested mode.
- Session
Workspaces GetWorkspace Params - Identifies the target session.
- Session
Workspaces GetWorkspace Result - Current workspace metadata for the session, including its absolute filesystem path when available.
- Session
Workspaces GetWorkspace Result Workspace - Session
Workspaces List Checkpoints Params - Identifies the target session.
- Session
Workspaces List Checkpoints Result - Workspace checkpoints in chronological order; empty when the workspace is not enabled.
- Session
Workspaces List Files Params - Identifies the target session.
- Session
Workspaces List Files Result - Relative paths of files stored in the session workspace files directory.
- Session
Workspaces Read Checkpoint Result - Checkpoint content as a UTF-8 string, or null when the checkpoint or workspace is missing.
- Session
Workspaces Read File Result - Contents of the requested workspace file as a UTF-8 string.
- Session
Workspaces Save Large Paste Result - Descriptor for the saved paste file, or null when the workspace is unavailable.
- Session
Workspaces Save Large Paste Result Saved - Sessions
Bulk Delete Request - Session IDs to close, deactivate, and delete from disk.
- Sessions
Bulk Delete Result - Map of sessionId -> bytes freed by removing the session’s workspace directory.
- Sessions
Check InUse Request - Session IDs to test for live in-use locks.
- Sessions
Check InUse Result - Session IDs from the input set that are currently in use by another process.
- Sessions
Close Request - Session ID to close.
- Sessions
Close Result - Closes a session: emits shutdown, flushes pending events to disk, releases the in-use lock, disposes the active session. Idempotent: succeeds even if the session is not currently active.
- Sessions
Connect Result - Remote session connection result.
- Sessions
Enrich Metadata Request - Session metadata records to enrich with summary and context information.
- Sessions
Enrich Metadata Result - The enriched metadata records, with summary and context fields backfilled where available. Sessions confirmed empty and unnamed are omitted.
- Sessions
Find ByPrefix Request - UUID prefix to resolve to a unique session ID.
- Sessions
Find ByPrefix Result - Session ID matching the prefix, omitted when no unique match exists.
- Sessions
Find ByTaskID Request - GitHub task ID to look up.
- Sessions
Find ByTaskID Result - ID of the local session bound to the given GitHub task, or omitted when none.
- Sessions
Find ByTask IdResult - ID of the local session bound to the given GitHub task, or omitted when none.
- Sessions
Fork Request - Source session identifier to fork from, optional event-ID boundary, and optional friendly name for the new session.
- Sessions
Fork Result - Identifier and optional friendly name assigned to the newly forked session.
- Sessions
GetBoard Entry Count Request - Session ID whose board entry count should be returned.
- Sessions
GetBoard Entry Count Result - Dynamic-context board entry count, when available.
- Sessions
GetEvent File Path Request - Session ID whose event-log file path to compute.
- Sessions
GetEvent File Path Result - Absolute path to the session’s events.jsonl file on disk.
- Sessions
GetLast ForContext Request - Optional working-directory context used to score session relevance.
- Sessions
GetLast ForContext Result - Most-relevant session ID for the supplied context, or omitted when no sessions exist.
- Sessions
GetPersisted Remote Steerable Request - Session ID to look up the persisted remote-steerable flag for.
- Sessions
GetPersisted Remote Steerable Result - The session’s persisted remote-steerable flag, or omitted when no value has been persisted.
- Sessions
GetRemote Control Status Result - Wrapper for the singleton’s current status.
- Sessions
GetSizes Result - Map of sessionId -> on-disk size in bytes for each session’s workspace directory.
- Sessions
List Request - Optional source filter, metadata-load limit, and context filter applied to the returned sessions.
- Sessions
List Result - Sessions matching the filter, ordered most-recently-modified first.
- Sessions
Load Deferred Repo Hooks Request - Active session ID whose deferred repo-level hooks should be loaded.
- Sessions
Load Deferred Repo Hooks Result - Queued repo-level startup prompts and the total hook command count after loading.
- Sessions
Open Attach - Parameters for attaching to an already-active session by ID.
- Sessions
Open Cloud - Parameters for creating a new cloud session.
- Sessions
Open Create - Parameters for creating a new local session.
- Sessions
Open Handoff - Parameters for fetching a remote session and handing it off to a new local session.
- Sessions
Open Progress - Schema for the
SessionsOpenProgresstype. - Sessions
Open Remote - Parameters for connecting to a live remote session.
- Sessions
Open Result - Result of opening a session.
- Sessions
Open Resume - Parameters for resuming a specific local session.
- Sessions
Open Resume Last - Parameters for resuming the most relevant local session.
- Sessions
Poll Spawned Sessions Event - Schema for the
SessionsPollSpawnedSessionsEventtype. - Sessions
Poll Spawned Sessions Request - Cursor and optional long-poll wait for polling runtime-spawned sessions.
- Sessions
Poll Spawned Sessions Result - Batch of spawn events plus a cursor for follow-up polls.
- Sessions
Prune OldRequest - Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).
- Sessions
Prune OldResult - Outcome of the prune operation: deleted IDs, dry-run candidates, skipped IDs, total bytes freed, and the dry-run flag.
- Sessions
Register Extension Tools OnSession Options - Optional registration options.
- Sessions
Release Lock Request - Session ID whose in-use lock should be released.
- Sessions
Release Lock Result - Release the in-use lock held by this process for the given session. No-op when this process does not currently hold a lock for the session.
- Sessions
Reload Plugin Hooks Request - Active session ID and an optional flag for deferring repo-level hooks until folder trust.
- Sessions
Reload Plugin Hooks Result - Reload all hooks (user, plugin, optionally repo) and apply them to the active session. Call after installing or removing plugins so their hooks take effect immediately. No-op when no active session matches the given sessionId.
- Sessions
Save Request - Session ID whose pending events should be flushed to disk.
- Sessions
Save Result - Flush a session’s pending events to disk. No-op when no writer exists for the session (e.g., already closed).
- Sessions
SetAdditional Plugins Request - Manager-wide additional plugins to register; replaces any previously-configured set.
- Sessions
SetAdditional Plugins Result - Replace the manager-wide additional plugins. New session creations and subsequent hook reloads see the new set; already-running sessions keep their existing hook installation until the next reload.
- Sessions
SetRemote Control Steering Request - Patch for the singleton’s steering state.
- Sessions
SetRemote Control Steering Result - Wrapper for the singleton’s current status.
- Sessions
Start Remote Control Request - Parameters for attaching the remote-control singleton to a session.
- Sessions
Start Remote Control Result - Wrapper for the singleton’s current status.
- Sessions
Stop Remote Control Request - Parameters for stopping the remote-control singleton.
- Sessions
Stop Remote Control Result - Outcome of a stopRemoteControl call.
- Sessions
Transfer Remote Control Request - Parameters for atomically rebinding the remote-control singleton.
- Sessions
Transfer Remote Control Result - Outcome of a transferRemoteControl call.
- Shell
Cancel User Requested Request - User-requested shell execution cancellation handle.
- Shell
Exec Request - Shell command to run, with optional working directory and timeout in milliseconds.
- Shell
Exec Result - Identifier of the spawned process, used to correlate streamed output and exit notifications.
- Shell
Execute User Requested Request - User-requested shell command and cancellation handle.
- Shell
Kill Request - Identifier of a process previously returned by “shell.exec” and the signal to send.
- Shell
Kill Result - Indicates whether the signal was delivered; false if the process was unknown or already exited.
- Shutdown
Request - Parameters for shutting down the session
- Skill
- Schema for the
Skilltype. - Skill
Discovery Path - Schema for the
SkillDiscoveryPathtype. - Skill
Discovery Path List - Canonical locations where skills can be created so the runtime will recognize them.
- Skill
List - Skills available to the session, with their enabled state.
- Skills
Config SetDisabled Skills Request - Skill names to mark as disabled in global configuration, replacing any previous list.
- Skills
Disable Request - Name of the skill to disable for the session.
- Skills
Discover Request - Optional project paths and additional skill directories to include in discovery.
- Skills
Discover Result - Skills discovered across global and project sources.
- Skills
Enable Request - Name of the skill to enable for the session.
- Skills
GetDiscovery Paths Request - Optional project paths to enumerate.
- Skills
GetDiscovery Paths Result - Canonical locations where skills can be created so the runtime will recognize them.
- Skills
GetInvoked Result - Skills invoked during this session, ordered by invocation time (most recent last).
- Skills
Invoked Skill - Schema for the
SkillsInvokedSkilltype. - Skills
Load Diagnostics - Diagnostics from reloading skill definitions, with warnings and errors as separate lists.
- Slash
Command Agent Prompt Result - Schema for the
SlashCommandAgentPromptResulttype. - Slash
Command Completed Result - Schema for the
SlashCommandCompletedResulttype. - Slash
Command Info - Schema for the
SlashCommandInfotype. - Slash
Command Input - Optional unstructured input hint
- Slash
Command Select Subcommand Option - Schema for the
SlashCommandSelectSubcommandOptiontype. - Slash
Command Select Subcommand Result - Schema for the
SlashCommandSelectSubcommandResulttype. - Slash
Command Text Result - Schema for the
SlashCommandTextResulttype. - Subagent
Settings - Subagent settings to apply, or null to clear the live session override
- Subagent
Settings Entry - Subagent model, reasoning effort, and context tier settings
- Task
Agent Info - Schema for the
TaskAgentInfotype. - Task
Agent Progress - Schema for the
TaskAgentProgresstype. - Task
List - Background tasks currently tracked by the session.
- Task
Progress Line - Schema for the
TaskProgressLinetype. - Task
Shell Info - Schema for the
TaskShellInfotype. - Task
Shell Progress - Schema for the
TaskShellProgresstype. - Tasks
Cancel Request - Identifier of the background task to cancel.
- Tasks
Cancel Result - Indicates whether the background task was successfully cancelled.
- Tasks
GetCurrent Promotable Result - The first sync-waiting task that can currently be promoted to background mode.
- Tasks
GetProgress Request - Identifier of the background task to fetch progress for.
- Tasks
GetProgress Result - Progress information for the task, or null when no task with that ID is tracked.
- Tasks
Promote Current ToBackground Result - The promoted task as it now exists in background mode, omitted if no promotable task was waiting.
- Tasks
Promote ToBackground Request - Identifier of the task to promote to background mode.
- Tasks
Promote ToBackground Result - Indicates whether the task was successfully promoted to background mode.
- Tasks
Refresh Result - Refresh metadata for any detached background shells the runtime knows about. Use after a long pause to pick up exit/output state for shells running outside the agent loop.
- Tasks
Remove Request - Identifier of the completed or cancelled task to remove from tracking.
- Tasks
Remove Result - Indicates whether the task was removed. False when the task does not exist or is still running/idle.
- Tasks
Send Message Request - Identifier of the target agent task, message content, and optional sender agent ID.
- Tasks
Send Message Result - Indicates whether the message was delivered, with an error message when delivery failed.
- Tasks
Start Agent Request - Agent type, prompt, name, and optional description and model override for the new task.
- Tasks
Start Agent Result - Identifier assigned to the newly started background agent task.
- Tasks
Wait ForPending Result - Wait until all in-flight background tasks (agents + shells) and any follow-up turns scheduled by their completions have settled. Returns when the runtime is fully drained or after an internal timeout (default 10 minutes; configurable via COPILOT_TASK_WAIT_TIMEOUT_SECONDS).
- Telemetry
SetFeature Overrides Request - Feature override key/value pairs to attach to subsequent telemetry events from this session.
- Token
Auth Info - Schema for the
TokenAuthInfotype. - Tool
- Schema for the
Tooltype. - Tool
List - Built-in tools available for the requested model, with their parameters and instructions.
- Tools
GetCurrent Metadata Result - Current lightweight tool metadata snapshot for the session.
- Tools
Initialize AndValidate Result - Resolve, build, and validate the runtime tool list for this session. Subagent sessions and consumer flows that need an initialized tool set before
sendinvoke this. Default base-class implementation is a no-op for sessions that don’t support tool validation. - Tools
List Request - Optional model identifier whose tool overrides should be applied to the listing.
- Tools
List Result - Built-in tools available for the requested model, with their parameters and instructions.
- Tools
Update Subagent Settings Result - Empty result after applying subagent settings
- UIElicitation
Array AnyOf Field - Multi-select string field where each option pairs a value with a display label.
- UIElicitation
Array AnyOf Field Items - Schema applied to each item in the array.
- UIElicitation
Array AnyOf Field Items AnyOf - Schema for the
UIElicitationArrayAnyOfFieldItemsAnyOftype. - UIElicitation
Array Enum Field - Multi-select string field whose allowed values are defined inline.
- UIElicitation
Array Enum Field Items - Schema applied to each item in the array.
- UIElicitation
Request - Prompt message and JSON schema describing the form fields to elicit from the user.
- UIElicitation
Response - The elicitation response (accept with form values, decline, or cancel)
- UIElicitation
Result - Indicates whether the elicitation response was accepted; false if it was already resolved by another client.
- UIElicitation
Schema - JSON Schema describing the form fields to present to the user
- UIElicitation
Schema Property Boolean - Boolean field rendered as a yes/no toggle.
- UIElicitation
Schema Property Number - Numeric field accepting either a number or an integer.
- UIElicitation
Schema Property String - Free-text string field with optional length and format constraints.
- UIElicitation
String Enum Field - Single-select string field whose allowed values are defined inline.
- UIElicitation
String OneOf Field - Single-select string field where each option pairs a value with a display label.
- UIElicitation
String OneOf Field OneOf - Schema for the
UIElicitationStringOneOfFieldOneOftype. - UIEphemeral
Query Request - Transient question to answer without adding it to conversation history.
- UIEphemeral
Query Result - Transient answer generated from current conversation context.
- UIExit
Plan Mode Response - Schema for the
UIExitPlanModeResponsetype. - UIHandle
Pending Auto Mode Switch Request - Request ID of a pending
auto_mode_switch.requestedevent and the user’s response. - UIHandle
Pending Elicitation Request - Pending elicitation request ID and the user’s response (accept/decline/cancel + form values).
- UIHandle
Pending Exit Plan Mode Request - Request ID of a pending
exit_plan_mode.requestedevent and the user’s response. - UIHandle
Pending Result - Indicates whether the pending UI request was resolved by this call.
- UIHandle
Pending Sampling Request - Request ID of a pending
sampling.requestedevent and an optional sampling result payload (omit to reject). - UIHandle
Pending Sampling Response - Optional sampling result payload. Omit to reject/cancel the sampling request without providing a result.
- UIHandle
Pending User Input Request - Request ID of a pending
user_input.requestedevent and the user’s response. - UIRegister
Direct Auto Mode Switch Handler Result - Register an in-process handler for
auto_mode_switch.requestedevents. The caller still attaches the actual listener via the standard event-subscription mechanism; this registration solely tells the server bridge to skip its own dispatch (so a remote client doesn’t race the in-process handler for the same requestId). - UIUnregister
Direct Auto Mode Switch Handler Request - Opaque handle previously returned by
registerDirectAutoModeSwitchHandlerto release. - UIUnregister
Direct Auto Mode Switch Handler Result - Indicates whether the handle was active and the registration count was decremented.
- UIUser
Input Response - Schema for the
UIUserInputResponsetype. - Update
Subagent Settings Request - Subagent settings to apply to the current session
- Update
Subagent Settings Request Subagents - Configured per-agent subagent overrides
- Usage
GetMetrics Result - Accumulated session usage metrics, including premium request cost, token counts, model breakdown, and code-change totals.
- Usage
Metrics Code Changes - Aggregated code change metrics
- Usage
Metrics Model Metric - Schema for the
UsageMetricsModelMetrictype. - Usage
Metrics Model Metric Requests - Request count and cost metrics for this model
- Usage
Metrics Model Metric Token Detail - Schema for the
UsageMetricsModelMetricTokenDetailtype. - Usage
Metrics Model Metric Usage - Token usage metrics for this model
- Usage
Metrics Token Detail - Schema for the
UsageMetricsTokenDetailtype. - User
Auth Info - Schema for the
UserAuthInfotype. - User
Requested Shell Command Result - Result of a user-requested shell command.
- Workspace
Diff File Change - A single changed file and its unified diff.
- Workspace
Diff Result - Workspace diff result for the requested mode.
- Workspace
Summary - Public-facing workspace metadata for this session, or null if the session has no associated workspace. Excludes runtime-internal fields (GitHub IDs, summary count, internal flags).
- Workspaces
Checkpoints - Schema for the
WorkspacesCheckpointstype. - Workspaces
Create File Request - Relative path and UTF-8 content for the workspace file to create or overwrite.
- Workspaces
Diff Request - Parameters for computing a workspace diff.
- Workspaces
GetWorkspace Result - Current workspace metadata for the session, including its absolute filesystem path when available.
- Workspaces
GetWorkspace Result Workspace - Workspaces
List Checkpoints Result - Workspace checkpoints in chronological order; empty when the workspace is not enabled.
- Workspaces
List Files Result - Relative paths of files stored in the session workspace files directory.
- Workspaces
Read Checkpoint Request - Checkpoint number to read.
- Workspaces
Read Checkpoint Result - Checkpoint content as a UTF-8 string, or null when the checkpoint or workspace is missing.
- Workspaces
Read File Request - Relative path of the workspace file to read.
- Workspaces
Read File Result - Contents of the requested workspace file as a UTF-8 string.
- Workspaces
Save Large Paste Request - Pasted content to save as a UTF-8 file in the session workspace.
- Workspaces
Save Large Paste Result - Descriptor for the saved paste file, or null when the workspace is unavailable.
- Workspaces
Save Large Paste Result Saved
Enums§
- Agent
Discovery Path Scope - Which tier this directory belongs to
- Agent
Info Source - Where the agent definition was loaded from
- Agent
Registry Live Target Entry Attention Kind - Kind of attention required when status === “attention”. Meaningful only when status === “attention”.
- Agent
Registry Live Target Entry Kind - Process kind tag for the registry entry
- Agent
Registry Live Target Entry Last Terminal Event - How the most recent turn ended (clean vs aborted). Lets the renderer distinguish done from done_cancelled.
- Agent
Registry Live Target Entry Status - Coarse lifecycle status of the foreground session
- Agent
Registry LogCapture Open Error Reason - Categorized reason for log-open failure
- Agent
Registry Spawn Error Kind - Discriminator: child_process.spawn itself failed
- Agent
Registry Spawn Permission Mode - Permission posture for the new session. ‘yolo’ requires the controller-local session to currently be in allow-all mode.
- Agent
Registry Spawn Registry Timeout Kind - Discriminator: spawn succeeded but child never registered
- Agent
Registry Spawn Result - Outcome of an agentRegistry.spawn call.
- Agent
Registry Spawn Spawned Kind - Discriminator: managed-server child spawned successfully
- Agent
Registry Spawn Validation Error Field - Which parameter field was invalid. Omitted when the rejection is not field-specific.
- Agent
Registry Spawn Validation Error Kind - Discriminator: synchronous pre-validation rejected the request
- Agent
Registry Spawn Validation Error Reason - Categorized reason for the rejection. Low-cardinality enum so telemetry can aggregate by reason without leaking raw paths or agent/model names.
- ApiKey
Auth Info Type - API-key authentication for non-GitHub LLM providers (e.g. when running BYOM-style).
- Attachment
Blob Type - Attachment type discriminator
- Attachment
Directory Type - Attachment type discriminator
- Attachment
Extension Context Type - Attachment type discriminator
- Attachment
File Type - Attachment type discriminator
- Attachment
GitHub Reference Type - Type of GitHub reference
- Attachment
Selection Type - Attachment type discriminator
- Auth
Info Type - Authentication type
- Canvas
Instance Availability - Runtime-controlled routing state for an open canvas instance.
- Connected
Remote Session Metadata Kind - Neutral SDK discriminator for the connected remote session kind.
- Content
Filter Mode - Controls how MCP tool result content is filtered: none leaves content unchanged, markdown sanitizes HTML while preserving Markdown-friendly output, and hidden_characters removes characters that can hide directives.
- Copilot
ApiToken Auth Info Host - Authentication host (always the public GitHub host).
- Copilot
ApiToken Auth Info Type - Direct Copilot API authentication via the
GITHUB_COPILOT_API_TOKEN+COPILOT_API_URLenvironment-variable pair. The token itself is read from the environment by the runtime, not carried in this struct. - Discovered
McpServer Type - Server transport type: stdio, http, sse (deprecated), or memory
- EnvAuth
Info Type - Personal access token (PAT) or server-to-server token sourced from an environment variable.
- Events
Agent Scope - Agent-scope filter: ‘primary’ returns only main-agent events plus events whose type starts with ‘subagent.’ (matching the typed-subscription default behavior); ‘all’ returns events from all agents (matching wildcard-subscription behavior). Default is ‘all’ to preserve wildcard semantics for catch-up callers.
- Events
Cursor Status - Cursor status: ‘ok’ means the cursor was applied successfully; ‘expired’ means the cursor referred to an event that no longer exists in history (e.g. truncated or compacted away) and the read started from the beginning of the remaining history.
- Extension
Context Push Input Type - Attachment type discriminator
- Extension
Source - Discovery source: project (.github/extensions/), user (~/.copilot/extensions/), plugin (installed plugin), or session (session-state/
/extensions/) - Extension
Status - Current status: running, disabled, failed, or starting
- External
Tool Text Result ForLlm Binary Results ForLlm Type - Binary result type discriminator. Use “image” for images and “resource” for other binary data.
- External
Tool Text Result ForLlm Content Audio Type - Content block type discriminator
- External
Tool Text Result ForLlm Content Image Type - Content block type discriminator
- External
Tool Text Result ForLlm Content Resource Link Icon Theme - Theme variant this icon is intended for
- External
Tool Text Result ForLlm Content Resource Link Type - Content block type discriminator
- External
Tool Text Result ForLlm Content Resource Type - Content block type discriminator
- External
Tool Text Result ForLlm Content Terminal Type - Content block type discriminator
- External
Tool Text Result ForLlm Content Text Type - Content block type discriminator
- GhCli
Auth Info Type - Authentication via the
ghCLI’s saved credentials. - HMAC
Auth Info Host - Authentication host. HMAC auth always targets the public GitHub host.
- HMAC
Auth Info Type - HMAC-based authentication used by GitHub-internal services.
- Installed
Plugin Source GitHub Source - Constant value. Always “github”.
- Installed
Plugin Source Local Source - Constant value. Always “local”.
- Installed
Plugin Source UrlSource - Constant value. Always “url”.
- Instruction
Discovery Path Kind - Whether the target is a single file or a directory of instruction files
- Instruction
Discovery Path Location - Which tier this target belongs to
- Instruction
Source Location - Where this source lives — used for UI grouping
- Instruction
Source Type - Category of instruction source — used for merge logic
- McpApps
Host Context Details Available Display Mode - Allowed values for the
McpAppsHostContextDetailsAvailableDisplayModeenumeration. - McpApps
Host Context Details Display Mode - Current display mode (SEP-1865)
- McpApps
Host Context Details Platform - Platform type for responsive design
- McpApps
Host Context Details Theme - UI theme preference per SEP-1865
- McpApps
SetHost Context Details Available Display Mode - Allowed values for the
McpAppsSetHostContextDetailsAvailableDisplayModeenumeration. - McpApps
SetHost Context Details Display Mode - Current display mode (SEP-1865)
- McpApps
SetHost Context Details Platform - Platform type for responsive design
- McpApps
SetHost Context Details Theme - UI theme preference per SEP-1865
- McpSampling
Execution Action - Outcome of the sampling inference. ‘success’ produced a response; ‘failure’ encountered an error (including agent-side rejection by content filter or criteria); ‘cancelled’ the caller cancelled this execution via cancelSamplingExecution.
- McpServer
Config Defer Tools - Controls if tools provided by this server can be loaded on demand via tool search (auto) or always included in the initial tool list (never)
- McpServer
Config Http Oauth Grant Type - OAuth grant type to use when authenticating to the remote MCP server.
- McpServer
Config Http Type - Remote transport type. Defaults to “http” when omitted.
- McpSet
EnvValue Mode Details - How environment-variable values supplied to MCP servers are resolved. “direct” passes literal string values; “indirect” treats values as references (e.g. names of environment variables on the host) that the runtime resolves before launch. Defaults to the runtime’s startup mode; clients that intentionally launch MCP servers with literal values (e.g. CLI prompt mode and ACP) set this to “direct”.
- Metadata
Snapshot Current Mode - The current agent mode for this session (e.g., ‘interactive’, ‘plan’, ‘autopilot’)
- Metadata
Snapshot Remote Metadata Task Type - Whether the remote task originated from Copilot Coding Agent (cca) or a CLI
--remoteinvocation. - Model
Picker Category - Model capability category for grouping in the model picker
- Model
Picker Price Category - Relative cost tier for token-based billing users
- Model
Policy State - Current policy state for this model
- Options
Update Additional Content Exclusion Policy Scope - Allowed values for the
OptionsUpdateAdditionalContentExclusionPolicyScopeenumeration. - Options
Update Context Tier - Context tier for models with tiered pricing. The session uses this to derive effective
modelCapabilitiesOverridesso compaction, truncation, token display, and request limits honor the selected tier. - Options
Update EnvValue Mode - How env values are passed to MCP servers (
directinlines literal values;indirectresolves at launch). - Options
Update Reasoning Summary - Reasoning summary mode for supported model clients.
- Options
Update Tool Filter Precedence - Controls how availableTools (allowlist) and excludedTools (denylist) combine when both are set.
- Permission
Decision - The client’s response to the pending permission prompt
- Permission
Decision Approve ForLocation Approval - Approval to persist for this location
- Permission
Decision Approve ForLocation Approval Commands Kind - Approval scoped to specific command identifiers.
- Permission
Decision Approve ForLocation Approval Custom Tool Kind - Approval covering a custom tool.
- Permission
Decision Approve ForLocation Approval Extension Management Kind - Approval covering extension lifecycle operations such as enable, disable, or reload.
- Permission
Decision Approve ForLocation Approval Extension Permission Access Kind - Approval covering an extension’s request to access a permission-gated capability.
- Permission
Decision Approve ForLocation Approval McpKind - Approval covering an MCP tool.
- Permission
Decision Approve ForLocation Approval McpSampling Kind - Approval covering MCP sampling requests for a server.
- Permission
Decision Approve ForLocation Approval Memory Kind - Approval covering writes to long-term memory.
- Permission
Decision Approve ForLocation Approval Read Kind - Approval covering read-only filesystem operations.
- Permission
Decision Approve ForLocation Approval Write Kind - Approval covering filesystem write operations.
- Permission
Decision Approve ForLocation Kind - Approve and persist for this project location
- Permission
Decision Approve ForSession Approval - Session-scoped approval to remember (tool prompts only; omitted for path/url prompts)
- Permission
Decision Approve ForSession Approval Commands Kind - Approval scoped to specific command identifiers.
- Permission
Decision Approve ForSession Approval Custom Tool Kind - Approval covering a custom tool.
- Permission
Decision Approve ForSession Approval Extension Management Kind - Approval covering extension lifecycle operations such as enable, disable, or reload.
- Permission
Decision Approve ForSession Approval Extension Permission Access Kind - Approval covering an extension’s request to access a permission-gated capability.
- Permission
Decision Approve ForSession Approval McpKind - Approval covering an MCP tool.
- Permission
Decision Approve ForSession Approval McpSampling Kind - Approval covering MCP sampling requests for a server.
- Permission
Decision Approve ForSession Approval Memory Kind - Approval covering writes to long-term memory.
- Permission
Decision Approve ForSession Approval Read Kind - Approval covering read-only filesystem operations.
- Permission
Decision Approve ForSession Approval Write Kind - Approval covering filesystem write operations.
- Permission
Decision Approve ForSession Kind - Approve and remember for the rest of the session
- Permission
Decision Approve Once Kind - Approve this single request only
- Permission
Decision Approve Permanently Kind - Approve and persist across sessions (URL prompts only)
- Permission
Decision Approved ForLocation Kind - Approved and persisted for this project location
- Permission
Decision Approved ForSession Kind - Approved and remembered for the rest of the session
- Permission
Decision Approved Kind - The permission request was approved
- Permission
Decision Cancelled Kind - The permission request was cancelled before a response was used
- Permission
Decision Denied ByContent Exclusion Policy Kind - Denied by the organization’s content exclusion policy
- Permission
Decision Denied ByPermission Request Hook Kind - Denied by a permission request hook registered by an extension or plugin
- Permission
Decision Denied ByRules Kind - Denied because approval rules explicitly blocked it
- Permission
Decision Denied Interactively ByUser Kind - Denied by the user during an interactive prompt
- Permission
Decision Denied NoApproval Rule AndCould NotRequest From User Kind - Denied because no approval rule matched and user confirmation was unavailable
- Permission
Decision Reject Kind - Reject the request
- Permission
Decision User NotAvailable Kind - No user is available to confirm the request
- Permission
Location Type - Whether the location is a git repo or directory
- Permissions
Configure Additional Content Exclusion Policy Scope - Allowed values for the
PermissionsConfigureAdditionalContentExclusionPolicyScopeenumeration. - Permissions
Locations AddTool Approval Details - Tool approval to persist and apply
- Permissions
Locations AddTool Approval Details Commands Kind - Approval scoped to specific command identifiers.
- Permissions
Locations AddTool Approval Details Custom Tool Kind - Approval covering a custom tool.
- Permissions
Locations AddTool Approval Details Extension Management Kind - Approval covering extension lifecycle operations such as enable, disable, or reload.
- Permissions
Locations AddTool Approval Details Extension Permission Access Kind - Approval covering an extension’s request to access a permission-gated capability.
- Permissions
Locations AddTool Approval Details McpKind - Approval covering an MCP tool.
- Permissions
Locations AddTool Approval Details McpSampling Kind - Approval covering MCP sampling requests for a server.
- Permissions
Locations AddTool Approval Details Memory Kind - Approval covering writes to long-term memory.
- Permissions
Locations AddTool Approval Details Read Kind - Approval covering read-only filesystem operations.
- Permissions
Locations AddTool Approval Details Write Kind - Approval covering filesystem write operations.
- Permissions
Modify Rules Scope - Whether the change applies to ephemeral session-scoped rules (cleared at session end) or to location-scoped rules persisted via the location-permissions config file.
- Permissions
SetAllow AllSource - Optional source for allow-all telemetry. Defaults to
rpcwhen omitted for SDK callers. - Permissions
SetApprove AllSource - Optional source for allow-all telemetry. Defaults to
rpcwhen omitted for SDK callers. - Provider
Config Type - Provider type. Defaults to “openai” for generic OpenAI-compatible APIs.
- Provider
Config Wire Api - Wire API format (openai/azure only). Defaults to “completions”.
- Provider
Endpoint Type - Provider family. Matches the
typefield of a BYOK provider config. - Provider
Endpoint Wire Api - Wire API to be used, when required for the provider type.
- Push
Attachment Blob Type - Attachment type discriminator
- Push
Attachment Directory Type - Attachment type discriminator
- Push
Attachment File Type - Attachment type discriminator
- Push
Attachment GitHub Reference Type - Type of GitHub reference
- Push
Attachment Selection Type - Attachment type discriminator
- Queue
Pending Items Kind - Whether this item is a queued user message or a queued slash command / model change
- Remote
Control Status Active State - Remote control state tag: active.
- Remote
Control Status Connecting State - Remote control state tag: connecting.
- Remote
Control Status Error State - Remote control state tag: setup failed.
- Remote
Control Status OffState - Remote control state tag: not connected.
- Remote
Session Metadata Task Type - Whether the remote task originated from CCA or CLI
--remote. - Remote
Session Mode - Per-session remote mode. “off” disables remote, “export” exports session events to GitHub without enabling remote steering, “on” enables both export and remote steering.
- Send
Agent Mode - The UI mode the agent was in when this message was sent. Defaults to the session’s current mode.
- Send
Mode - How to deliver the message.
enqueue(default) appends to the message queue.immediateinterjects during an in-progress turn. - Session
Capability - Session capability enabled for this session
- Session
Context Host Type - Repository host type
- Session
FsError Code - Error classification
- Session
FsReaddir With Types Entry Type - Entry type
- Session
FsSet Provider Conventions - Path conventions used by this filesystem
- Session
FsSqlite Query Type - How to execute the query: ‘exec’ for DDL/multi-statement (no results), ‘query’ for SELECT (returns rows), ‘run’ for INSERT/UPDATE/DELETE (returns rowsAffected)
- Session
Installed Plugin Source GitHub Source - Constant value. Always “github”.
- Session
Installed Plugin Source Local Source - Constant value. Always “local”.
- Session
Installed Plugin Source UrlSource - Constant value. Always “url”.
- Session
LogLevel - Log severity level. Determines how the message is displayed in the timeline. Defaults to “info”.
- Session
Open Options Additional Content Exclusion Policy Scope - Allowed values for the
SessionOpenOptionsAdditionalContentExclusionPolicyScopeenumeration. - Session
Open Options EnvValue Mode - How MCP server environment values are interpreted.
- Session
Open Options Reasoning Summary - Initial reasoning summary mode for supported model clients.
- Session
Open Params - Open a session by creating, resuming, attaching, connecting to a remote, or handing off.
- Session
Source - Which session sources to include. Defaults to
localfor backward compatibility. - Session
Working Directory Context Host Type - Hosting platform type of the repository
- Sessions
Open Attach Kind - Attach to an already-active in-process session by ID. Unlike
resume, this does NOT re-load from disk; the session must already be loaded by an earliercreate/resumecall. Returnsstatus: 'not_found'when no active session matches the id. Useful for in-process consumers that need a fresh API handle to a session opened elsewhere (e.g., a peer foreground-session switch). - Sessions
Open Cloud Kind - Create a new cloud (coding-agent) session.
- Sessions
Open Create Kind - Create a new local session.
- Sessions
Open Handoff Kind - Fetch a remote session and hand it off to a new local session.
- Sessions
Open Handoff Task Type - Task type determines the handoff strategy (CCA fetches events; CLI prepares a transient session).
- Sessions
Open Progress Status - Step status.
- Sessions
Open Progress Step - Handoff step.
- Sessions
Open Remote Kind - Connect to a live remote session.
- Sessions
Open Resume Kind - Resume a specific local session by ID or prefix.
- Sessions
Open Resume Last Kind - Resume the most relevant existing local session.
- Sessions
Open Status - Outcome of the open request.
- Shell
Kill Signal - Signal to send (default: SIGTERM)
- Skill
Discovery Scope - Which tier this directory belongs to
- Slash
Command Agent Prompt Result Kind - Agent prompt result discriminator
- Slash
Command Completed Result Kind - Completed result discriminator
- Slash
Command Input Completion - Optional completion hint for the input (e.g. ‘directory’ for filesystem path completion)
- Slash
Command Invocation Result - Result of invoking the slash command (text output, prompt to send to the agent, or completion).
- Slash
Command Kind - Coarse command category for grouping and behavior: runtime built-in, skill-backed command, or SDK/client-owned command
- Slash
Command Select Subcommand Result Kind - Select subcommand result discriminator
- Slash
Command Text Result Kind - Text result discriminator
- Subagent
Settings Entry Context Tier - Context tier override for matching subagents
- Task
Agent Info Type - Task kind
- Task
Agent Progress Type - Progress kind
- Task
Execution Mode - Whether task execution is synchronously awaited or managed in the background
- Task
Shell Info Attachment Mode - Whether the shell runs inside a managed PTY session or as an independent background process
- Task
Shell Info Type - Task kind
- Task
Shell Progress Type - Progress kind
- Task
Status - Current lifecycle status of the task
- Token
Auth Info Type - SDK-side token authentication; the host configured the token directly via the SDK.
- UIAuto
Mode Switch Response - User’s choice for auto-mode switching: yes (allow this turn), yes_always (allow + persist as setting), or no (decline).
- UIElicitation
Array AnyOf Field Type - Type discriminator. Always “array”.
- UIElicitation
Array Enum Field Items Type - Type discriminator. Always “string”.
- UIElicitation
Array Enum Field Type - Type discriminator. Always “array”.
- UIElicitation
Response Action - The user’s response: accept (submitted), decline (rejected), or cancel (dismissed)
- UIElicitation
Schema Property Boolean Type - Type discriminator. Always “boolean”.
- UIElicitation
Schema Property Number Type - Numeric type accepted by the field.
- UIElicitation
Schema Property String Format - Optional format hint that constrains the accepted input.
- UIElicitation
Schema Property String Type - Type discriminator. Always “string”.
- UIElicitation
Schema Type - Schema type indicator (always ‘object’)
- UIElicitation
String Enum Field Type - Type discriminator. Always “string”.
- UIElicitation
String OneOf Field Type - Type discriminator. Always “string”.
- UIExit
Plan Mode Action - The action the user selected. Defaults to ‘autopilot’ when autoApproveEdits is true, otherwise ‘interactive’.
- User
Auth Info Type - OAuth user authentication. The token itself is held in the runtime’s secret token store (keyed by host+login) and is NOT carried in this struct.
- Workspace
Diff File Change Type - Type of change represented by this file diff.
- Workspace
Diff Mode - Diff mode requested by the client.
- Workspace
Summary Host Type - Repository host type, if known
- Workspaces
Workspace Details Host Type - Allowed values for the
WorkspacesWorkspaceDetailsHostTypeenumeration.
Type Aliases§
- McpExecute
Sampling Result - MCP CreateMessageResult payload (with optional ‘tools’ extension), present when action=‘success’. Treated as opaque at the schema layer; consumers should construct/consume it per the MCP CreateMessageResult shape.
- Session
McpApps Call Tool Result - Standard MCP CallToolResult
- UIElicitation
Response Content - The form values submitted by the user (present when action is ‘accept’)