yuke Docs
Protocol

Protocol

The JSONL RPC protocol yuke --rpc speaks, protocol version 1. Generated from the schema.

Methods

agents.set_model client → server

Params
AgentsSetModelParams
Result
SessionConfigResult
agents.get client → server

Params
Empty (optional)
Result
AgentsGetResult
agents.update client → server

Params
AgentsUpdateParams
Result
AgentsGetResult
agents.resolve client → server

Params
AgentsResolveParams
Result
AgentsResolveResult
initialize client → server

Establish the connection and negotiate the protocol version.

Params
Empty (optional)
Result
InitializeResult
session.list client → server

List the sessions.

Params
SessionListParams (optional)
Result
SessionListResult
session.get client → server

Read one session with its resident activity, or its durable idle activity.

Params
SessionGetParams
Result
SessionListItem
session.create client → server

Create a session.

Params
CreateSession
Result
SessionResult
session.patch client → server

Update a session's mutable fields.

Params
SessionPatchParams
Result
SessionResult
session.remove client → server

Remove a session.

Params
SessionRemoveParams
Result
Empty
session.fork client → server

Fork a session at a message.

Params
SessionForkParams
Result
SessionResult
session.compact client → server

Compact a session's transcript.

Params
SessionCompactParams
Result
SessionCompactResult
session.rewind client → server

Rewind a session to before a message.

Params
SessionRewindParams
Result
Empty
session.send_input client → server

Send user input to a session.

Params
SessionSendInputParams
Result
SessionSendInputResult
session.cancel_input client → server

Cancel a queued input.

Params
SessionCancelInputParams
Result
SessionCancelInputResult
session.queue client → server

List the durable queued inputs of a session, oldest first.

Params
SessionQueueParams
Result
SessionQueueResult
session.cancel_run client → server

Cancel the active run.

Params
SessionCancelRunParams
Result
SessionCancelRunResult
session.history client → server

Fetch a page from a session transcript.

Params
SessionHistoryParams
Result
SessionHistoryResult
session.config client → server

Fetch a session's run config.

Params
SessionConfigParams
Result
SessionConfigResult
catalog.list client → server

List the model catalog.

Params
CatalogListParams (optional)
Result
CatalogListResult
catalog.reload client → server

Read providers.json again and rebuild the catalog.

Params
Empty (optional)
Result
CatalogReloadResult
auth.list client → server

List the local providers and the credential each one holds.

Params
Empty (optional)
Result
AuthListResult
auth.set_api_key client → server

Set an API key for a provider.

Params
AuthSetApiKeyParams
Result
Empty
auth.login client → server

Begin a provider login flow.

Params
AuthLoginParams
Result
AuthLoginResult
auth.cancel_login client → server

Cancel an active login flow.

Params
AuthCancelLoginParams
Result
Empty
auth.remove client → server

Remove the credential the engine holds for a provider.

Params
AuthRemoveParams
Result
Empty
interaction.respond client → server

Answer one pending extension interaction.

Params
InteractionRespondParams
Result
Empty

Broadcasts

session.summary_changed server → client

A session's summary metadata changed.

Payload
SessionSummaryChangedData
session.activity_changed server → client

A session's activity state changed.

Payload
SessionActivityChangedData
session.removed server → client

The engine removed a session.

Payload
SessionRemovedData
catalog.changed server → client

The model catalog changed.

Payload
CatalogChangedData
auth.login_finished server → client

The engine finished an authentication login flow.

Payload
AuthLoginFinishedData
auth.changed server → client

Authentication state changed.

Payload
AuthChangedData
notice server → client

The engine sent an out-of-band notice.

Payload
Notice
message.committed server → client

The engine committed a message to a session transcript.

Payload
MessageCommittedData
run.started server → client

A run started.

Payload
RunStartedData
run.done server → client

A run finished.

Payload
RunDoneData
config.changed server → client

A session's run config changed.

Payload
ConfigChangedData
transcript.truncated server → client

The engine truncated older transcript messages.

Payload
TranscriptTruncatedData
message.started server → client

A new streaming message started.

Payload
MessageStartedData
message.discarded server → client

The engine discarded an unfinished message.

Payload
MessageDiscardedData
message.part_added server → client

The engine added a part to a message.

Payload
MessagePartAddedData
message.part_delta server → client

The engine sent more content for a message part.

Payload
MessagePartDeltaData
message.part_finalized server → client

The engine attached final metadata to a stopped part.

Payload
MessagePartFinalizedData
tool.state_changed server → client

A tool call's state changed.

Payload
ToolStateChangedData
tool.output_delta server → client

The engine sent more output from a tool.

Payload
ToolOutputDeltaData
input.queued server → client

The engine queued an input behind the active run.

Payload
InputQueuedData
input.canceled server → client

The engine canceled a queued input.

Payload
InputCanceledData
interaction.requested server → client

An extension asks the connected frontend to interact with the user.

Payload
InteractionRequestedData

Errors

Code Name
-32602 bad_request
-32600 bad_protocol
-32601 unknown_method
-31000 unknown_session
-31002 stale_cursor
-31003 unknown_message
-31004 unknown_part
-31005 unknown_input
-31006 unknown_config_rev
-31009 unknown_skill
-31010 input_already_started
-31011 queue_full
-31012 run_mismatch
-31015 session_busy
-31016 session_has_children
-31017 runtime_failed
-31018 invalid_patch
-31019 unsupported_model
-31020 unsupported_reasoning
-31022 not_implemented
-31023 unknown_provider
-31024 unknown_interaction
-31025 config_conflict
-31026 setup_required
-31027 setup_cancelled
-31028 auth_required
-32603 internal
-31021 overloaded

Types

Structures

AgentsSetModelParams

session_id SessionId required
model AgentModel required
AgentModel

model string required
reasoning string optional
AgentModels

small AgentModel optional
medium AgentModel optional
AgentsConfig

models AgentModels defaulted
AgentsGetResult

path string optional
revision AgentConfigRev required
config AgentsConfig required
AgentsUpdateParams

revision AgentConfigRev required
config AgentsConfig required
AgentsResolveParams

model AgentModelSlot required
AgentsResolveResult

slot AgentModelSlot required
model string required
reasoning string required
revision AgentConfigRev required
Client

This type identifies the client connection.

name string required The client connection name.
version string required The client build version.
ContentText

This part holds plain text.

text string required
ContentImage

This part holds an image source and an optional detail hint.

source MediaSource required
detail string optional
ContentAudio

This part holds an audio source and its format.

source MediaSource required
format string required
ContentFile

This part holds a file source and an optional file name.

source MediaSource required
filename string optional
MediaBlob

A content-addressed blob. No blob store exists yet, so a request that carries one is refused.

hash [64]u8 required
mime string required
bytes u64 required
AuthCancelLoginParams

These are the parameters for auth.cancel_login.

login_id LoginId required
AuthChangedData

This payload describes auth.changed.

provider AuthProvider required
AuthListResult

This result describes auth.list.

providers []AuthProvider required
AuthLoginResult

The engine returns these device authorization details only to the connection that sent the request.

login_id LoginId required
verification_url string required
user_code string required
AuthLoginFinishedData

This payload describes auth.login_finished.

login_id LoginId required
provider_id ProviderId required
outcome AuthLoginOutcome required
AuthLoginOutcomeCanceled

The login was explicitly canceled.

AuthLoginOutcomeFailed

The login failed without changing durable credentials.

message string required
AuthLoginOutcomeSucceeded

The engine completed login and durably stored the credentials.

AuthLoginParams

These are the parameters for auth.login.

provider_id ProviderId required
AuthRemoveParams

These parameters select the local credential to remove, an API key or a grant.

provider_id ProviderId required
AuthProvider

Public authentication state and capabilities for one provider.

provider_id ProviderId required
credential_kind AuthCredentialKind optional
can_login bool required
AuthSetApiKeyParams

These auth.set_api_key parameters carry a key that the wire never returns.

provider_id ProviderId required
api_key string required
CatalogChangedData

This payload describes catalog.changed.

catalog_rev CatalogRev required
CatalogListParams

These are the parameters for catalog.list.

since_rev CatalogRev optional
CatalogListResultFull

The client sent a stale or absent revision, so the engine returns the full catalog.

catalog_rev CatalogRev required
providers []ProviderInfo required
models []ModelInfo required
ProviderInfo

This type describes one configured provider. Its state tells a client why it cannot serve a turn.

id string required The provider name inside its origin. Two origins can use one id.
name string required
state ProviderState required
CatalogListResultUnchanged

The client sent the current revision, so the engine returns no catalog data.

catalog_rev CatalogRev required
CatalogReloadResult

This result reports the merged catalog revision after catalog.reload and whether it moved.

catalog_rev CatalogRev required
changed bool required
ModelCost

These costs use United States dollars per million tokens.

input f64 optional
output f64 optional
cache_read f64 optional
cache_write f64 optional
ModelInfo

This type exposes a closed projection of a provider model record. Its fields borrow their data.

id ModelId required
provider string required
selector string required The token that selects this model. A client echoes it back and never parses or builds it.
name string required
context_window u64 optional
max_output_tokens u64 optional
reasoning_levels []string required
default_reasoning string required
supports_vision bool optional
supports_tools bool optional
cost ModelCost required
Request

This type carries an RPC request.

id RequestId required
method MethodName required
params RequestParams required
ResponseOk

This type carries a successful RPC response.

id RequestId required
result ResponseResult required
ResponseError

This type carries a failed RPC response.

id RequestId required
error ErrorObject required
Notification

This type carries an RPC notification.

method BroadcastName required
params BroadcastData required
ActivityStateBuilding

This state marks the first phase of a run.

run_id RunId required
started_at_ms u64 required
ActivityStateCompacting

This state marks an active compaction model call.

run_id RunId required
reason CompactionReason required
started_at_ms u64 required
ActivityStateIdle

This state marks a session with no active work.

ActivityStateReasoning

The model produces reasoning in this state.

run_id RunId required
message_id MessageId required
part_id PartId required
ActivityStateRetrying

This state marks a run that waits for a retry.

run_id RunId required
attempt u64 required
max_attempts u64 required
next_at_ms u64 required
code RunErrorCode required
message string required
ActivityStateRunning

This state marks an active run.

run_id RunId required
started_at_ms u64 required
ActivityStateRunningTool

This state marks an active tool call.

run_id RunId required
message_id MessageId required
part_id PartId required
tool_name string required
started_at_ms u64 required
InputCanceledData

This payload describes input.canceled.

session_id SessionId required
seq Seq required
input_id InputId required
InputContent

Raw content parts.

content []ContentPart required
InputQueuedData

This payload describes input.queued.

session_id SessionId required
seq Seq required
input QueuedInput required
InteractionRequestedData

This payload asks the connected frontend to put one question to the user.

interaction_id u64 required
request InteractionRequest required
session_id SessionId optional
InteractionConfirm

title string required
message string required
InteractionSelect

title string required
options []string required
InteractionInput

secret bool optional
title string required
placeholder string optional
InteractionRespondParams

These parameters answer one pending question.

interaction_id u64 required
response InteractionResponse required
InteractionConfirmed

value bool required
InteractionValue

value string required
InputSkill

This type describes a skill invocation.

skill SkillRef required
SkillInfo

This type records discovered skill metadata.

name string required
description string required
scope SkillScope required This scope identifies a project or personal skill.
argument_hint string required
SkillRef

This type names a skill and holds its rendered arguments.

name string required
arguments string required
SkillsResult

This result lists discovered skills.

skills []SkillInfo required This field lists discovered skills.
ActiveDraft

This is the assistant draft that a run streams. Its fields borrow their data.

message AssistantMessage required
AssistantMessage

This payload describes an assistant transcript message. Its fields borrow their data.

id MessageId required
run_id RunId required
config_rev ConfigRev required
agent string required
content []AssistantPart required
finish StopReason optional
tokens TokenUsage optional
cost f64 optional
time MessageTime required
error MessageError optional
provenance TurnProvenance optional
CompactionMessage

This payload describes a compaction transcript message. Its fields borrow their data.

id MessageId required
run_id RunId required
reason CompactionReason required
summary string required
first_kept_id MessageId optional
tokens_before u64 required
tokens_after u64 required
time CreatedTime required
MessageCommittedData

This payload describes message.committed.

session_id SessionId required
seq Seq required
message Message required
MessageDiscardedData

This payload describes message.discarded.

session_id SessionId required
message_id MessageId required
MessageError

This type describes an assistant error with finish: "error". Its fields borrow their data.

type string required
message string required
MessagePartAddedData

This payload describes message.part_added.

session_id SessionId required
message_id MessageId required
part AssistantPart required
MessagePartFinalizedData

This payload describes message.part_finalized. The engine sends it at block stop.

session_id SessionId required
message_id MessageId required
part_id PartId required
final PartFinal required
MessageStartedData

This payload describes message.started when the engine opens a draft.

session_id SessionId required
message_id MessageId required
run_id RunId required
config_rev ConfigRev required
agent string required
created_at_ms u64 required
MessageTime

Creation and completion times for an assistant message.

created_at_ms u64 required
completed_at_ms u64 optional
PartDelta

This payload holds more text or reasoning bytes for a draft.

session_id SessionId required
message_id MessageId required
part_id PartId required
delta string required
offset u64 required
ReasoningFinal

The engine attaches the reasoning signature at block stop. An empty string means none.

signature string required
ReasoningPart

This payload describes a reasoning part in an assistant message. Its fields borrow their data.

id PartId required
text string required
signature string required
RedactedReasoningFinal

The engine attaches the opaque redacted reasoning data at block stop.

data string required
RedactedReasoningPart

This payload holds opaque, safety-redacted model reasoning. Its fields borrow their data.

id PartId required
data string required
TextPart

This payload describes a text part in an assistant message. Its fields borrow their data.

id PartId required
text string required
TokenUsage

This type records token counts for one assistant message.

input u64 required
output u64 required
reasoning u64 required
cache_read u64 required
cache_write u64 required
ToolPart

This payload describes a tool part in an assistant message. Its fields borrow their data.

id PartId required
call_id string optional
name string required
arguments string required
input_view []View optional
state ToolState required
TurnProvenance

This type records the provider that produced an assistant turn. Its fields borrow their data.

protocol ProviderProtocol required
model string required
UserMessage

This payload describes a user transcript message. Its fields borrow their data.

source InputSource optional
id MessageId required
content []ContentPart required
input_id InputId required
skill SkillRef optional
time CreatedTime required
ConfigChangedData

This payload describes config.changed.

session_id SessionId required
seq Seq required
config RunConfig required
CreateSession

These are the session.create input fields. They borrow their data.

workspace_path string required The workspace root. The caller names it; the engine holds no default directory.
profile string optional
model string optional
reasoning string optional
system_prompt string optional
max_rounds u64 optional
initial_input Input optional
child ChildSession optional
CreatedTime

This type records the creation time for a user or compaction message.

created_at_ms u64 required
EngineInfo

This type records the engine build. Its fields borrow their data.

version string required
Empty

Empty params or result object.

ErrorObject

This type records request failure details. Its fields borrow their data.

code ErrorCode required
message string required
InitializeResult

This result contains the coarse engine snapshot after initialize.

protocol u32 required
engine EngineInfo required
session_revision SessionRevision required
catalog_rev CatalogRev required
Notice

The engine broadcasts this diagnostic notice to all connections. Its fields borrow their data.

level NoticeLevel required
source string required
message string required
ParentInstruction

session_id SessionId required
message_id MessageId required
part_id PartId required
ChildReport

session_id SessionId required
run_id RunId required
path string required
outcome RunOutcome required
partial bool required
truncated bool required
ChildInputCanceled

session_id SessionId required
path string required
input_ids []InputId required
EngineInterruption

run_id RunId required
kind RunKind required
QueuedInput

This input waits behind an active turn.

source InputSource optional
input_id InputId required
content []ContentPart required
queued_at_ms u64 required
Session

The engine owns this session summary.

id SessionId required
root string required The canonical workspace directory this session runs in.
profile string required
model string required
reasoning string required
config_rev ConfigRev required
max_rounds u64 optional
title string required
message_count u64 required
usage_total TokenUsage required
created_at_ms u64 required
updated_at_ms u64 required
created_by Client optional
origin SessionOrigin required
agent string optional
name string optional
TranscriptTruncatedData

This payload describes transcript.truncated.

session_id SessionId required
seq Seq required
first_removed_id MessageId required
RunCanceledTiming

This type records run start and end times. The engine records no start time when a queued run never starts.

started_at_ms u64 optional
ended_at_ms u64 required
RunConfig

The engine saves these run settings at run start.

config_rev ConfigRev required
model string required
reasoning string required
RunDoneData

This payload describes run.done.

session_id SessionId required
seq Seq required
run_id RunId required
kind RunKind required
timing RunCanceledTiming required
outcome RunOutcome required
RunOutcomeCanceled

The user or engine canceled the run. The terminal envelope carries its timing.

RunOutcomeCompacted

The engine completed a manual compaction and produced a summary.

message_id MessageId required
RunOutcomeFailed

The engine reports failure after it exhausts its retry policy.

code RunErrorCode required
message string required
RunOutcomeSkipped

The engine skipped a manual compaction without producing a summary.

reason CompactSkipReason required
RunOutcomeTurn

The engine completed a turn after some round trips and recorded its stop reason.

finish StopReason required
rounds u64 required
RunStartedData

This payload describes run.started.

session_id SessionId required
seq Seq required
run_id RunId required
kind RunKind required
reason CompactionReason optional
config_rev ConfigRev required
started_at_ms u64 required
SessionActivity

Coarse live session state.

state ActivityState required
config RunConfig optional
queued u64 required
context_usage TokenUsage required
pending_compaction RunId optional
SessionActivityChangedData

This payload describes session.activity_changed.

session_id SessionId required
activity SessionActivity required
SessionCancelInputParams

These are the parameters for session.cancel_input.

session_id SessionId required
input_id InputId required
SessionCancelInputResult

This result identifies the canceled input.

canceled_input InputId required
SessionCancelRunParams

These are the parameters for session.cancel_run.

session_id SessionId required
run_id RunId optional
clear_queue bool optional
SessionCancelRunResult

This result identifies the canceled run and cleared inputs.

canceled_run RunId optional
cleared_inputs []InputId required
cleared_compaction RunId optional
SessionCompactParams

These are the parameters for session.compact.

session_id SessionId required
SessionCompactResult

This result describes session.compact.

status CompactStatus required
run_id RunId required
SessionConfigParams

These are the parameters for session.config.get.

session_id SessionId required
config_rev ConfigRev optional
SessionConfigResult

This result describes session.config.get.

config RunConfig required
system_prompt string optional
SessionForkParams

These are the parameters for session.fork.

session_id SessionId required
before_message_id MessageId optional
SessionGetParams

These are the parameters for session.get.

session_id SessionId required
SessionHistoryParams

These are the parameters for session.history.

session_id SessionId required
before_message_id MessageId required
limit u64 optional
SessionHistoryResult

This result describes session.history.

session_id SessionId required
messages []Message required
configs []RunConfig required
has_more bool required
SessionListItem

This row summarizes a session for session.list, session.get, and session broadcasts. Its fields borrow their data.

session Session required
activity SessionActivity required
SessionListParams

These are the session.list input fields. They borrow their data.

population SessionPopulation defaulted
view SessionView defaulted
limit u64 optional
cursor string optional
SessionListResult

This result contains one bounded session.list page. Its fields borrow their data.

revision SessionRevision required
items []SessionListItem required
next_cursor string optional
total u64 required
SessionOriginChild

This origin links a session to its parent session and message part.

parent_id SessionId required
parent_message_id MessageId required
parent_part_id PartId required
SessionOriginFork

This origin links a session to its source session.

source_id SessionId required
SessionOriginRoot

This origin marks a user-created root session.

SessionPatch

An absent field leaves the current value unchanged. The engine stores the system prompt at creation. The system prompt remains fixed, and the fields borrow their data.

model string optional
reasoning string optional
max_rounds u64 optional
SessionPatchParams

These are the parameters for session.patch.

session_id SessionId required
patch SessionPatch required
SessionPopulationAll

This option selects every session regardless of origin.

SessionPopulationChildren

This option selects the immediate persistent children of one session.

parent_id SessionId required
SessionPopulationTopLevel

This option selects root sessions and forks for user-facing conversations.

SessionQueueParams

These are the parameters for session.queue.

session_id SessionId required
SessionQueueResult

This result lists the queued inputs of one session, oldest first.

items []QueuedInput required
SessionRemoveParams

These are the parameters for session.remove.

session_id SessionId required
cascade_children bool defaulted
SessionRemovedData

This payload describes session.removed.

revision SessionRevision required
session_id SessionId required
SessionResult

This result contains the session after creation, a fork, or a patch.

session Session required
input SessionSendInputResult optional
ChildSession

The live parent tool site and the stable name of a new child.

parent_id SessionId required
parent_message_id MessageId required
parent_part_id PartId required
name string required
ChildCapacity

active u64 required
limit u64 required
SessionRewindParams

These are the parameters for session.rewind.

session_id SessionId required
before_message_id MessageId required
SessionSendInputParams

These are the parameters for session.send_input.

session_id SessionId required
input Input required
SessionSendInputResultQueued

The engine queued the input behind an active turn.

input_id InputId required
reason InputQueueReason required
capacity ChildCapacity optional
SessionSendInputResultStarted

The engine started the input immediately.

input_id InputId required
run_id RunId required
capacity ChildCapacity optional
SessionSummaryChangedData

This payload describes session.summary_changed.

revision SessionRevision required
session Session required
ToolStateCanceled

The user or engine canceled the call.

duration_ms u64 optional
ToolStateChangedData

This payload describes tool.state_changed.

session_id SessionId required
message_id MessageId required
part_id PartId required
state ToolState required
ToolStateCompleted

The tool call completed successfully.

output string required
view []View optional
duration_ms u64 required
ToolStateError

The tool call failed.

error string required
view []View optional
duration_ms u64 required
ToolStatePending

The tool call has not started.

ToolStateRunning

The tool call is active.

started_at_ms u64 required
output string optional
DiffFile

This type describes one file in a diff view.

path string required
old_path string optional
hunks []DiffHunk required
DiffHunk

This type describes one hunk of a unified diff.

old_start u64 required
old_lines u64 required
new_start u64 required
new_lines u64 required
lines []string required
ViewDiff

This view displays a unified diff.

files []DiffFile required
ViewImage

This view displays an image.

source MediaSource required
alt string optional
ViewJson

This view displays JSON text.

text string required
ViewMarkdown

This view displays Markdown text.

text string required
ViewText

This view displays plain text.

text string required
language string optional

Unions

ContentPart

This type describes one part of a message's content.

ContentTextContentImageContentAudioContentFile

MediaSource

This type identifies where media bytes live.

MediaBlob

AuthLoginOutcome

This union reports the terminal outcome of an engine-owned login attempt.

AuthLoginOutcomeSucceededAuthLoginOutcomeCanceledAuthLoginOutcomeFailed

CatalogListResult

This result reports a catalog unchanged since since_rev, or a full catalog snapshot.

CatalogListResultUnchangedCatalogListResultFull

Input

This type accepts raw content or a skill invocation. Its fields borrow their data.

InputContentInputSkill

InputSource

Native code assigns this source; public input has no source field.

ParentInstructionChildReportChildInputCanceledEngineInterruption

InteractionRequest

This union carries one frontend-neutral question.

InteractionConfirmInteractionSelectInteractionInput

InteractionResponse

This union answers a question. Its arm matches the question, or the user canceled.

InteractionConfirmedInteractionValueInteractionValueEmpty

AssistantPart

This type describes one element of an assistant message's content. Its fields borrow their data.

TextPartReasoningPartRedactedReasoningPartToolPart

Message

This union describes a transcript message. Its fields borrow their data.

UserMessageAssistantMessageCompactionMessage

PartFinal

The final metadata for a stopped reasoning part. Tool parts finalize through tool.state_changed.

ReasoningFinalRedactedReasoningFinal

RunOutcome

This union describes the terminal run outcome. The type field selects the outcome.

RunOutcomeTurnRunOutcomeCompactedRunOutcomeSkippedRunOutcomeCanceledRunOutcomeFailed

SessionOrigin

This union records how the engine created the session.

SessionOriginRootSessionOriginChildSessionOriginFork

SessionPopulation

This union selects the session relationships that session.list returns.

SessionPopulationTopLevelSessionPopulationChildrenSessionPopulationAll

SessionSendInputResult

This result says whether the engine started or queued the input.

SessionSendInputResultStartedSessionSendInputResultQueued

ToolState

This union records a tool part's lifecycle state. Its fields borrow their data.

ToolStatePendingToolStateRunningToolStateCompletedToolStateErrorToolStateCanceled

View

A frontend can render this hint natively or ignore it. Its fields borrow their data.

ViewTextViewMarkdownViewJsonViewDiffViewImage

Response

This union carries an RPC response.

ResponseOkResponseError

Enumerations

AgentModelSlot

small
medium
InputQueueReason

session_busy
concurrency_limit
ErrorCode

Workspace execution environment. Advertised engine capability. Numeric JSON-RPC and yuke error codes.

-32602
-32600
-32601
-31000
-31002
-31003
-31004
-31005
-31006
-31009
-31010
-31011
-31012
-31015
-31016
-31017
-31018
-31019
-31020
-31022
-31023
-31024
-31025
-31026
-31027
-31028
-32603
-31021
AuthCredentialKind

api_key
oauth
BroadcastName

session.summary_changed A session's summary metadata changed.
session.activity_changed A session's activity state changed.
session.removed The engine removed a session.
catalog.changed The model catalog changed.
auth.login_finished The engine finished an authentication login flow.
auth.changed Authentication state changed.
notice The engine sent an out-of-band notice.
interaction.requested An extension asks the connected frontend to interact with the user.
message.committed The engine committed a message to a session transcript.
run.started A run started.
run.done A run finished.
config.changed A session's run config changed.
transcript.truncated The engine truncated older transcript messages.
message.started A new streaming message started.
message.discarded The engine discarded an unfinished message.
message.part_added The engine added a part to a message.
message.part_delta The engine sent more content for a message part.
message.part_finalized The engine attached final metadata to a stopped part.
tool.state_changed A tool call's state changed.
tool.output_delta The engine sent more output from a tool.
input.queued The engine queued an input behind the active run.
input.canceled The engine canceled a queued input.
RunErrorCode

Run failure category.

interrupted
provider
protocol
network
timeout
rate_limited
quota_exhausted
auth
unknown_model
unsupported_reasoning
max_rounds
context_overflow
runtime
internal
MethodName

agents.get
agents.update
agents.resolve
agents.set_model
initialize Establish the connection and negotiate the protocol version.
session.list List the sessions.
session.get Read one session with its resident activity, or its durable idle activity.
session.create Create a session.
session.patch Update a session's mutable fields.
session.remove Remove a session.
session.fork Fork a session at a message.
session.compact Compact a session's transcript.
session.rewind Rewind a session to before a message.
session.send_input Send user input to a session.
session.cancel_input Cancel a queued input.
session.queue List the durable queued inputs of a session, oldest first.
session.cancel_run Cancel the active run.
session.history Fetch a page from a session transcript.
session.config Fetch a session's run config.
catalog.list List the model catalog.
catalog.reload Read providers.json again and rebuild the catalog.
auth.list List the local providers and the credential each one holds.
auth.set_api_key Set an API key for a provider.
auth.login Begin a provider login flow.
auth.cancel_login Cancel an active login flow.
auth.remove Remove the credential the engine holds for a provider.
interaction.respond Answer one pending extension interaction.
NoticeLevel

Notice severity level.

info
warn
error
RunKind

turn
compaction
CompactSkipReason

nothing_to_summarize
too_few_messages
StopReason

Assistant stop reason. refusal is a model decline; content_filter is a filter that cut content.

stop
length
content_filter
refusal
tool_calls
canceled
error
unknown
CompactStatus

started
queued
SessionView

Session list view.

active
recent
active_recent
CompactionReason

auto
manual
ProviderProtocol

Provider protocol kind.

anthropic_messages
openai_chat
openai_responses
ProviderState

Report whether a configured provider can serve a request now, and why it cannot.

ready
needs_credential No credential reached the engine.
needs_route A route field is missing, so the engine cannot build a request.
expired The grant expired. The user must authenticate again.
SkillScope

project
personal

Aliases

ProviderId = string

This string identifies a provider.

MessagePartDeltaData = PartDelta

The broadcast uses this shared message-part delta payload.

ToolOutputDeltaData = PartDelta

The broadcast uses this shared tool-output delta payload.

AgentConfigRev = string

This ID uses 64 raw bytes and 128 lowercase hexadecimal characters on the wire.

CatalogRev = [64]u8

ModelId = string

This string identifies a model.

SessionId = [16]u8

This ID uses 16 raw bytes and 32 lowercase hexadecimal characters on the wire.

LoginId = [32]u8

This ID uses 32 raw bytes and 64 lowercase hexadecimal characters on the wire.

RequestId = string

This string identifies a request.

MessageId = u64

This numeric ID identifies a message.

RunId = u64

This numeric ID identifies a run.

InputId = u64

This numeric ID identifies an input.

PartId = u64

This numeric ID identifies a message part.

Seq = u64

This numeric value identifies an event sequence.

SessionRevision = u64

This numeric value identifies a session revision.

ConfigRev = u64

This numeric value identifies a run configuration revision.

InteractionId = u64

This numeric ID correlates a frontend interaction with its answer.

Limits

default_page_size 50
default_session_list_page_size 25
max_activity_retry_message_bytes 1,024
max_api_key_bytes 65,536
max_auth_providers 64
max_auth_user_code_bytes 128
max_catalog_models 4,096
max_error_message_bytes 4,096
max_input_parts 256
max_message_parts 1,024
max_message_string_bytes 1,048,576
max_page_size 500
max_queued_inputs 128
max_reasoning_levels 32
max_session_list_cursor_bytes 256
max_session_list_page_size 100
max_skills 1,024
max_snapshot_configs 501
max_tool_output_stream_bytes 1,048,576
max_view_bytes 1,048,576
max_view_items 1,024
max_views_per_tool 64