> ## Documentation Index
> Fetch the complete documentation index at: https://agentclientprotocol.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Schema

> Schema definitions for the Agent Client Protocol

> [!NOTE]
>
> This schema file is generated in this repository at
> [`schema/v2/schema.json`](https://github.com/agentclientprotocol/agent-client-protocol/blob/main/schema/v2/schema.json).
> Each [`schema-v2`
> release](https://github.com/agentclientprotocol/agent-client-protocol/releases?q=schema-v2)
> has it as the `schema.json` download.

## Agent

Defines the requests and notifications that Clients send to Agents. Some are optional.

Agents are programs that use generative AI to autonomously modify code. They handle
requests from Clients and execute tasks using language models and tools.

### auth/login

Authenticates the Client using the specified authentication method.

Agents MUST support this method when their `initialize` response included
a non-empty `authMethods` list. Clients MUST call this method only
with a method whose type defines a protocol-driven login flow, and MUST NOT
call it when `authMethods` was omitted or empty.

Called when the Agent requires authentication before allowing session creation.
The Client provides the authentication method ID that was advertised during initialization.

After successful authentication, the Client can proceed to create sessions with
`session/new` without receiving a `-32000` (Authentication required) error.

See protocol docs: [Authentication](https://agentclientprotocol.com/protocol/v2/authentication.md)

#### LoginAuthRequest

Request parameters for the `auth/login` method.

Specifies which authentication method to use.

Agents MUST support this method when their `initialize` response included
a non-empty `authMethods` list. Clients MUST NOT call this method
when `authMethods` was omitted or empty.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**methodId** `[AuthMethodId](#authmethodid)` *required*

The ID of the authentication method to use.
Must be one of the methods advertised in the initialize response.

#### LoginAuthResponse

Response to the `auth/login` method.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

### auth/logout

Logs out of the current authenticated state.

Agents MUST support this method when their `initialize` response included
a non-empty `authMethods` list. Clients MUST NOT call this method
when `authMethods` was omitted or empty.

After a successful logout, authentication-gated requests require the
Client to complete an advertised authentication flow again. There is no
guarantee about the behavior of already running sessions.

#### LogoutAuthRequest

Request parameters for the `auth/logout` method.

Terminates the current authenticated session.

Agents MUST support this method when their `initialize` response included
a non-empty `authMethods` list. Clients MUST NOT call this method
when `authMethods` was omitted or empty.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

#### LogoutAuthResponse

Response to the `auth/logout` method.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

### initialize

Establishes the connection with a Client and negotiates protocol capabilities.

This method is called at the beginning of the connection, before any other request, to:

* Negotiate the protocol version to use
* Exchange capability information between Client and Agent
* Determine available authentication methods

The Client MAY repeat it before its first other request. The latest successful
`initialize` is authoritative.

The Agent responds with its supported protocol version and capabilities.

See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/v2/initialization.md)

#### InitializeRequest

Request parameters for the initialize method.

Sent by the Client to establish connection and negotiate capabilities.

See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/v2/initialization.md)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**capabilities** `[ClientCapabilities](#clientcapabilities)`

Capabilities supported by the Client.

* Default: `{}`

**info** `[Implementation](#implementation)` *required*

Information about the implementation sending this initialize request.

**protocolVersion** `[ProtocolVersion](#protocolversion)` *required*

The latest protocol version supported by the Client.

#### InitializeResponse

Response to the `initialize` method.

Contains the negotiated protocol version and Agent capabilities.

See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/v2/initialization.md)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**authMethods** `[AuthMethod\[\]](#authmethod)`

Authentication methods supported by the Agent.

Optional. Omitted or empty means the Agent does not advertise the
`auth/login` and `auth/logout` methods. Supplying one or more methods means
the Agent MUST support both `auth/login` and `auth/logout`.

**capabilities** `[AgentCapabilities](#agentcapabilities)`

Capabilities supported by the Agent.

* Default: `{}`

**info** `[Implementation](#implementation)` *required*

Information about the implementation sending this initialize response.

**protocolVersion** `[ProtocolVersion](#protocolversion)` *required*

The highest protocol version supported by the Agent that is at or below
the version requested by the Client. If no such version exists,
initialization fails with error code -32022.

The Client MUST check that it supports this version and SHOULD disconnect
if it does not.

### session/cancel

Cancels the named session's active foreground work and earlier prompts not yet inserted.
The Agent MUST answer those uninserted prompts with `-32800`. Inserted prompts still
succeed with their `messageId`. This cancellation does not cover later submissions.

Work in the latest `background` list is not covered and keeps running. The
Agent MAY stop background activity it does not list.

Upon receiving this notification, the Agent SHOULD stop all language model
requests and all tool call invocations of the cancelled foreground work as soon
as possible.

The Agent MUST stop waiting for pending `session/request_permission` requests of
the cancelled work and treat them as not approved. It MUST cancel each of them
with `$/cancel_request`.

When cancellation stops active foreground work, the Agent MUST send that work's
pending updates, then an idle `state_update` with `stopReason: "cancelled"`,
before starting new foreground work in the same session. A later prompt can be
inserted and acknowledged before that idle update, or held with its response
pending. Listed background work can report updates before or after it.
No additional idle update is required if no foreground work was active.

After cancellation completes, the Agent SHOULD ignore late answers rather
than use them to resume the cancelled work.

Agents MUST catch errors caused by aborting cancelled work and report the
`cancelled` stop reason, not `error`.

See protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#cancellation)

#### CancelSessionNotification

Cancels the named session's active foreground work and earlier prompts not yet inserted.
It does not cancel later submissions or work in the session's latest `background` list.

See protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#cancellation)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The ID of the session whose foreground work to cancel.

### session/close

Closes an active session and frees up any resources associated with it.

The Agent MUST cancel any ongoing work as if `session/cancel` was called, stop the
session's background work, and then free the resources associated with the session.

#### CloseSessionRequest

Request parameters for closing an active session.

The Agent MUST cancel any ongoing work related to the session as if `session/cancel`
was called, then free the resources associated with the session. Unlike `session/cancel`,
closing also stops the session's background work. After the close response, the Agent
sends no notifications or requests for the session on that connection. It still
answers `session/prompt` requests that were pending.

Closing a session that does not exist or is not active SHOULD succeed, and Clients SHOULD
treat a `-32002` response as a successful close.

When closing cancels active foreground work, the Agent MUST send the final
updates for that work and the idle `state_update` with `stopReason: "cancelled"`
before responding successfully to `session/close`. Closing an idle session
does not itself require another idle update.

Closing also cancels pending `session/prompt` requests whose messages have not
been inserted, including held prompts. If closing prevents a prompt's user message from being inserted, the
Agent MUST answer that request with `-32800` (Request cancelled). If the message
has already been inserted, the Agent MUST respond successfully with its
`messageId`. Prompt responses need not precede the close response.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The ID of the session to close.

#### CloseSessionResponse

Response from closing a session.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

### session/delete

Deletes an existing session from `session/list`.

This method is only available if the Agent advertises the `session.delete` capability.

#### DeleteSessionRequest

Request parameters for deleting an existing session from `session/list`.

Only available if the Agent supports the `session.delete` capability.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The ID of the session to delete.

#### DeleteSessionResponse

Response from deleting a session.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

### session/list

Lists existing sessions known to the Agent.

The Agent returns metadata about sessions, with optional filtering and pagination.

#### ListSessionsRequest

Request parameters for listing existing sessions.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**cursor** `[SessionListCursor](#sessionlistcursor) | null`

Opaque cursor token from a previous response's nextCursor field for cursor-based pagination

Omitted and `null` are equivalent and mean the first page is requested.

**cwd** `[AbsolutePath](#absolutepath) | null`

Filter sessions by working directory. Must be an absolute path.

Only sessions whose `cwd` is this same directory match. Subdirectories and
`additionalDirectories` don't. Agents MAY normalize paths when comparing.

Omitted and `null` are equivalent and mean sessions are not filtered by working directory.
Clients keep the same value when following `nextCursor`.

#### ListSessionsResponse

Response from listing sessions.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**nextCursor** `[SessionListCursor](#sessionlistcursor) | null`

Opaque cursor token. If present, pass this in the next request's cursor parameter
to fetch the next page. Omitted and `null` are equivalent and mean there are no more
results. An empty string is a valid cursor, not the end of results.

**sessions** `[SessionInfo\[\]](#sessioninfo)` *required*

Array of session information objects.

Agents SHOULD return the sessions with the most recent activity first.

### session/new

Creates a new conversation session with the Agent.

Sessions represent independent conversation contexts with their own history and state.

The Agent:

* Creates a new session context
* Connects to the specified MCP servers
* Returns a unique session ID for future requests

Fails with `-32000` (Authentication required) if the Agent requires authentication.

See protocol docs: [Session Setup](https://agentclientprotocol.com/protocol/v2/session-setup.md)

#### NewSessionRequest

Request parameters for creating a new session.

See protocol docs: [Creating a Session](https://agentclientprotocol.com/protocol/v2/session-setup.md#creating-a-session)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**additionalDirectories** `[AbsolutePath\[\]](#absolutepath)`

Additional workspace roots for this session. Each path MUST be absolute.

These expand the session's workspace scope without changing `cwd`, which
remains the base for relative paths. When omitted or empty, no
additional roots are activated for the new session.

**cwd** `[AbsolutePath](#absolutepath)` *required*

The working directory for this session. Must be an absolute path.

**mcpServers** `[McpServer\[\]](#mcpserver)`

List of MCP (Model Context Protocol) servers for the Agent to connect to.

**systemPrompt** `[SystemPrompt](#systemprompt) | null`

System-level instructions for the new session.

Optional. Omitted and `null` are equivalent and mean the Agent uses its
own default instructions. Clients MUST only send this when the Agent
advertises `session.systemPrompt`.

#### NewSessionResponse

Response from creating a new session.

New sessions default to `idle` until a state update reports otherwise.
Updates may arrive before or after this response. Clients MUST NOT overwrite
an already-reported state when the response arrives.

An Agent whose new session is not `idle` MUST send the session's
`state_update` after this response.

See protocol docs: [Creating a Session](https://agentclientprotocol.com/protocol/v2/session-setup.md#creating-a-session)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**availableCommands** `[AvailableCommand\[\]](#availablecommand)`

Initial commands the Agent can execute in this session.

Optional. Omitted or empty means no initial commands are advertised.
Senders MUST use an array, not `null`.
Later `available_commands_update` notifications replace this list.

**configOptions** `[SessionConfigOption\[\]](#sessionconfigoption)`

Initial session configuration options.

Optional. Omitted or empty means no config options are advertised.
Senders MUST use an array, not `null`.
Later `config_option_update` notifications replace this list.

**sessionId** `[SessionId](#sessionid)` *required*

Unique identifier for the created session.

Used in all subsequent requests for this conversation.

### session/prompt

Processes a user prompt within a session.

Acceptance means adding a logical user message with an ID and a position
relative to other messages in the ACP conversation, not receipt or queueing.
The Agent MUST return the inserted message's ID without waiting for
processing to finish.

The Agent reports the user message with the same ID through `session/update`.
This notification can arrive before or after the response, and MUST NOT
precede insertion. Processing state, output, tool calls, and completion are
also reported through session updates.

An error response means the user message was not inserted. Once it is
inserted, the Agent MUST NOT answer with an error, even if the work fails
before the response is sent. It ends that work with the `error` stop reason.

A rejected submission produces no user-message updates. Foreground state
follows its normal lifecycle independently of the request outcome:
`running` may precede insertion, and rejection alone does not imply `idle`.

See protocol docs: [Prompt Lifecycle](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md)

#### PromptRequest

Request parameters for sending a user prompt to the Agent.

Contains the user's message and any additional context.

See protocol docs: [User Message](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#1-user-message)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**idempotencyKey** `[IdempotencyKey](#idempotencykey) | null`

Identifies one prompt submission within this session.

Optional. Omitted and `null` are equivalent and mean no key. The Agent then handles
the prompt without duplicate detection.

The Client generates the key and sends the same key on every attempt for the same
submission. Agents that advertise `capabilities.session` MUST support the key.
A retry of a recorded insertion returns the original `messageId` without inserting
another message.

The Agent MUST recognize the key for as long as it retains the message, including
across connections and Agent restarts. For a live-only message, it MUST recognize
the key while the session stays active on a connection. A retry with a forgotten
key is a new submission, even immediately after reconnecting. If a duplicate
would matter and the Client cannot rule it out, it SHOULD NOT retry automatically.

When present, the value is an opaque, case-sensitive string of 1 to 255 characters.
Agents MUST reject any other value with `-32602` (Invalid params) and MUST NOT treat
it as omitted.

See protocol docs: [Retrying a prompt](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#retrying-a-prompt)

**prompt** `[ContentBlock\[\]](#contentblock)` *required*

The blocks of content that compose the user's message.

As a baseline, the Agent MUST support `text` and `resource_link` content blocks,
while other variants are optionally enabled via `PromptCapabilities`.

The Client MUST adapt its interface according to `PromptCapabilities`.

The Client MAY include referenced pieces of context as either
`resource` or `resource_link` content blocks.

When available, `resource` is preferred
as it avoids extra round-trips and allows the message to include
pieces of context from sources the Agent might not have access to.

Clients MUST NOT send an empty array. Agents MAY reject one with `-32602` without
inserting it.

**sessionId** `[SessionId](#sessionid)` *required*

The ID of the session to send this user message to

#### PromptResponse

Response acknowledging that a user prompt was inserted into the ACP conversation.

This response does not indicate that the prompt was merely received or held, nor that the
Agent has finished processing it.
Processing and completion are reported through `state_update` session updates.

Insertion is the logical addition of a user message with a message ID and a position
relative to other messages in the ACP conversation.

See protocol docs: [Prompt Accepted](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#2-prompt-accepted)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**messageId** `[MessageId](#messageid)` *required*

Identifies the user message inserted into the ACP conversation.

Required and non-null. Omission and explicit `null` are both invalid.

The corresponding user-message session update carries this same identifier and may arrive
before or after this response. Agents MUST echo the message during the live session, but are
not required to retain it. If retained and replayed, the message keeps this identifier.

### session/resume

Resumes an existing session.

The Agent resumes the session context so that the conversation
can continue. If `replayFrom` is set, the Agent replays
retained conversation history before responding.

#### ResumeSessionRequest

Request parameters for resuming an existing session.

Resumes an existing session and optionally replays retained conversation
history according to `replayFrom`.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**additionalDirectories** `[AbsolutePath\[\]](#absolutepath)`

Additional workspace roots to activate for this session. Each path MUST be absolute.

When omitted or empty, no additional roots are activated. When non-empty,
this is the complete resulting additional-root list for the resumed
session. It MAY differ from any previously used or reported list as long as
the request `cwd` matches the session's `cwd`.

**cwd** `[AbsolutePath](#absolutepath)` *required*

The working directory for this session. Must be an absolute path.

Clients MUST send the session's working directory. Agents MAY reject a different directory
with `-32602`, and MAY normalize paths when comparing.

**mcpServers** `[McpServer\[\]](#mcpserver)`

List of MCP servers to connect to for this session.

The complete set of Client-provided servers. Omitted and `[]` mean none. Agents SHOULD
NOT restore servers from earlier requests.

**replayFrom** `[ReplayFrom](#replayfrom) | null`

Inclusive cursor describing where conversation replay begins.

Optional. Omitted and `null` are equivalent, and the Agent MUST NOT replay
previous conversation history. Replay cursors are inclusive:
replay includes the position identified by the cursor. Supplying
`\{ "type": "start" \}` means the Agent MUST replay all retained
conversation history before responding.

Agents MUST reject unsupported cursor types or malformed cursor values
with `-32602` (Invalid params), rather than substituting another cursor
or resuming without replay.

**sessionId** `[SessionId](#sessionid)` *required*

The ID of the session to resume.

**systemPrompt** `[SystemPrompt](#systemprompt) | null`

System-level instructions for the resumed session.

Optional. Omitted and `null` are equivalent. The Agent MAY then keep a
system prompt it stored with the session or use its default instructions.
Clients MUST only send this when the Agent advertises
`session.systemPrompt`, and SHOULD send the same value they used when the
session was created.

#### ResumeSessionResponse

Response from resuming an existing session.

The Agent MUST send a current `state_update` after any requested history
replay and before this response, even without replay. The update reports
foreground state after resuming. The response alone does not imply `idle`.

See protocol docs: [Current-State Synchronization](https://agentclientprotocol.com/protocol/v2/session-setup.md#current-state-synchronization)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**availableCommands** `[AvailableCommand\[\]](#availablecommand)`

Current commands the Agent can execute in this session.

Optional. Omitted or empty means no initial commands are advertised.
Senders MUST use an array, not `null`.
Later `available_commands_update` notifications replace this list.

**configOptions** `[SessionConfigOption\[\]](#sessionconfigoption)`

Current session configuration options.

Optional. Omitted or empty means no config options are advertised.
Senders MUST use an array, not `null`.
Later `config_option_update` notifications replace this list.

### session/set\_config\_option

Sets the current value for a session configuration option.

#### SetSessionConfigOptionRequest

Request parameters for setting a session configuration option.

Agents MUST support this method for any session the Client created or resumed
where they advertise config options. For a child session, the child's
capabilities decide whether the Client can send it, and none defined today
permits it.
Agents MUST reject an unknown `configId` or invalid value with `-32602` and leave the
configuration unchanged.

See protocol docs: [Session Config Options](https://agentclientprotocol.com/protocol/v2/session-config-options.md#setting-a-config-option)

**Type:** Union

**Shared properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**configId** `[SessionConfigId](#sessionconfigid)` *required*

The ID of the configuration option to set.

**sessionId** `[SessionId](#sessionid)` *required*

The ID of the session to set the configuration option for.

**Variants:**

**id** `object`

A `SessionConfigValueId` string value (`type: "id"`).

**Properties**

**type** `string` *required*

The discriminator value. Must be `"id"`.

**value** `[SessionConfigValueId](#sessionconfigvalueid)` *required*

The value ID.

**boolean** `object`

A boolean value (`type: "boolean"`).

**Properties**

**type** `string` *required*

The discriminator value. Must be `"boolean"`.

**value** `boolean` *required*

The boolean value.

**other** `object`

Custom or future session configuration option value payload.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Agents MUST reject a `session/set_config_option` request with a value type
they do not support with `-32602`.

**Properties**

**type** `string` *required*

Custom or future session configuration option value type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

**value** `any` *required*

Raw value payload for the custom or future value type.

#### SetSessionConfigOptionResponse

Response to `session/set_config_option` method.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**configOptions** `[SessionConfigOption\[\]](#sessionconfigoption)` *required*

The full set of configuration options and their current values.

### terminal/cancel

Stops one terminal's process without cancelling the rest of the session's work.

This method is only available while the terminal advertises `capabilities.cancel`.
The response means the Agent accepted the cancellation. A `terminal_update` with
`exitStatus` confirms it.

#### CancelTerminalRequest

Request parameters for cancelling one terminal.

Clients MUST NOT send it unless the terminal currently advertises `capabilities.cancel`.

The Agent responds once it has accepted the cancellation. The response does not mean
the work has stopped. The Agent confirms it with a `terminal_update` that sets
`exitStatus`. Cancelling stops the process but does not release the terminal, and does
not change the status of a tool call that references it.

The Agent responds with `-32602` if the terminal is unknown, has already exited, or is not
cancellable. Cancelling a terminal does not change the foreground state by itself.

See protocol docs: [Cancelling Terminals](https://agentclientprotocol.com/protocol/v2/tool-calls.md#cancelling-terminals)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The ID of the session that owns the terminal.

**terminalId** `[TerminalId](#terminalid)` *required*

The ID of the terminal to cancel.

#### CancelTerminalResponse

Response from cancelling a terminal.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

### tool\_call/cancel

Cancels one tool call without cancelling the rest of the session's work.

This method is only available while the tool call advertises `capabilities.cancel`.
The response means the Agent accepted the cancellation. A final `tool_call_update`
confirms it.

#### CancelToolCallRequest

Request parameters for cancelling one tool call.

Clients MUST NOT send it unless the tool call currently advertises `capabilities.cancel`.

The Agent responds once it has accepted the cancellation. The response does not mean
the work has stopped. The Agent confirms it with a `tool_call_update` to a final
status: normally `cancelled`, or `completed` or `failed` if the work finished first.

The Agent responds with `-32602` if the tool call is unknown, already final, or not
cancellable. Cancelling a tool call does not change the foreground state by itself.

See protocol docs: [Cancelling Tool Calls](https://agentclientprotocol.com/protocol/v2/tool-calls.md#cancelling-tool-calls)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The ID of the session that owns the tool call.

**toolCallId** `[ToolCallId](#toolcallid)` *required*

The ID of the tool call to cancel.

#### CancelToolCallResponse

Response from cancelling a tool call.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## Client

Defines the requests and notifications that Agents send to Clients. Some are optional.

Clients are typically code editors (IDEs, text editors) that provide the interface
between users and AI agents. They manage the environment, handle user interactions,
and control access to resources.

### elicitation/complete

Notification that a URL-based elicitation has completed.

See protocol docs: [Elicitation](https://agentclientprotocol.com/protocol/v2/elicitation.md#url-completion)

#### CompleteElicitationNotification

Notification sent by the Agent when a URL-based elicitation is complete.

This notification is not a foreground state update.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**elicitationId** `[ElicitationId](#elicitationid)` *required*

The ID of the elicitation that completed.

### elicitation/create

Requests structured user input via a form or URL.

See protocol docs: [Elicitation](https://agentclientprotocol.com/protocol/v2/elicitation.md)

#### CreateElicitationRequest

Request from the Agent to elicit structured user input.

The Agent sends this to the Client to request information from the user,
either via a form or by directing them to a URL.
Elicitations are tied to a session (optionally a tool call) or a request.

A session-scoped request follows the aggregate foreground-state contract:
Agents SHOULD report `requires_action` when the whole foreground workflow is
blocked on user action. Once reported, they MUST report `running` when progress
resumes, or `idle` if work ends without resuming. Independent background requests
and request-scoped elicitations do not themselves change session state.
Accepting a URL does not mean the external interaction completed.

When an Agent stops waiting for an elicitation because its work was cancelled,
it MUST cancel the request with `$/cancel_request`.
The request's scope alone does not establish that dependency.

See protocol docs: [Elicitation](https://agentclientprotocol.com/protocol/v2/elicitation.md)

**Type:** Union

**Shared properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**message** `string` *required*

A plain-text message explaining to the user what the Agent needs and why.

**Variants:**

**form** `object`

Form-based elicitation where the Client renders a form from the provided schema.

**Properties**

**mode** `string` *required*

The discriminator value. Must be `"form"`.

**requestedSchema** `[ElicitationSchema](#elicitationschema)` *required*

A JSON Schema describing the form fields to present to the user.

**Alternatives (`oneOf`):**

**Session**

Tied to a session, optionally to a specific tool call within that session.

**Properties**

**sessionId** `[SessionId](#sessionid)` *required*

The session this elicitation is tied to.

**toolCallId** `[ToolCallId](#toolcallid) | null`

Optional tool call within the session.

Optional. Omitted and `null` are equivalent and mean the elicitation is scoped to the
session without a specific tool call.

**Request**

Tied to a specific JSON-RPC request outside of a session
(e.g., during auth/configuration phases before any session is started).

**Properties**

**requestId** `[RequestId](#requestid)` *required*

The pending Client-to-Agent request this elicitation is tied to.

**url** `object`

URL-based elicitation where the Client directs the user to a URL.

**Properties**

**elicitationId** `[ElicitationId](#elicitationid)` *required*

The unique identifier for this elicitation.

**mode** `string` *required*

The discriminator value. Must be `"url"`.

**url** `string` *required*

The URL to direct the user to.

* Format: `uri`

**Alternatives (`oneOf`):**

**Session**

Tied to a session, optionally to a specific tool call within that session.

**Properties**

**sessionId** `[SessionId](#sessionid)` *required*

The session this elicitation is tied to.

**toolCallId** `[ToolCallId](#toolcallid) | null`

Optional tool call within the session.

Optional. Omitted and `null` are equivalent and mean the elicitation is scoped to the
session without a specific tool call.

**Request**

Tied to a specific JSON-RPC request outside of a session
(e.g., during auth/configuration phases before any session is started).

**Properties**

**requestId** `[RequestId](#requestid)` *required*

The pending Client-to-Agent request this elicitation is tied to.

**other** `object`

Custom or future elicitation mode.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Clients that do not understand this mode SHOULD preserve the raw payload
when storing, replaying, proxying, or forwarding elicitation requests.
They MUST NOT render it as a known elicitation mode.

**Properties**

**mode** `string` *required*

Custom or future elicitation mode.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

**Alternatives (`oneOf`):**

**Session**

Tied to a session, optionally to a specific tool call within that session.

**Properties**

**sessionId** `[SessionId](#sessionid)` *required*

The session this elicitation is tied to.

**toolCallId** `[ToolCallId](#toolcallid) | null`

Optional tool call within the session.

Optional. Omitted and `null` are equivalent and mean the elicitation is scoped to the
session without a specific tool call.

**Request**

Tied to a specific JSON-RPC request outside of a session
(e.g., during auth/configuration phases before any session is started).

**Properties**

**requestId** `[RequestId](#requestid)` *required*

The pending Client-to-Agent request this elicitation is tied to.

#### CreateElicitationResponse

Response from the Client to an elicitation request.

**Type:** Union

**Shared properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**Variants:**

**accept** `object`

The user accepted and provided content.

**Properties**

**action** `string` *required*

The discriminator value. Must be `"accept"`.

**content** `object | null`

The user-provided content, if any, as an object matching the requested schema.

Omitted and `null` are equivalent and mean no content is provided.

**decline** `object`

The user declined the elicitation.

**Properties**

**action** `string` *required*

The discriminator value. Must be `"decline"`.

**cancel** `object`

The elicitation was cancelled.

**Properties**

**action** `string` *required*

The discriminator value. Must be `"cancel"`.

**other** `object`

Custom or future elicitation action.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Agents that do not understand this action SHOULD preserve the raw
payload when storing, replaying, proxying, or forwarding elicitation
responses, and otherwise MUST handle it as `cancel`.

**Properties**

**action** `string` *required*

Custom or future elicitation action.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

### session/request\_permission

Requests permission from the user for an operation.

Called by the Agent when it needs user authorization before executing
a potentially sensitive operation. The Client presents the options
to the user and returns their decision.

After `session/cancel`, the Agent stops waiting for requests of the cancelled
foreground work and MUST cancel them with `$/cancel_request`. The Client
answers a cancelled request with the `cancelled` outcome.

If the selected option has kind `reject_once` or `reject_always`, the Agent MUST NOT
perform the requested operation.

An error response is not approval, and neither is a connection that ends
before the Client answers. The Agent MUST NOT treat either as approval.

See protocol docs: [Requesting Permission](https://agentclientprotocol.com/protocol/v2/tool-calls.md#requesting-permission)

#### RequestPermissionRequest

Request for user permission to proceed with an operation.

Sent when the Agent needs authorization before performing a sensitive operation.

See protocol docs: [Requesting Permission](https://agentclientprotocol.com/protocol/v2/tool-calls.md#requesting-permission)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**description** `string | null`

Optional human-readable explanation of why permission is needed.
May contain Markdown.

This text is specific to the permission prompt and does not update any
subject's displayed content. Omitted and `null` are equivalent and mean no separate
permission description was provided.

**options** `[PermissionOption\[\]](#permissionoption)` *required*

Available permission options for the user to choose from.
Must contain at least one option.

**sessionId** `[SessionId](#sessionid)` *required*

The session ID for this request.

**subject** `[RequestPermissionSubject](#requestpermissionsubject) | null`

Optional structured context about the operation requiring permission.

Omitted and `null` are equivalent and mean no structured subject was provided.

**title** `string` *required*

Human-readable title shown with the permission prompt, in plain text.

This title is specific to the permission prompt and does not update any
subject's displayed title.

#### RequestPermissionResponse

Response to a permission request.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**outcome** `[RequestPermissionOutcome](#requestpermissionoutcome)` *required*

The user's decision on the permission request.

### session/update

Handles session update notifications from the Agent.

This is a notification endpoint (no response expected) that receives
updates about session activity, including message updates, message chunks,
tool calls, and execution plans.

Clients SHOULD continue accepting tool call updates after `session/cancel`.
Final updates for the cancelled foreground work precede the idle `state_update`
with `stopReason: "cancelled"`. Updates for surviving background work can follow it.

See protocol docs: [Agent Reports Output](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#3-agent-reports-output)

#### UpdateSessionNotification

Notification containing a session update from the Agent.

Agents can send session updates at any point while the session exists.

See protocol docs: [Agent Reports Output](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#3-agent-reports-output)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The ID of the session this update pertains to.

**update** `[SessionUpdate](#sessionupdate)` *required*

The actual update content.

## Protocol level

Defines the notifications that both Agents and Clients can send.

Their methods start with `$/`. Acting on one is optional, because it might not be
implementable in every Client or Agent. For example, a single-threaded synchronous
implementation can do little to react to a `$/cancel_request` notification. An Agent
or Client **MAY** ignore a `$/` notification it cannot act on.

### \$/cancel\_request

Cancels an ongoing request.

This is a notification sent by the side that sent a request to cancel that request.

Upon receiving this notification, the receiver:

1. MAY cancel the corresponding request activity and all nested activities
2. MAY send any pending notifications.
3. MUST still send a response for the original request. If the request already finished
   or is not cancelled, that is its normal response. If it is cancelled, it is either the
   method's defined cancellation result (for example an inserted `session/prompt`, or a
   `cancelled` permission outcome) or an error with code `-32800` (Request cancelled).

Receivers MUST ignore this notification for an unknown or already-answered request ID,
and MUST NOT send a second response for it.

See protocol docs: [Request Cancellation](https://agentclientprotocol.com/protocol/v2/cancellation.md)

#### CancelRequestNotification

Notification to cancel an ongoing request.

See protocol docs: [Request Cancellation](https://agentclientprotocol.com/protocol/v2/cancellation.md)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**requestId** `[RequestId](#requestid)` *required*

The ID of the request to cancel: a request that the sender of this notification issued.
Receivers match it only against requests they received from that sender.

## AbsolutePath

An absolute filesystem path used by the protocol.

Uses the native syntax of the machine the Agent runs on, such as `/home/user/project`,
`C:\Users\user\project`, or `\\server\share\project`. It is not a URI.

**Type:** `string`

## AgentAuthCapabilities

Authentication-related extension capabilities supported by the Agent.

This object does not advertise support for `auth/login` or `auth/logout`.
Those methods are advertised by a non-empty `authMethods` list in the
`initialize` response.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## AgentCapabilities

Capabilities supported by the Agent.

Advertised during initialization to inform the Client about
available features and content types.

See protocol docs: [Agent Capabilities](https://agentclientprotocol.com/protocol/v2/initialization.md#agent-capabilities)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**auth** `[AgentAuthCapabilities](#agentauthcapabilities) | null`

Authentication-related extension capabilities supported by the Agent.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise any
authentication-related extensions. This field does not advertise support
for `auth/login` or `auth/logout`. Those methods are advertised by a
non-empty `authMethods` list in the `initialize` response.

**session** `[SessionCapabilities](#sessioncapabilities) | null`

Session capabilities supported by the Agent.

Optional. Omitted and `null` are equivalent and mean the Agent does not support the
`session/*` methods. Supplying `\{\}` means the Agent supports the
baseline session methods: `session/new`, `session/list`,
`session/resume`, `session/close`, `session/prompt`, `session/cancel`,
and `session/update`.

## AgentMessage

An Agent message upsert.

Only `messageId` is required. `content` has patch semantics:
an omitted field leaves existing message content unchanged, `null` clears the
value, and a concrete array replaces the previous value. For a new
`messageId`, omitted `content` starts empty. `content` is replaced as a
whole array. Send `[]` or `null` to clear it.

Message updates and chunks are applied in the order they are received. When
an `agent_message` update includes `content`, that array replaces any
content previously accumulated for the message, including content from
earlier chunks. Later chunks with the same `messageId` append to the current
content.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**content** `[ContentBlock\[\]](#contentblock) | null`

Complete replacement content for this message.

**messageId** `[MessageId](#messageid)` *required*

A unique identifier for the message.

## AgentThought

An Agent thought or reasoning message upsert.

Only `messageId` is required. `content` has patch semantics:
an omitted field leaves existing thought content unchanged, `null` clears the
value, and a concrete array replaces the previous value. For a new
`messageId`, omitted `content` starts empty. `content` is replaced as a
whole array. Send `[]` or `null` to clear it.

Message updates and chunks are applied in the order they are received. When
an `agent_thought` update includes `content`, that array replaces any
content previously accumulated for the thought, including content from
earlier chunks. Later chunks with the same `messageId` append to the current
content.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**content** `[ContentBlock\[\]](#contentblock) | null`

Complete replacement content for this thought message.

**messageId** `[MessageId](#messageid)` *required*

A unique identifier for the thought message.

## Annotations

Optional annotations for the Client. The Client can use annotations to inform how objects are used or displayed

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**audience** `[Role\[\]](#role) | null`

Intended recipients for this content, such as the user or assistant.

Omitted and `null` are equivalent and mean no audience is specified.

**lastModified** `string | null`

Timestamp indicating when the underlying resource was last modified.

Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z"), as in MCP.

Omitted and `null` are equivalent and mean the modification time is not reported.

**priority** `number | null`

Relative importance of this content when Clients choose what to surface, from 0 (least
important) to 1 (most important).

Omitted and `null` are equivalent and mean no priority is specified.

| Constraint | Value |
| - | - |
| Minimum | `0` |
| Maximum | `1` |

## AudioContent

Audio provided to or from an LLM.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**annotations** `[Annotations](#annotations) | null`

Optional annotations that help Clients decide how to display or route this content.

Omitted and `null` are equivalent and mean no annotations are provided.

**data** `string` *required*

Base64-encoded media payload.

* Content encoding: `base64`

**mimeType** `[MediaType](#mediatype)` *required*

MIME type describing the encoded media payload.

## AuthMethod

Describes an available authentication method.

The `type` field acts as the discriminator in the serialized JSON form.

**Type:** Union

**terminal** `object`

Client runs the configured Agent program as a separate interactive
process, without passing this method to `auth/login`.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**args** `"string"[]`

Additional arguments to append to the configured Agent invocation for terminal auth.

**description** `string | null`

Optional human-readable description of this authentication method.
May contain Markdown.

Omitted and `null` are equivalent and mean no description is provided.

**env** `[EnvVariable\[\]](#envvariable)`

Additional environment variables to set on the configured Agent invocation for terminal auth.
Names SHOULD be unique, and otherwise the last entry wins. These values override
same-named variables in the base launch configuration.

**methodId** `[AuthMethodId](#authmethodid)` *required*

Unique identifier for this authentication method.

**name** `string` *required*

Human-readable name of the authentication method, shown to users as plain text.

**type** `string` *required*

The discriminator value. Must be `"terminal"`.

**agent** `object`

Agent handles authentication itself through `auth/login`.

The `type` discriminator value is `agent`.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**description** `string | null`

Optional human-readable description of this authentication method.
May contain Markdown.

Omitted and `null` are equivalent and mean no description is provided.

**methodId** `[AuthMethodId](#authmethodid)` *required*

Unique identifier for this authentication method.

**name** `string` *required*

Human-readable name of the authentication method, shown to users as plain text.

**type** `string` *required*

The discriminator value. Must be `"agent"`.

**other** `object`

Custom or future authentication method.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Clients that do not understand this method type SHOULD preserve the raw
payload when storing, replaying, proxying, or forwarding initialization
data, and otherwise ignore the method or display it generically.

**Properties**

**methodId** `[AuthMethodId](#authmethodid)` *required*

Unique identifier for this authentication method.

**name** `string` *required*

Human-readable name of the authentication method, shown to users as plain text.

**type** `string` *required*

Custom or future authentication method type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## AuthMethodAgent

Agent handles authentication itself through `auth/login`.

The `type` discriminator value is `agent`.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**description** `string | null`

Optional human-readable description of this authentication method.
May contain Markdown.

Omitted and `null` are equivalent and mean no description is provided.

**methodId** `[AuthMethodId](#authmethodid)` *required*

Unique identifier for this authentication method.

**name** `string` *required*

Human-readable name of the authentication method, shown to users as plain text.

## AuthMethodId

Typed identifier used for auth method values on the wire.

**Type:** `string`

## AuthMethodTerminal

Terminal-based authentication method.

The Client runs the configured Agent program as a separate interactive
process for the user to authenticate via a TUI. Agents MUST advertise this
method only when the Client enabled its terminal authentication capability.
A zero exit status signals success. Any other termination signals failure.
The Client MUST NOT pass this method to `auth/login`.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**args** `"string"[]`

Additional arguments to append to the configured Agent invocation for terminal auth.

**description** `string | null`

Optional human-readable description of this authentication method.
May contain Markdown.

Omitted and `null` are equivalent and mean no description is provided.

**env** `[EnvVariable\[\]](#envvariable)`

Additional environment variables to set on the configured Agent invocation for terminal auth.
Names SHOULD be unique, and otherwise the last entry wins. These values override
same-named variables in the base launch configuration.

**methodId** `[AuthMethodId](#authmethodid)` *required*

Unique identifier for this authentication method.

**name** `string` *required*

Human-readable name of the authentication method, shown to users as plain text.

## AvailableCommand

A command the Agent advertises to the Client.

The `type` field acts as the discriminator in the serialized JSON form.

**Type:** Union

**command** `object`

A slash command the user can invoke by including it in a prompt.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**description** `string` *required*

Human-readable description of what the command does.
May contain Markdown.

**input** `[AvailableCommandInput](#availablecommandinput) | null`

Input for the command if required

Omitted and `null` are equivalent and mean the command takes no input.

**name** `string` *required*

Plain-text command name without the leading `/`, such as `create_plan` or `research_codebase`.

MUST NOT contain whitespace and MUST be unique within the command list.

**type** `string` *required*

The discriminator value. Must be `"command"`.

**other** `object`

Custom or future command kind.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Clients that do not understand this command type SHOULD preserve the raw
payload when storing, replaying, proxying, or forwarding command
metadata, and otherwise ignore the command. They MUST NOT display it as a
slash command.

**Properties**

**description** `string` *required*

Human-readable description of what the command does.
May contain Markdown.

**name** `string` *required*

Plain-text command name. MUST NOT contain whitespace and MUST be unique within the command list.

**type** `string` *required*

Custom or future command type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## AvailableCommandInput

The input specification for a command.

**Type:** Union

**text** `object`

All text after the command name and the whitespace following it is provided as input.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**hint** `string` *required*

Plain-text hint about the input the command expects. The Client can display it
when the user hasn't provided input yet.

**type** `string` *required*

The discriminator value. Must be `"text"`.

**other** `object`

Custom or future command input specification.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Clients that do not understand this input type SHOULD preserve the raw
payload when storing, replaying, proxying, or forwarding command
metadata, and otherwise ignore the input specification or display the
command without structured input.

**Properties**

**type** `string` *required*

Custom or future command input type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## AvailableCommandsUpdate

Available commands are ready or have changed

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**availableCommands** `[AvailableCommand\[\]](#availablecommand)` *required*

Commands the Agent can execute.

## BackgroundSubagent

A listed subagent session associated with this session through `subagent_update`.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The ID of the listed session.

## BackgroundTerminal

A listed terminal running in the background.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**terminalId** `[TerminalId](#terminalid)` *required*

The ID of the listed terminal.

## BackgroundToolCall

A listed tool call whose work continues in the background.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**toolCallId** `[ToolCallId](#toolcallid)` *required*

The ID of the listed tool call.

## BackgroundWork

One piece of work running independently of the session's foreground work.

Items reference entities the Client already tracks. The Agent MUST announce each item
before the first snapshot that lists it, and MUST report a terminal's `exitStatus` or a
tool call's final status before the snapshot that removes it. Each piece of work is
listed once: process-backed work is listed as its terminal, and the Agent MUST NOT
also list a tool call whose only live work is a listed terminal.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

**Type:** Union

**terminal** `object`

A process that keeps running after its tool call returned control to the model.
Live until its `terminal_update` reports `exitStatus`.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**terminalId** `[TerminalId](#terminalid)` *required*

The ID of the listed terminal.

**type** `string` *required*

The discriminator value. Must be `"terminal"`.

**tool\_call** `object`

Work started by a tool call that continues without a process of its own, such as
a watcher, a workflow, or a scheduled wakeup. `pending` and `paused` tool calls
stay listed.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**toolCallId** `[ToolCallId](#toolcallid)` *required*

The ID of the listed tool call.

**type** `string` *required*

The discriminator value. Must be `"tool_call"`.

**subagent** `object`

A detached subagent session that has anything running: its state is not `idle`, or
its own `background` list is non-empty or not reported.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The ID of the listed session.

**type** `string` *required*

The discriminator value. Must be `"subagent"`.

**other** `object`

Custom or future background work.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

An unknown item still means background work is running, even when the Client
cannot show what it is.

**Properties**

**type** `string` *required*

Custom or future background work type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## BlobResourceContents

Binary resource contents.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**blob** `string` *required*

Base64-encoded bytes for a binary resource payload.

* Content encoding: `base64`

**mimeType** `[MediaType](#mediatype) | null`

MIME type describing the encoded media payload.

Omitted and `null` are equivalent and mean the MIME type is not specified.

**uri** `string` *required*

URI associated with this resource or media payload.

* Format: `uri`

## BooleanPropertySchema

Schema for boolean properties in an elicitation form.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**default** `boolean | null`

Default value.

Optional. Omitted and `null` are equivalent and mean no default value is provided.

**description** `string | null`

Plain-text help for the user filling out this field.

Optional. Omitted and `null` are equivalent and mean no description is provided.

**title** `string | null`

Optional plain-text label for this field in the form.

Optional. Omitted and `null` are equivalent and mean no title is provided.

## CancelledPermissionOutcome

The request was not approved and no option was selected.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## ClientAuthCapabilities

Authentication capabilities supported by the Client.

Advertised during initialization to inform the Agent which authentication
method types the Client can handle. This governs opt-in types that require
additional Client-side support.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**terminal** `[TerminalAuthCapabilities](#terminalauthcapabilities) | null`

Whether the Client supports `terminal` authentication methods.

Optional. Omitted and `null` are equivalent and mean the Client does not advertise support.
Supplying `\{\}` means the Client can reproduce the configured Agent
invocation in an interactive terminal, and the Agent MAY include
`terminal` entries in its authentication methods.

## ClientCapabilities

Capabilities supported by the Client.

Advertised during initialization to inform the Agent about
available features and methods.

See protocol docs: [Client Capabilities](https://agentclientprotocol.com/protocol/v2/initialization.md#client-capabilities)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**auth** `[ClientAuthCapabilities](#clientauthcapabilities) | null`

Authentication capabilities supported by the Client.
Determines which authentication method types the Agent can include
in its `InitializeResponse`.

Optional. Omitted and `null` are equivalent and mean the Client does not advertise any
authentication-method extensions.

**elicitation** `[ElicitationCapabilities](#elicitationcapabilities) | null`

Elicitation capabilities supported by the Client.
Determines which elicitation modes the Agent can use.

Optional. Omitted and `null` are equivalent and mean the Client does not advertise
elicitation support.

## Command

A slash command the user can invoke by including it in a prompt.

The `type` discriminator value is `command`.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**description** `string` *required*

Human-readable description of what the command does.
May contain Markdown.

**input** `[AvailableCommandInput](#availablecommandinput) | null`

Input for the command if required

Omitted and `null` are equivalent and mean the command takes no input.

**name** `string` *required*

Plain-text command name without the leading `/`, such as `create_plan` or `research_codebase`.

MUST NOT contain whitespace and MUST be unique within the command list.

## CommandPermissionSubject

Permission request details for a command.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**command** `string` *required*

The command that would be run if permission is granted.

**cwd** `[AbsolutePath](#absolutepath)` *required*

The absolute working directory for the command.

**terminalId** `[TerminalId](#terminalid) | null`

The associated terminal, when already known. Omitted and `null` are equivalent.

**toolCallId** `[ToolCallId](#toolcallid) | null`

The associated tool call, when known. Omitted and `null` are equivalent.

## CompactionId

Unique identifier for a context compaction within a session.

**Type:** `string`

## CompactionStatus

Lifecycle state of a context compaction.

**Type:** Union

**in\_progress** `string`

Compaction has started and has not finished.

**completed** `string`

Compaction finished successfully.

**failed** `string`

Compaction finished unsuccessfully.

**cancelled** `string`

Compaction was cancelled before it finished.

**other** `string`

Custom or future compaction status.

Values beginning with `_` are reserved for implementation-specific
extensions. Other unknown values are reserved for future ACP statuses.

## CompactionSummaryChunk

A content block appended to a compaction's summary. A first-seen ID creates
an in-progress compaction. Chunks append in receive order.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**compactionId** `[CompactionId](#compactionid)` *required*

ID of the compaction whose summary receives this content.

**content** `[ContentBlock](#contentblock)` *required*

One content block to append.

## CompactionUpdate

A context compaction upsert. The first notification fixes the compaction's
timeline position. Later updates with the same ID patch that entity in place.

Only `compactionId` is required. `status`, `summary`, `error`, and `_meta` have
patch semantics: omission leaves the stored value unchanged, `null` clears it
or resets it to its default, and a concrete value replaces it.
`summary: []` also clears the summary. A concrete `_meta` object patches the
stored metadata by top-level key instead of replacing it.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**compactionId** `[CompactionId](#compactionid)` *required*

The Agent-owned ID of this compaction, unique within the session.

**error** `string | null`

Human-readable details of a compaction error, in plain text.

**status** `[CompactionStatus](#compactionstatus) | null`

Current lifecycle status.

Omission leaves the status unchanged, `null` resets it to `in_progress`, and a value
replaces it. A new compaction starts as `in_progress`.

**summary** `[ContentBlock\[\]](#contentblock) | null`

Complete replacement user-displayable summary content for the compaction.

## ConfigOptionUpdate

Session configuration options have been updated.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**configOptions** `[SessionConfigOption\[\]](#sessionconfigoption)` *required*

The full set of configuration options and their current values.

## Content

Standard content block (text, images, resources).

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `[ContentBlock](#contentblock)` *required*

The actual content block.

## ContentBlock

Content blocks represent displayable information in the Agent Client Protocol.

Content blocks appear in:

* User prompts sent via `session/prompt`
* Language model output reported through `session/update` notifications as
  message updates or streamed chunks
* Progress updates and results from tool calls

This structure is compatible with the Model Context Protocol (MCP), so Agents can
forward content from MCP tool outputs without transformation.

See protocol docs: [Content](https://agentclientprotocol.com/protocol/v2/content.md)

**Type:** Union

**text** `object`

Text content. May be plain text or formatted with Markdown.

All Agents MUST support text content blocks in prompts.
Clients SHOULD join adjacent text blocks without a separator before rendering.
Clients SHOULD render this text as CommonMark and MAY support GitHub Flavored Markdown
extensions.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**annotations** `[Annotations](#annotations) | null`

Optional annotations that help Clients decide how to display or route this content.

Omitted and `null` are equivalent and mean no annotations are provided.

**text** `string` *required*

Text payload carried by this content block. It may be plain text or Markdown.

**type** `string` *required*

The discriminator value. Must be `"text"`.

**image** `object`

Images for visual context or analysis.

Requires the `image` prompt capability when included in prompts.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**annotations** `[Annotations](#annotations) | null`

Optional annotations that help Clients decide how to display or route this content.

Omitted and `null` are equivalent and mean no annotations are provided.

**data** `string` *required*

Base64-encoded media payload.

* Content encoding: `base64`

**mimeType** `[MediaType](#mediatype)` *required*

MIME type describing the encoded media payload.

**type** `string` *required*

The discriminator value. Must be `"image"`.

**uri** `string | null`

URI associated with this resource or media payload.

Omitted and `null` are equivalent and mean no URI is associated with the image.

* Format: `uri`

**audio** `object`

Audio data for transcription or analysis.

Requires the `audio` prompt capability when included in prompts.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**annotations** `[Annotations](#annotations) | null`

Optional annotations that help Clients decide how to display or route this content.

Omitted and `null` are equivalent and mean no annotations are provided.

**data** `string` *required*

Base64-encoded media payload.

* Content encoding: `base64`

**mimeType** `[MediaType](#mediatype)` *required*

MIME type describing the encoded media payload.

**type** `string` *required*

The discriminator value. Must be `"audio"`.

**resource\_link** `object`

References to resources that the receiver may be able to read.

All Agents MUST support resource links in prompts.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**annotations** `[Annotations](#annotations) | null`

Optional annotations that help Clients decide how to display or route this content.

Omitted and `null` are equivalent and mean no annotations are provided.

**description** `string | null`

Optional human-readable description shown with the link. It describes the resource
contents in plain text.

Omitted and `null` are equivalent and mean no description is provided.

**icons** `[Icon\[\]](#icon) | null`

Optional set of sized icons that the Client can display in a user interface.

Omitted and `null` are equivalent and mean no icons are provided.

**mimeType** `[MediaType](#mediatype) | null`

MIME type describing the encoded media payload.

Omitted and `null` are equivalent and mean the MIME type is not specified.

**name** `string` *required*

Human-readable name shown for the linked resource, in plain text.

**size** `integer | null`

Optional size of the linked resource in bytes, if known.

Omitted and `null` are equivalent and mean the size is not known.

* Minimum: `0`

**title** `string | null`

Optional plain-text display title for the resource, intended for end users.

Omitted and `null` are equivalent and mean no title is provided.

**type** `string` *required*

The discriminator value. Must be `"resource_link"`.

**uri** `string` *required*

URI associated with this resource or media payload.

* Format: `uri`

**resource** `object`

Complete resource contents embedded directly in the message.

Preferred for including context as it avoids extra round-trips.

Requires the `embeddedContext` prompt capability when included in prompts.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**annotations** `[Annotations](#annotations) | null`

Optional annotations that help Clients decide how to display or route this content.

Omitted and `null` are equivalent and mean no annotations are provided.

**resource** `[EmbeddedResourceResource](#embeddedresourceresource)` *required*

Embedded resource payload, either text or binary data.

**type** `string` *required*

The discriminator value. Must be `"resource"`.

**other** `object`

Custom or future content block.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Receivers that do not understand this content block type SHOULD preserve
the raw payload when storing, replaying, proxying, or forwarding content,
and otherwise ignore it or display it generically. Agents MUST reject a
`session/prompt` request with a content block type they do not support
with `-32602`.

**Properties**

**type** `string` *required*

Custom or future content block type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## ContentChunk

A streamed item of message content.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `[ContentBlock](#contentblock)` *required*

A single item of content

**messageId** `[MessageId](#messageid)` *required*

A unique identifier for the message this chunk belongs to.

All chunks belonging to the same message share the same `messageId`.
Chunks for different messages can interleave.

## Cost

Cost information for a session.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**amount** `number` *required*

Total cumulative cost for session.

**currency** `string` *required*

Unit of `amount`: an ISO 4217 currency code (e.g., "USD", "EUR") for money, or another
unit such as "credits".

## Diff

File changes produced by a tool call.

`changes` is authoritative for affected absolute paths and operations.
`patch` optionally carries renderable text for some or all of those changes
and MUST be consistent with `changes`. Agents SHOULD provide `patch` whenever
feasible. Clients MUST handle diffs where `patch` is omitted or `null`.

See protocol docs: [Content](https://agentclientprotocol.com/protocol/v2/tool-calls.md#content)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**changes** `[DiffChange\[\]](#diffchange)` *required*

Structured file changes described by this diff. Agents MUST include at least one entry.

Clients can use this field without parsing patch text to determine affected paths.

**patch** `[DiffPatch](#diffpatch) | null`

Renderable patch text for some or all of the structured changes.

Agents SHOULD provide patch text whenever feasible. Omitted and `null` are
equivalent and mean no renderable patch text was provided.

## DiffChange

One file-level change described by a `Diff`.

Structured change metadata lets Clients identify affected files and
operations without parsing the text patch.

**Type:** Union

**Shared properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**fileType** `[DiffFileType](#difffiletype) | null`

File content kind after the operation (for `delete`, of the deleted file).

Omitted and `null` are equivalent and mean the content kind is unknown.

**mimeType** `[MediaType](#mediatype) | null`

MIME type of the file contents after the operation (for `delete`, of the deleted file).

Omitted and `null` are equivalent and mean the MIME type is unknown.

**Variants:**

**add** `object`

A file was added.

**Properties**

**operation** `string` *required*

The discriminator value. Must be `"add"`.

**path** `[AbsolutePath](#absolutepath)` *required*

Absolute path for the operation.

**delete** `object`

A file was deleted.

**Properties**

**operation** `string` *required*

The discriminator value. Must be `"delete"`.

**path** `[AbsolutePath](#absolutepath)` *required*

Absolute path for the operation.

**modify** `object`

A file was modified in place.

**Properties**

**operation** `string` *required*

The discriminator value. Must be `"modify"`.

**path** `[AbsolutePath](#absolutepath)` *required*

Absolute path for the operation.

**move** `object`

A file was moved or renamed.

**Properties**

**oldPath** `[AbsolutePath](#absolutepath)` *required*

Absolute path before the operation.

**operation** `string` *required*

The discriminator value. Must be `"move"`.

**path** `[AbsolutePath](#absolutepath)` *required*

Absolute path after the operation.

**copy** `object`

A file was copied.

**Properties**

**oldPath** `[AbsolutePath](#absolutepath)` *required*

Absolute path before the operation.

**operation** `string` *required*

The discriminator value. Must be `"copy"`.

**path** `[AbsolutePath](#absolutepath)` *required*

Absolute path after the operation.

**other** `object`

Custom or future file operation.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

**Properties**

**operation** `string` *required*

Custom or future file operation.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## DiffFileType

Kind of file content represented by a diff change.

**Type:** Union

**text** `string`

Text content.

**binary** `string`

Binary or otherwise non-text content.

**directory** `string`

Directory entry.

**symlink** `string`

Symbolic link.

**other** `string`

Custom or future file type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## DiffPatch

Renderable patch text and its format.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**format** `[DiffPatchFormat](#diffpatchformat)` *required*

Patch format. The only ACP-defined value is `git_patch`.

**text** `string` *required*

Patch text in the format named by `format`.

## DiffPatchFormat

Text patch format used by `DiffPatch`.

**Type:** Union

**git\_patch** `string`

One or more `diff --git` sections in Git's `--patch` (`-p`) text format.

Unlike Git, which writes paths relative to the repository root, every
path MUST be absolute, including in `rename from`, `rename to`,
`copy from`, and `copy to` lines, and MUST NOT have a prefix such as
Git's default `a/` and `b/`. Otherwise paths follow Git: `/dev/null`
names the missing side of an added or deleted file in the `---` and
`+++` lines, and paths with unusual characters are quoted as Git quotes
them. Each path, once unquoted, is the same native absolute path string as
the matching `changes` entry. Surrounding commit metadata and email envelopes MUST NOT be
included.

**other** `string`

Custom or future patch format.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## DiffPathChange

Operation metadata for add, delete, and modify changes.

**Type:** Object

**Properties:**

**path** `[AbsolutePath](#absolutepath)` *required*

Absolute path for the operation.

## DiffPathPairChange

Operation metadata for move and copy changes.

**Type:** Object

**Properties:**

**oldPath** `[AbsolutePath](#absolutepath)` *required*

Absolute path before the operation.

**path** `[AbsolutePath](#absolutepath)` *required*

Absolute path after the operation.

## ElicitationAcceptAction

The user accepted the elicitation and provided content.

**Type:** Object

**Properties:**

**content** `object | null`

The user-provided content, if any, as an object matching the requested schema.

Omitted and `null` are equivalent and mean no content is provided.

## ElicitationCapabilities

Elicitation capabilities supported by the Client.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**form** `[ElicitationFormCapabilities](#elicitationformcapabilities) | null`

Whether the Client supports form-based elicitation.

Optional. Omitted and `null` are equivalent and mean form support is not advertised.
Supplying `\{\}` explicitly advertises form support.

**url** `[ElicitationUrlCapabilities](#elicitationurlcapabilities) | null`

Whether the Client supports URL-based elicitation.

Optional. Omitted and `null` are equivalent and mean the Client does not advertise support.
Supplying `\{\}` means the Client supports URL-based elicitation.

## ElicitationContentValue

Allowed wire representations for `ElicitationContentValue`.

**Type:** Union

**String** `string`

String value accepted in elicitation response content.

**Integer** `int64`

Integer value accepted in elicitation response content.

**Number** `double`

Number value accepted in elicitation response content.

**Boolean** `boolean`

Boolean value accepted in elicitation response content.

**StringArray** `array`

String array value accepted in elicitation response content.

**Other**

Any other JSON value, such as the value of a custom or future property type.

Preserved as sent. Agents validate it against the requested schema like any
other value.

## ElicitationFormCapabilities

Form-based elicitation capabilities.

Supplying `\{\}` means the Client supports form-based elicitation.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## ElicitationFormMode

Form-based elicitation mode where the Client renders a form from the provided schema.

**Type:** Union

**Shared properties:**

**requestedSchema** `[ElicitationSchema](#elicitationschema)` *required*

A JSON Schema describing the form fields to present to the user.

**Variants:**

**Session**

Tied to a session, optionally to a specific tool call within that session.

**Properties**

**sessionId** `[SessionId](#sessionid)` *required*

The session this elicitation is tied to.

**toolCallId** `[ToolCallId](#toolcallid) | null`

Optional tool call within the session.

Optional. Omitted and `null` are equivalent and mean the elicitation is scoped to the
session without a specific tool call.

**Request**

Tied to a specific JSON-RPC request outside of a session
(e.g., during auth/configuration phases before any session is started).

**Properties**

**requestId** `[RequestId](#requestid)` *required*

The pending Client-to-Agent request this elicitation is tied to.

## ElicitationId

Unique identifier for an elicitation.

**Type:** `string`

## ElicitationPropertySchema

Property schema for elicitation form fields.

Each variant corresponds to a JSON Schema `"type"` value.
Single-select enums use `type: "string"` with `enum` or `oneOf` set.
Multi-select enums use `type: "array"`.

**Type:** Union

**string** `object`

String property (or single-select enum when `enum`/`oneOf` is set).

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**default** `string | null`

Default value.

Optional. Omitted and `null` are equivalent and mean no default value is provided.

**description** `string | null`

Plain-text help for the user filling out this field.

Optional. Omitted and `null` are equivalent and mean no description is provided.

**enum** `"string"[] | null`

Enum values for untitled single-select enums.
Must contain at least one value when present.
Optional. Omitted and `null` are equivalent and mean no untitled single-select choices are
declared by `enum`.

**format** `[StringFormat](#stringformat) | null`

String format.

Optional. Omitted and `null` are equivalent and mean there is no format constraint.

**maxLength** `integer | null`

Maximum string length.

Optional. Omitted and `null` are equivalent and mean there is no maximum length constraint.

* Minimum: `0`

**minLength** `integer | null`

Minimum string length.

Optional. Omitted and `null` are equivalent and mean there is no minimum length constraint.

* Minimum: `0`

**oneOf** `[EnumOption\[\]](#enumoption) | null`

Titled enum options for titled single-select enums.
Must contain at least one option when present.
Optional. Omitted and `null` are equivalent and mean no titled single-select choices are
declared by `oneOf`.

**title** `string | null`

Optional plain-text label for this field in the form.

Optional. Omitted and `null` are equivalent and mean no title is provided.

**type** `string` *required*

The discriminator value. Must be `"string"`.

**number** `object`

Number (floating-point) property.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**default** `number | null`

Default value.

Optional. Omitted and `null` are equivalent and mean no default value is provided.

**description** `string | null`

Plain-text help for the user filling out this field.

Optional. Omitted and `null` are equivalent and mean no description is provided.

**maximum** `number | null`

Maximum value (inclusive).

Optional. Omitted and `null` are equivalent and mean there is no inclusive upper bound.

**minimum** `number | null`

Minimum value (inclusive).

Optional. Omitted and `null` are equivalent and mean there is no inclusive lower bound.

**title** `string | null`

Optional plain-text label for this field in the form.

Optional. Omitted and `null` are equivalent and mean no title is provided.

**type** `string` *required*

The discriminator value. Must be `"number"`.

**integer** `object`

Integer property.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**default** `integer | null`

Default value.

Optional. Omitted and `null` are equivalent and mean no default value is provided.

**description** `string | null`

Plain-text help for the user filling out this field.

Optional. Omitted and `null` are equivalent and mean no description is provided.

**maximum** `integer | null`

Maximum value (inclusive).

Optional. Omitted and `null` are equivalent and mean there is no inclusive upper bound.

**minimum** `integer | null`

Minimum value (inclusive).

Optional. Omitted and `null` are equivalent and mean there is no inclusive lower bound.

**title** `string | null`

Optional plain-text label for this field in the form.

Optional. Omitted and `null` are equivalent and mean no title is provided.

**type** `string` *required*

The discriminator value. Must be `"integer"`.

**boolean** `object`

Boolean property.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**default** `boolean | null`

Default value.

Optional. Omitted and `null` are equivalent and mean no default value is provided.

**description** `string | null`

Plain-text help for the user filling out this field.

Optional. Omitted and `null` are equivalent and mean no description is provided.

**title** `string | null`

Optional plain-text label for this field in the form.

Optional. Omitted and `null` are equivalent and mean no title is provided.

**type** `string` *required*

The discriminator value. Must be `"boolean"`.

**array** `object`

Multi-select array property.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**default** `"string"[] | null`

Default selected values.

Optional. Omitted and `null` are equivalent and mean no default selections are provided.

**description** `string | null`

Plain-text help for the user filling out this field.

Optional. Omitted and `null` are equivalent and mean no description is provided.

**items** `[MultiSelectItems](#multiselectitems)` *required*

The items definition describing allowed values.

**maxItems** `integer | null`

Maximum number of items to select.

Optional. Omitted and `null` are equivalent and mean there is no maximum selection count.

* Minimum: `0`

**minItems** `integer | null`

Minimum number of items to select.

Optional. Omitted and `null` are equivalent and mean there is no minimum selection count.

* Minimum: `0`

**title** `string | null`

Optional plain-text label for this field in the form.

Optional. Omitted and `null` are equivalent and mean no title is provided.

**type** `string` *required*

The discriminator value. Must be `"array"`.

**other** `object`

Custom or future elicitation property schema.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Clients that do not understand this property schema type SHOULD preserve
the raw schema when storing, replaying, proxying, or forwarding
elicitation requests. They MUST NOT render it as a known input control.

**Properties**

**type** `string` *required*

Custom or future elicitation property schema type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## ElicitationRequestScope

Request-scoped elicitation, tied to a specific JSON-RPC request outside of a session
(e.g., during auth/configuration phases before any session is started).

**Type:** Object

**Properties:**

**requestId** `[RequestId](#requestid)` *required*

The pending Client-to-Agent request this elicitation is tied to.

## ElicitationSchema

Type-safe elicitation schema for requesting structured user input.

This represents a JSON Schema object with primitive-typed properties,
as required by the elicitation specification.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**description** `string | null`

Optional plain-text description of what the form asks the user to provide.

Optional. Omitted and `null` are equivalent and mean no schema description is provided.

**properties** `object` *required*

Property definitions (MUST be primitive types).

**required** `"string"[] | null`

List of required property names.

Optional. Omitted and `null` are equivalent and mean no property names are required.

**title** `string | null`

Optional plain-text title for the form as a whole.

Optional. Omitted and `null` are equivalent and mean no title is provided.

**type** `[ElicitationSchemaType](#elicitationschematype)` *required*

Type discriminator. Always `"object"`. Any other value is rejected.

## ElicitationSchemaType

Type discriminator for elicitation schemas.

**Type:** Union

**object** `string`

Object schema type.

## ElicitationSessionScope

Session-scoped elicitation, optionally tied to a specific tool call.

When `toolCallId` is set, the elicitation is tied to a specific tool call.
This is useful when an Agent receives an elicitation from an MCP server
during a tool call and needs to redirect it to the user.

**Type:** Object

**Properties:**

**sessionId** `[SessionId](#sessionid)` *required*

The session this elicitation is tied to.

**toolCallId** `[ToolCallId](#toolcallid) | null`

Optional tool call within the session.

Optional. Omitted and `null` are equivalent and mean the elicitation is scoped to the
session without a specific tool call.

## ElicitationUrlCapabilities

URL-based elicitation capabilities.

Supplying `\{\}` means the Client supports URL-based elicitation.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## ElicitationUrlMode

URL-based elicitation mode where the Client directs the user to a URL.

**Type:** Union

**Shared properties:**

**elicitationId** `[ElicitationId](#elicitationid)` *required*

The unique identifier for this elicitation.

**url** `string` *required*

The URL to direct the user to.

* Format: `uri`

**Variants:**

**Session**

Tied to a session, optionally to a specific tool call within that session.

**Properties**

**sessionId** `[SessionId](#sessionid)` *required*

The session this elicitation is tied to.

**toolCallId** `[ToolCallId](#toolcallid) | null`

Optional tool call within the session.

Optional. Omitted and `null` are equivalent and mean the elicitation is scoped to the
session without a specific tool call.

**Request**

Tied to a specific JSON-RPC request outside of a session
(e.g., during auth/configuration phases before any session is started).

**Properties**

**requestId** `[RequestId](#requestid)` *required*

The pending Client-to-Agent request this elicitation is tied to.

## EmbeddedResource

The contents of a resource, embedded into a prompt or tool call result.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**annotations** `[Annotations](#annotations) | null`

Optional annotations that help Clients decide how to display or route this content.

Omitted and `null` are equivalent and mean no annotations are provided.

**resource** `[EmbeddedResourceResource](#embeddedresourceresource)` *required*

Embedded resource payload, either text or binary data.

## EmbeddedResourceResource

Resource content that can be embedded in a message.

**Type:** Union

**TextResourceContents**

Text resource contents embedded directly in the message.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**mimeType** `[MediaType](#mediatype) | null`

MIME type describing the encoded media payload.

Omitted and `null` are equivalent and mean the MIME type is not specified.

**text** `string` *required*

The contents of the resource. Its `mimeType`, when provided, describes the format.

**uri** `string` *required*

URI associated with this resource or media payload.

* Format: `uri`

**BlobResourceContents**

Binary resource contents embedded directly in the message.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**blob** `string` *required*

Base64-encoded bytes for a binary resource payload.

* Content encoding: `base64`

**mimeType** `[MediaType](#mediatype) | null`

MIME type describing the encoded media payload.

Omitted and `null` are equivalent and mean the MIME type is not specified.

**uri** `string` *required*

URI associated with this resource or media payload.

* Format: `uri`

## EnumOption

A titled enum option with a const value, human-readable title, and optional description.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**const** `string` *required*

The constant value for this option.

**description** `string | null`

Plain-text description to help the user choose between options.

Optional. Omitted and `null` are equivalent and mean no description is provided.

**title** `string` *required*

Human-readable title for this choice, in plain text. `const` holds the corresponding value.

## EnvVariable

An environment variable to set when launching a process.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**name** `string` *required*

The name of the environment variable.

**value** `string` *required*

The value to set for the environment variable.

## Error

JSON-RPC error object.

Represents an error that occurred during method execution, following the
JSON-RPC 2.0 error object specification with optional additional data.

See protocol docs: [JSON-RPC Error Object](https://www.jsonrpc.org/specification#error_object)

**Type:** Object

**Properties:**

**code** `[ErrorCode](#errorcode)` *required*

A number indicating the error type that occurred.
This MUST be an integer as defined in the JSON-RPC specification.

**data** `[ErrorData](#errordata) | null`

Optional primitive or structured value that contains additional information about the error.
This may include debugging information or context-specific details.

Omitted and `null` are equivalent and mean no additional data is provided. Some codes
define a shape: `UnsupportedProtocolVersionErrorData` for `-32022`, and
`SessionNotFoundErrorData` for `-32002` when a session is not found.

**message** `string` *required*

A short, human-readable description of the error, in plain text.
The sender SHOULD limit the message to a single concise sentence.

## ErrorCode

Predefined error codes for common JSON-RPC and ACP-specific errors.

Standard errors use the JSON-RPC 2.0 codes. ACP-specific errors use the JSON-RPC
server-error range (-32000 to -32099), and request cancellation uses -32800 from the
range LSP reserves (-32899 to -32800).

**Type:** Union

**-32700** `int32`

**Parse error**: Invalid JSON was received by the server. An error occurred on
the server while parsing the JSON text.

**-32600** `int32`

**Invalid request**: The JSON sent is not a valid Request object.

**-32601** `int32`

**Method not found**: The method does not exist or is not available.

**-32602** `int32`

**Invalid params**: Invalid method parameter(s).

**-32603** `int32`

**Internal error**: Internal JSON-RPC error.

**-32800** `int32`

**Request cancelled**: Execution of the method was aborted either due to a
cancellation request from the caller or because of resource constraints or
shutdown.

**-32000** `int32`

**Authentication required**: Authentication is required before this operation
can be performed.

**-32002** `int32`

**Resource not found**: A given resource, such as a session, was not found.

**-32022** `int32`

**Unsupported protocol version**: No protocol version supported by the Agent
is at or below the requested version. The error data is an
`UnsupportedProtocolVersionErrorData`.

**Other** `int32`

Other undefined error code.

## ErrorData

Schema for the `data` field of an error: the shapes ACP defines, or any other value.

**Type:** Union

**UnsupportedProtocolVersion**

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**requested** `[ProtocolVersion](#protocolversion)` *required*

The protocol version the Client requested.

**supported** `[ProtocolVersion\[\]](#protocolversion)` *required*

The protocol versions the Agent supports.

**SessionNotFound**

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The session ID from the request.

**Other**

## ErrorStopReason

Details of a failure that ended active work.

**Type:** Object

**Properties:**

**error** `[Error](#error) | null`

The failure, as a JSON-RPC error object.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting failure details.
Agents SHOULD include it.

## ExtNotification

Allows either side to send an arbitrary notification that is not part of the ACP spec.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## ExtRequest

Allows for sending an arbitrary request that is not part of the ACP spec.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## ExtResponse

Allows for sending an arbitrary response to an extension request that is not part of the ACP spec.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## HttpHeader

An HTTP header to set when making requests to the MCP server.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**name** `string` *required*

The name of the HTTP header.

**value** `string` *required*

The value to set for the HTTP header.

## Icon

An optionally-sized icon that can be displayed in a user interface.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**mimeType** `[MediaType](#mediatype) | null`

Optional MIME type override if the source MIME type is missing or generic.

Omitted and `null` are equivalent and mean the source MIME type is used.

**sizes** `"string"[] | null`

Optional array of strings that specify sizes at which the icon can be used.
Each string SHOULD be in `WxH` format (e.g., `"48x48"`, `"96x96"`) or
`"any"` for scalable formats like SVG.

If not provided, the Client SHOULD assume that the icon can be used at any size.

Omitted and `null` are equivalent and mean no sizes are specified.

**src** `string` *required*

A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a
`data:` URI with Base64-encoded image data.

Clients MUST accept only `https:` and `data:` URIs, MUST fetch without
credentials, and MUST NOT follow redirects that change the scheme or origin.

* Format: `uri`

**theme** `[IconTheme](#icontheme) | null`

Optional theme this icon is designed for.

Omitted and `null` are equivalent and mean the icon is not theme-specific.

## IconTheme

Theme an icon is designed for.

**Type:** Union

**light** `string`

Icon designed for light backgrounds.

**dark** `string`

Icon designed for dark backgrounds.

**other** `string`

Custom or future icon theme.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## IdempotencyKey

A key the Client generates to identify one `session/prompt` submission across attempts.

The key is an opaque, case-sensitive string of 1 to 255 characters. It is scoped to the
session named by the request's `sessionId`.

See protocol docs: [Retrying a prompt](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#retrying-a-prompt)

**Type:** `string`

| Constraint | Value |
| - | - |
| Min length | `1` |
| Max length | `255` |

## IdleStateUpdate

No foreground work is active. Background activity may continue.

Agents SHOULD include a `stopReason` when the idle transition ends foreground
work. An idle update that does not end foreground work need not include one.
Receivers treat an omitted or `null` `stopReason` as the Agent not reporting one.
Repeated or resume snapshots may carry the last stop reason for context.
They MUST NOT be counted as new completions or cancellations.

**Type:** Union

**Shared properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

**stopReason** `string | null`

Why foreground work stopped. The value selects one of this type's variants, which may add fields of their own.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting a stop reason.

See protocol docs: [Stop Reasons](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#stop-reasons)

**Variants:**

**end\_turn** `object`

The active work ended successfully.
Includes locally handled commands that required no model call.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"end_turn"`.

**max\_tokens** `object`

The active work ended because the Agent reached the maximum number of tokens.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"max_tokens"`.

**max\_turn\_requests** `object`

The active work ended because the Agent reached the maximum number of
model requests for the foreground work.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"max_turn_requests"`.

**refusal** `object`

The active work ended because the Agent refused to continue.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"refusal"`.

**cancelled** `object`

The user or Client chose to stop the work: via `session/cancel`, by
closing the session, or through an interaction the Agent offers, such
as a permission option that tells the Agent to stop. A child session
also reports this reason when its parent cancels its work. Other work
the Agent stops for its own reasons uses another reason, such as
`error` for an internal timeout.

Agents MUST report this stop reason on an idle `state_update` when
cancellation ends active foreground work, even if aborting causes
exceptions. Agents MUST catch these errors and report `cancelled`, not
`error`.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"cancelled"`.

**error** `object`

The active work ended because something failed.

This includes pre-insertion foreground work. A prompt failure before
insertion also requires an error response to `session/prompt`. After
insertion, the prompt's response remains successful.

**Properties**

**error** `[Error](#error) | null`

The failure, as a JSON-RPC error object.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting failure details.
Agents SHOULD include it.

**stopReason** `string` *required*

The discriminator value. Must be `"error"`.

**other** `object`

Custom or future stop reason.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

**Properties**

**stopReason** `string` *required*

Custom or future stop reason.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

**none** `object`

No stop reason: `stopReason` is omitted or `null`.

**Properties**

**stopReason** `null`

## ImageContent

An image provided to or from an LLM.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**annotations** `[Annotations](#annotations) | null`

Optional annotations that help Clients decide how to display or route this content.

Omitted and `null` are equivalent and mean no annotations are provided.

**data** `string` *required*

Base64-encoded media payload.

* Content encoding: `base64`

**mimeType** `[MediaType](#mediatype)` *required*

MIME type describing the encoded media payload.

**uri** `string | null`

URI associated with this resource or media payload.

Omitted and `null` are equivalent and mean no URI is associated with the image.

* Format: `uri`

## Implementation

Metadata about the implementation of the Client or Agent.
Describes the name and version of an ACP implementation, with an optional
title for UI representation.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**name** `string` *required*

Name intended for programmatic or logical use. It can also serve as the
plain-text display name when `title` is absent.

**title** `string | null`

Optional human-readable title chosen to make the implementation easy to
recognize in the user interface. The title is plain text.

Omission and `null` are equivalent. When displaying an implementation without a title,
the receiver SHOULD use `name`.

**version** `string` *required*

Version of the implementation. Can be displayed to the user or used
for debugging or metrics purposes. (e.g. "1.0.0").

## IntegerPropertySchema

Schema for integer properties in an elicitation form.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**default** `integer | null`

Default value.

Optional. Omitted and `null` are equivalent and mean no default value is provided.

**description** `string | null`

Plain-text help for the user filling out this field.

Optional. Omitted and `null` are equivalent and mean no description is provided.

**maximum** `integer | null`

Maximum value (inclusive).

Optional. Omitted and `null` are equivalent and mean there is no inclusive upper bound.

**minimum** `integer | null`

Minimum value (inclusive).

Optional. Omitted and `null` are equivalent and mean there is no inclusive lower bound.

**title** `string | null`

Optional plain-text label for this field in the form.

Optional. Omitted and `null` are equivalent and mean no title is provided.

## McpCapabilities

MCP capabilities supported by the Agent for session lifecycle requests.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**http** `[McpHttpCapabilities](#mcphttpcapabilities) | null`

Agent supports `http` MCP servers.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise support.
Supplying `\{\}` means the Agent supports HTTP MCP server transports.

**stdio** `[McpStdioCapabilities](#mcpstdiocapabilities) | null`

Agent supports `stdio` MCP servers.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise support.
Supplying `\{\}` means the Agent supports stdio MCP server transports.

## McpHttpCapabilities

Capabilities for HTTP MCP server transports.

Supplying `\{\}` means the Agent supports HTTP MCP server transports.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## McpServer

Configuration for connecting to an MCP (Model Context Protocol) server.

MCP servers provide tools and context that the Agent can use when
processing prompts.

See protocol docs: [MCP Servers](https://agentclientprotocol.com/protocol/v2/session-setup.md#mcp-servers)

**Type:** Union

**http** `object`

HTTP transport configuration

Only available when the Agent capabilities include `session.mcp.http`.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**headers** `[HttpHeader\[\]](#httpheader)`

HTTP headers to set when making requests to the MCP server. Headers the MCP transport
defines are owned by the transport, and Agents use the transport's values for them.

**name** `string` *required*

Human-readable name identifying this MCP server. MUST be unique within `mcpServers`.

Agents reject a request with a duplicate `name` with `-32602`.

**type** `string` *required*

The discriminator value. Must be `"http"`.

**url** `string` *required*

URL to the MCP server.

* Format: `uri`

**stdio** `object`

Stdio transport configuration

Only available when the Agent capabilities include `session.mcp.stdio`.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**args** `"string"[]`

Command-line arguments to pass to the MCP server.

**command** `[AbsolutePath](#absolutepath)` *required*

Path to the MCP server executable. Must be an absolute path.

Agents reject a request with a relative `command` with `-32602`.

**env** `[EnvVariable\[\]](#envvariable)`

Environment variables to set when launching the MCP server. Names SHOULD be unique.
Agents MAY reject duplicates with `-32602`, and otherwise the last entry wins.

**name** `string` *required*

Human-readable name identifying this MCP server. MUST be unique within `mcpServers`.

Agents reject a request with a duplicate `name` with `-32602`.

**type** `string` *required*

The discriminator value. Must be `"stdio"`.

**other** `object`

Custom or future MCP server transport configuration.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Receivers that do not understand this transport SHOULD preserve the raw
payload when storing, replaying, proxying, or forwarding session setup
data. Agents MUST reject a request with a transport they do not support
with `-32602`.

**Properties**

**type** `string` *required*

Custom or future MCP server transport type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## McpServerHttp

HTTP transport configuration for MCP.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**headers** `[HttpHeader\[\]](#httpheader)`

HTTP headers to set when making requests to the MCP server. Headers the MCP transport
defines are owned by the transport, and Agents use the transport's values for them.

**name** `string` *required*

Human-readable name identifying this MCP server. MUST be unique within `mcpServers`.

Agents reject a request with a duplicate `name` with `-32602`.

**url** `string` *required*

URL to the MCP server.

* Format: `uri`

## McpServerStdio

Stdio transport configuration for MCP.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**args** `"string"[]`

Command-line arguments to pass to the MCP server.

**command** `[AbsolutePath](#absolutepath)` *required*

Path to the MCP server executable. Must be an absolute path.

Agents reject a request with a relative `command` with `-32602`.

**env** `[EnvVariable\[\]](#envvariable)`

Environment variables to set when launching the MCP server. Names SHOULD be unique.
Agents MAY reject duplicates with `-32602`, and otherwise the last entry wins.

**name** `string` *required*

Human-readable name identifying this MCP server. MUST be unique within `mcpServers`.

Agents reject a request with a duplicate `name` with `-32602`.

## McpStdioCapabilities

Capabilities for stdio MCP server transports.

Supplying `\{\}` means the Agent supports stdio MCP server transports.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## MediaType

An Internet media type identifying the format of protocol content.

**Type:** `string`

## MessageId

Identifier for a message, unique among messages of the same type within a session.

Each message type, such as user messages, Agent messages, and Agent thoughts,
has its own ID space: messages of different types may share an ID and remain
distinct messages.

**Type:** `string`

## MultiSelectItems

Items for a multi-select (array) property schema.

**Type:** Union

**string** `object`

Multi-select string items with plain string values.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**enum** `"string"[]` *required*

Allowed enum values. Must contain at least one value.

**type** `string` *required*

The discriminator value. Must be `"string"`.

**other** `object`

Custom or future typed multi-select items.

**Properties**

**type** `string` *required*

Custom or future multi-select item type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

**titled**

Titled multi-select items with human-readable labels.

As in MCP, titled items omit `type` and are identified by `anyOf`.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**anyOf** `[EnumOption\[\]](#enumoption)` *required*

Titled enum options. Must contain at least one option.

## MultiSelectPropertySchema

Schema for multi-select (array) properties in an elicitation form.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**default** `"string"[] | null`

Default selected values.

Optional. Omitted and `null` are equivalent and mean no default selections are provided.

**description** `string | null`

Plain-text help for the user filling out this field.

Optional. Omitted and `null` are equivalent and mean no description is provided.

**items** `[MultiSelectItems](#multiselectitems)` *required*

The items definition describing allowed values.

**maxItems** `integer | null`

Maximum number of items to select.

Optional. Omitted and `null` are equivalent and mean there is no maximum selection count.

* Minimum: `0`

**minItems** `integer | null`

Minimum number of items to select.

Optional. Omitted and `null` are equivalent and mean there is no minimum selection count.

* Minimum: `0`

**title** `string | null`

Optional plain-text label for this field in the form.

Optional. Omitted and `null` are equivalent and mean no title is provided.

## Notice

Fire-and-forget information for the user.

Notices are live events rather than session history. Agents MUST NOT rely on
a notice being received, displayed, or seen by the user.
No Client capability is required, and Clients MAY ignore notices.

See protocol docs: [Session Notices](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#session-notices)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**description** `string | null`

Optional plain-text detail or guidance.

Omitted and `null` are equivalent and mean no description was supplied.

**severity** `[NoticeSeverity](#noticeseverity)` *required*

Presentation severity hint.

**title** `string` *required*

Required non-empty plain-text title that can stand alone.

* Min length: `1`

## NoticeSeverity

Severity hint for a session notice.

**Type:** Union

**info** `string`

Informational notice.

**warning** `string`

Warning notice.

**error** `string`

Error notice.

**other** `string`

Custom or future notice severity.

Values beginning with `_` are reserved for implementation-specific
extensions. Other unknown values are reserved for future ACP severities.

## NumberPropertySchema

Schema for number (floating-point) properties in an elicitation form.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**default** `number | null`

Default value.

Optional. Omitted and `null` are equivalent and mean no default value is provided.

**description** `string | null`

Plain-text help for the user filling out this field.

Optional. Omitted and `null` are equivalent and mean no description is provided.

**maximum** `number | null`

Maximum value (inclusive).

Optional. Omitted and `null` are equivalent and mean there is no inclusive upper bound.

**minimum** `number | null`

Minimum value (inclusive).

Optional. Omitted and `null` are equivalent and mean there is no inclusive lower bound.

**title** `string | null`

Optional plain-text label for this field in the form.

Optional. Omitted and `null` are equivalent and mean no title is provided.

## PermissionOption

An option presented to the user when requesting permission.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**kind** `[PermissionOptionKind](#permissionoptionkind)` *required*

What selecting this option means. Clients can also use it to choose how to display the option.

**name** `string` *required*

Human-readable label for this choice, shown to the user as plain text.

**optionId** `[PermissionOptionId](#permissionoptionid)` *required*

Identifier for this permission option. MUST be unique within the request.

## PermissionOptionId

Unique identifier for a permission option.

**Type:** `string`

## PermissionOptionKind

The type of permission option being presented to the user.

If the user selects a `reject_once` or `reject_always` option, the Agent MUST NOT
perform the requested operation. For `reject_always`, the Agent also remembers
the rejection for later operations within its scope.

**Type:** Union

**allow\_once** `string`

Allow this operation only this time.

**allow\_always** `string`

Allow this operation and remember the choice.

**reject\_once** `string`

Reject this operation only this time.

**reject\_always** `string`

Reject this operation and remember the choice.

**other** `string`

Custom or future permission option kind.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## PlanEntry

A single entry in the execution plan.

Represents a task or goal that the assistant intends to accomplish
as part of fulfilling the user's request.
See protocol docs: [Plan Entries](https://agentclientprotocol.com/protocol/v2/agent-plan.md#plan-entries)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `string` *required*

Human-readable description of what this task aims to accomplish.
May contain Markdown.

**priority** `[PlanEntryPriority](#planentrypriority)` *required*

The relative importance of this task.
Used to indicate which tasks are most critical to the overall goal.

**status** `[PlanEntryStatus](#planentrystatus)` *required*

Current execution status of this task.

## PlanEntryPriority

Priority levels for plan entries.

Used to indicate the relative importance or urgency of different
tasks in the execution plan.
See protocol docs: [Plan Entries](https://agentclientprotocol.com/protocol/v2/agent-plan.md#plan-entries)

**Type:** Union

**high** `string`

High priority task. Critical to the overall goal.

**medium** `string`

Medium priority task. Important but not critical.

**low** `string`

Low priority task. Nice to have but not essential.

**other** `string`

Custom or future plan entry priority.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## PlanEntryStatus

Status of a plan entry in the execution flow.

Tracks the lifecycle of each task from planning through completion.
See protocol docs: [Plan Entries](https://agentclientprotocol.com/protocol/v2/agent-plan.md#plan-entries)

**Type:** Union

**pending** `string`

The task has not started yet.

**in\_progress** `string`

The task is currently being worked on.

**completed** `string`

The task has been successfully completed.

**cancelled** `string`

The task was cancelled before it completed.

**other** `string`

Custom or future plan entry status.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## PlanId

Unique identifier for a plan within a session.

**Type:** `string`

## PlanItems

A plan represented as structured entries.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**entries** `[PlanEntry\[\]](#planentry)` *required*

The list of tasks to be accomplished.

The Agent MUST send all entries with their current status.
The Client MUST replace the checklist with this `planId` on each update.

**planId** `[PlanId](#planid)` *required*

The plan ID to update.

## PlanMarkdown

A plan represented as Markdown.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `string` *required*

The complete plan as Markdown, not just the text that changed.

**path** `[AbsolutePath](#absolutepath) | null`

The absolute path of the file that holds this plan.

Omitted and `null` both mean the plan has no file. A supplied path MUST
be absolute. `content` is the plan to display whether or not `path` is set.
Clients can use `path` to open the file.

**planId** `[PlanId](#planid)` *required*

The plan ID to update.

## PlanRemoved

Removal notice for a plan identified by ID.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**planId** `[PlanId](#planid)` *required*

The plan ID to remove. Clients MUST ignore a removal for an unknown ID.

## PlanUpdate

A content update for a plan identified by ID.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**plan** `[PlanUpdateContent](#planupdatecontent)` *required*

Replaces the whole plan with this `planId`, even if its `type` changes.

## PlanUpdateContent

Updated content for a plan.

**Type:** Union

**items** `object`

Structured plan entries.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**entries** `[PlanEntry\[\]](#planentry)` *required*

The list of tasks to be accomplished.

The Agent MUST send all entries with their current status.
The Client MUST replace the checklist with this `planId` on each update.

**planId** `[PlanId](#planid)` *required*

The plan ID to update.

**type** `string` *required*

The discriminator value. Must be `"items"`.

**markdown** `object`

The complete plan as Markdown.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `string` *required*

The complete plan as Markdown, not just the text that changed.

**path** `[AbsolutePath](#absolutepath) | null`

The absolute path of the file that holds this plan.

Omitted and `null` both mean the plan has no file. A supplied path MUST
be absolute. `content` is the plan to display whether or not `path` is set.
Clients can use `path` to open the file.

**planId** `[PlanId](#planid)` *required*

The plan ID to update.

**type** `string` *required*

The discriminator value. Must be `"markdown"`.

**other** `object`

Custom or future plan update content.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Receivers that do not understand this content type SHOULD preserve the
raw payload when storing, replaying, proxying, or forwarding plans, and
otherwise ignore it or display it generically. It still replaces any earlier
content for the same `planId`.

**Properties**

**planId** `[PlanId](#planid)` *required*

The plan ID to update.

**type** `string` *required*

Custom or future plan update content type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## PromptAudioCapabilities

Capabilities for audio content in prompt requests.

Supplying `\{\}` means the Agent supports audio content in prompts.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## PromptCapabilities

Prompt capabilities supported by the Agent in `session/prompt` requests.

Baseline Agent functionality requires support for `text`
and `resource_link` content blocks in prompt requests.

Other content types need one of these capabilities.
Capabilities for different types of content in prompt requests.

Indicates which content types beyond the baseline (text and resource links)
the Agent can process.

See protocol docs: [Session Prompt Capabilities](https://agentclientprotocol.com/protocol/v2/initialization.md#session-prompt-capabilities)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**audio** `[PromptAudioCapabilities](#promptaudiocapabilities) | null`

Agent supports `audio` content blocks.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise support.
Supplying `\{\}` means the Agent supports audio content in prompts.

**embeddedContext** `[PromptEmbeddedContextCapabilities](#promptembeddedcontextcapabilities) | null`

Agent supports embedded context in `session/prompt` requests.

When enabled, the Client is allowed to include `resource` content blocks
in prompt requests for pieces of context that are referenced in the message.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise support.
Supplying `\{\}` means the Agent supports embedded context in prompts.

**image** `[PromptImageCapabilities](#promptimagecapabilities) | null`

Agent supports `image` content blocks.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise support.
Supplying `\{\}` means the Agent supports image content in prompts.

## PromptEmbeddedContextCapabilities

Capabilities for embedded context in prompt requests.

Supplying `\{\}` means the Agent supports embedded context in prompts.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## PromptImageCapabilities

Capabilities for image content in prompt requests.

Supplying `\{\}` means the Agent supports image content in prompts.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## ProtocolVersion

Protocol version identifier.

This version is only bumped for breaking changes.
Non-breaking changes should be introduced via capabilities.

**Type:** `integer (uint16)`

| Constraint | Value |
| - | - |
| Minimum | `0` |
| Maximum | `65535` |

## ReplayComplete

Marks the end of the history replay requested by `session/resume`.

The Agent MUST send this exactly once on a session for each `session/resume` request
with a `replayFrom` cursor, after the last replayed update for that session
and before the response, even for an empty replay. After receiving the
request, the Agent MUST hold live updates for the session during replay.
If the session is already active on the connection, a live update the Agent
sent earlier can still arrive after the Client sends the request. The marker
signals the end of the requested replay, not its start. A full replay covers
all the history the Agent retained for that session.

The Agent MUST NOT send it when `replayFrom` is omitted or `null`, or when
it cannot finish the replay. A replay that ends without it and without a
successful response is truncated.

See protocol docs: [Replay Complete](https://agentclientprotocol.com/protocol/v2/session-setup.md#replay-complete)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## ReplayFrom

Inclusive cursor describing where replayed session history begins.

Replay includes the position identified by the cursor.

**Type:** Union

**start** `object`

Replay all retained conversation history from its first replayable entry.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**type** `string` *required*

The discriminator value. Must be `"start"`.

**other** `object`

Custom or future replay cursor.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Intermediaries SHOULD preserve the raw payload when storing, replaying,
proxying, or forwarding requests. Agents that do not support this cursor
MUST reject the request with `-32602` (Invalid params), rather than
substituting another cursor or resuming without replay.

**Properties**

**type** `string` *required*

Custom or future replay cursor type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## ReplayFromStart

Inclusive replay cursor requesting replay from the start of retained conversation history.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## RequestId

A JSON-RPC request ID: a string or an integer. Unlike base JSON-RPC, it MUST NOT be `null`.

The receiver MUST reply with the same value in the response. Each side chooses IDs for its own
requests, so the same ID can be in use in both directions. A sender MUST NOT reuse an ID while
a request with it is still awaiting a response.

**Type:** Union

**Number** `int64`

A numeric request ID.

**Str** `string`

A string request ID.

## RequestPermissionOutcome

The outcome of a permission request.

**Type:** Union

**cancelled** `object`

The request was not approved and no option was selected: the session's work was
cancelled, the user dismissed the prompt, or the Client declined it by policy.
Agents MUST NOT proceed with the operation.

The Client answers a request the Agent cancels with `$/cancel_request` with
this outcome. After sending `session/cancel`, the Client MAY also send it
without waiting for `$/cancel_request`, for a request it knows belongs to the
cancelled foreground work.

See protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#cancellation)

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**outcome** `string` *required*

The discriminator value. Must be `"cancelled"`.

**selected** `object`

The user selected an option. Selection is not approval by itself.

The Agent MUST match `optionId` against the options it offered in this request.
For `reject_once` or `reject_always`, the Agent MUST NOT perform the requested
operation. If no option matches or the Agent does not understand its `kind`,
the Agent MUST NOT treat the response as approval.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**optionId** `[PermissionOptionId](#permissionoptionid)` *required*

The ID of the option the user selected from this request's `options`.

**outcome** `string` *required*

The discriminator value. Must be `"selected"`.

**other** `object`

Custom or future permission outcome.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Agents that do not understand this outcome MUST NOT treat it as approval.
They SHOULD preserve the raw payload when storing, replaying, proxying, or
forwarding permission responses, and otherwise fail or decline the
permission request according to policy.

**Properties**

**outcome** `string` *required*

Custom or future permission outcome.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## RequestPermissionSubject

The operation requiring permission.

**Type:** Union

**tool\_call** `object`

Permission is requested before executing a tool call.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**toolCall** `[ToolCallUpdate](#toolcallupdate)` *required*

Details about the tool call requiring permission.

Clients apply this to their stored tool call exactly like a `tool_call_update`
notification, in the order it was received, before showing the prompt. A first-seen
`toolCallId` creates the tool call.

**type** `string` *required*

The discriminator value. Must be `"tool_call"`.

**command** `object`

Permission is requested before running a command.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**command** `string` *required*

The command that would be run if permission is granted.

**cwd** `[AbsolutePath](#absolutepath)` *required*

The absolute working directory for the command.

**terminalId** `[TerminalId](#terminalid) | null`

The associated terminal, when already known. Omitted and `null` are equivalent.

**toolCallId** `[ToolCallId](#toolcallid) | null`

The associated tool call, when known. Omitted and `null` are equivalent.

**type** `string` *required*

The discriminator value. Must be `"command"`.

**other** `object`

Custom or future permission subject.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Clients that do not understand this subject type SHOULD preserve the raw
payload when storing, replaying, proxying, or forwarding permission
requests, and otherwise display a generic permission prompt or decline it
according to policy.

**Properties**

**type** `string` *required*

Custom or future permission subject type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## RequiresActionStateUpdate

The foreground workflow as a whole is blocked on user action.

Agents SHOULD report this state when foreground work cannot progress without
user action. Pending permissions or elicitations alone do not imply this
state if other foreground work can progress, or if the requests belong only
to independent background activity. Once reported, Agents MUST report
`running` when progress resumes, or `idle` if the work ends without resuming.
Responding to one request does not itself imply `running`.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

## ResourceLink

A link to a resource that the receiver may be able to read, included in a prompt or tool call result.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**annotations** `[Annotations](#annotations) | null`

Optional annotations that help Clients decide how to display or route this content.

Omitted and `null` are equivalent and mean no annotations are provided.

**description** `string | null`

Optional human-readable description shown with the link. It describes the resource
contents in plain text.

Omitted and `null` are equivalent and mean no description is provided.

**icons** `[Icon\[\]](#icon) | null`

Optional set of sized icons that the Client can display in a user interface.

Omitted and `null` are equivalent and mean no icons are provided.

**mimeType** `[MediaType](#mediatype) | null`

MIME type describing the encoded media payload.

Omitted and `null` are equivalent and mean the MIME type is not specified.

**name** `string` *required*

Human-readable name shown for the linked resource, in plain text.

**size** `integer | null`

Optional size of the linked resource in bytes, if known.

Omitted and `null` are equivalent and mean the size is not known.

* Minimum: `0`

**title** `string | null`

Optional plain-text display title for the resource, intended for end users.

Omitted and `null` are equivalent and mean no title is provided.

**uri** `string` *required*

URI associated with this resource or media payload.

* Format: `uri`

## Role

The sender or recipient of messages and data in a conversation.

**Type:** Union

**assistant** `string`

The assistant side of a conversation.

**user** `string`

The user side of a conversation.

**other** `string`

Custom or future role.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## RunningStateUpdate

Foreground work is in progress.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

## SelectedPermissionOutcome

Identifies the option the user chose, whether it allows or rejects the operation.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**optionId** `[PermissionOptionId](#permissionoptionid)` *required*

The ID of the option the user selected from this request's `options`.

## SessionAdditionalDirectoriesCapabilities

Capabilities for additional session directories support.

Supplying `\{\}` means the Agent supports the `additionalDirectories` field on
supported session lifecycle requests. Agents MAY return
`SessionInfo.additionalDirectories` in `session/list` to report the
complete ordered additional-root list associated with a listed session.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## SessionCancelCapabilities

Capability to cancel work in a subagent session without ending that session.

Supplying `\{\}` advertises support. An omitted or `null` `cancel` does not.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## SessionCapabilities

Session capabilities supported by the Agent.

Supplying `\{\}` means the Agent supports the baseline session methods:
`session/new`, `session/list`, `session/resume`, `session/close`,
`session/prompt`, `session/cancel`, and `session/update`.

Agents that support sessions MAY support additional session methods,
prompt content types, and MCP transports by specifying additional
capabilities.

See protocol docs: [Session Capabilities](https://agentclientprotocol.com/protocol/v2/initialization.md#session-capabilities)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**additionalDirectories** `[SessionAdditionalDirectoriesCapabilities](#sessionadditionaldirectoriescapabilities) | null`

Whether the Agent supports `additionalDirectories` on supported session lifecycle requests.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise support.
Supplying `\{\}` means the Agent supports `additionalDirectories` on
supported session lifecycle requests.

Agents MAY return `SessionInfo.additionalDirectories` to report the
complete ordered additional-root list associated with a listed session.

**delete** `[SessionDeleteCapabilities](#sessiondeletecapabilities) | null`

Whether the Agent supports `session/delete`.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise support.
Supplying `\{\}` means the Agent supports deleting sessions from `session/list`.

**mcp** `[McpCapabilities](#mcpcapabilities) | null`

MCP capabilities supported by the Agent for session lifecycle requests.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise MCP
server transport support for sessions.

**prompt** `[PromptCapabilities](#promptcapabilities) | null`

Prompt capabilities supported by the Agent in `session/prompt` requests.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise any
prompt extensions beyond the baseline text and resource-link content
required by `session/prompt`.

**systemPrompt** `[SessionSystemPromptCapabilities](#sessionsystempromptcapabilities) | null`

Whether the Agent supports `systemPrompt` on session lifecycle requests.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise support.
Supplying `\{\}` means the Agent supports `systemPrompt` in `append` mode.

## SessionConfigBoolean

A boolean on/off toggle session configuration option payload.

**Type:** Object

**Properties:**

**currentValue** `boolean` *required*

The current value of the boolean option.

## SessionConfigGroupId

Unique identifier for a session configuration option value group.

**Type:** `string`

## SessionConfigId

Unique identifier for a session configuration option.

**Type:** `string`

## SessionConfigOption

A session configuration option selector and its current state.

**Type:** Union

**Shared properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**category** `[SessionConfigOptionCategory](#sessionconfigoptioncategory) | null`

Optional semantic category for this option (UX only).

Omitted and `null` are equivalent and mean no category is provided.

**configId** `[SessionConfigId](#sessionconfigid)` *required*

Identifier for the configuration option. MUST be unique within `configOptions`.

**description** `string | null`

Optional description for the Client to display to the user.
May contain Markdown.

Omitted and `null` are equivalent and mean no description is provided.

**name** `string` *required*

Human-readable label the Client can display for the option, in plain text.

**Variants:**

**select** `object`

Single-value selector (dropdown).

**Properties**

**currentValue** `[SessionConfigValueId](#sessionconfigvalueid)` *required*

The currently selected value. MUST be one of the `value`s in `options`.

**options** `[SessionConfigSelectOptions](#sessionconfigselectoptions)` *required*

The set of selectable options. MUST contain at least one value, and each
`value` MUST be unique within the option, including across groups.

**type** `string` *required*

The discriminator value. Must be `"select"`.

**boolean** `object`

Boolean on/off toggle.

**Properties**

**currentValue** `boolean` *required*

The current value of the boolean option.

**type** `string` *required*

The discriminator value. Must be `"boolean"`.

**other** `object`

Custom or future session configuration option payload.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Clients that do not understand this option type SHOULD preserve the raw
payload when storing, replaying, proxying, or forwarding configuration
data, and otherwise ignore the option. The Agent keeps using its `currentValue`.

**Properties**

**type** `string` *required*

Custom or future session configuration option type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## SessionConfigOptionCategory

Semantic category for a session configuration option.

This is intended to help Clients distinguish broadly common selectors (e.g. model selector vs
session mode selector vs thought/reasoning level) for UX purposes (keyboard shortcuts, icons,
placement). It MUST NOT be required for correctness. Clients MUST handle missing or unknown
categories gracefully.

Category names beginning with `_` are free for custom use, like other ACP extension methods.
Category names that do not begin with `_` are reserved for the ACP spec.

**Type:** Union

**mode** `string`

Session mode selector.

**model** `string`

Model selector.

**model\_config** `string`

Model-related configuration parameter.

**speed** `string`

Response speed selector, such as a fast mode toggle.

**thought\_level** `string`

Thought/reasoning level selector.

**other** `string`

Custom or future category.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## SessionConfigSelect

A single-value selector (dropdown) session configuration option payload.

**Type:** Object

**Properties:**

**currentValue** `[SessionConfigValueId](#sessionconfigvalueid)` *required*

The currently selected value. MUST be one of the `value`s in `options`.

**options** `[SessionConfigSelectOptions](#sessionconfigselectoptions)` *required*

The set of selectable options. MUST contain at least one value, and each
`value` MUST be unique within the option, including across groups.

## SessionConfigSelectGroup

A group of possible values for a session configuration option.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**groupId** `[SessionConfigGroupId](#sessionconfiggroupid)` *required*

Identifier for this group. MUST be unique within the option.

**name** `string` *required*

Human-readable label the Client can display as a plain-text group header.

**options** `[SessionConfigSelectOption\[\]](#sessionconfigselectoption)` *required*

The set of option values in this group. MUST contain at least one value.

## SessionConfigSelectOption

A possible value for a session configuration option.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**description** `string | null`

Optional description for this option value.
May contain Markdown.

Omitted and `null` are equivalent and mean no description is provided.

**name** `string` *required*

Human-readable label the Client can display for this option value, in plain text.

**value** `[SessionConfigValueId](#sessionconfigvalueid)` *required*

Unique identifier for this option value.

## SessionConfigSelectOptions

Possible values for a session configuration option.

**Type:** Union

**Ungrouped** `array`

A flat list of options with no grouping.

**Grouped** `array`

A list of options grouped under headers.

## SessionConfigValueId

Unique identifier for a session configuration option value.

**Type:** `string`

## SessionDeleteCapabilities

Capabilities for the `session/delete` method.

Supplying `\{\}` means the Agent supports deleting sessions from `session/list`.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## SessionId

A unique identifier for a conversation session between a Client and Agent.

Each session has its own context, conversation history, and state, so one
Agent can run several independent sessions.

See protocol docs: [Session ID](https://agentclientprotocol.com/protocol/v2/session-setup.md#session-id)

**Type:** `string`

## SessionInfo

Information about a session returned by session/list

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**additionalDirectories** `[AbsolutePath\[\]](#absolutepath)`

Additional workspace roots reported for this session. Each path MUST be absolute.

When present, this is the complete ordered additional-root list reported
by the Agent. Omitted and empty values are equivalent: the response
reports no additional roots.

**cwd** `[AbsolutePath](#absolutepath)` *required*

The working directory for this session. Must be an absolute path.

**sessionId** `[SessionId](#sessionid)` *required*

Unique identifier for the session

**title** `string | null`

Human-readable title for the session, in plain text.

Omitted and `null` are equivalent and mean no title is provided.

**updatedAt** `string | null`

RFC 3339 timestamp of last activity.

Omitted and `null` are equivalent and mean the last activity time is not reported.

* Format: `date-time`

## SessionInfoUpdate

Update to session metadata. All fields are optional to support partial updates.

Agents send this notification to update session information like title or custom metadata.
Clients can use it to keep session titles and state current.

Omitted fields leave the existing session info unchanged. `null` clears the
corresponding value. A concrete `_meta` object patches the stored metadata by
top-level key.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**title** `string | null`

Human-readable title for the session, in plain text. Set to `null` to clear.

**updatedAt** `string | null`

RFC 3339 timestamp of last activity. Set to null to clear.

* Format: `date-time`

## SessionListCursor

An opaque cursor used to paginate `session/list` results.

**Type:** `string`

## SessionMessage

An upsert for an inter-session message.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**content** `[ContentBlock\[\]](#contentblock) | null`

Omitted leaves content unchanged. `null` clears it. A concrete array
replaces the whole content collection.

**messageId** `[MessageId](#messageid)` *required*

Identifier of this message within the enclosing session's transcript.

**recipientMessageId** `[MessageId](#messageid) | null`

On an outgoing view, the `messageId` of the same message's incoming view in the
recipient's transcript.

Omitted leaves the stored value unchanged. `null` clears it. A value replaces it. It can arrive
after the message starts streaming.

**recipientSessionId** `[SessionId](#sessionid) | null`

The receiving session.

Omitted leaves the stored value unchanged. `null` clears it. A value replaces it.

**senderMessageId** `[MessageId](#messageid) | null`

On an incoming view, the `messageId` of the same message's outgoing view in the
sender's transcript.

Omitted leaves the stored value unchanged. `null` clears it. A value replaces it. It can arrive
after the message starts streaming.

**senderSessionId** `[SessionId](#sessionid) | null`

The sending session.

Omitted leaves the stored value unchanged. `null` clears it. A value replaces it.

## SessionMessageChunk

A streamed content block of an inter-session message.

A chunk carries only content. The message's participants and references come from
`session_message` upserts, which can arrive before, between, or after its chunks.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `[ContentBlock](#contentblock)` *required*

A single content block appended to the message.

**messageId** `[MessageId](#messageid)` *required*

Identifier of this message within the enclosing session's transcript.

## SessionNotFoundErrorData

Data for the `-32002` (Resource not found) error when a session-scoped request names a
session that does not exist or is not active.

See protocol docs: [Unknown Sessions](https://agentclientprotocol.com/protocol/v2/error.md#unknown-sessions)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The session ID from the request.

## SessionReference

A display-only reference to another session that this tool call operates on,
such as a subagent it created, delegated to, or is waiting on.

The referenced session MUST already be known to the Client through ordinary
session setup or a `subagent_update` announcement. The reference does not
establish ownership, grant any Client-initiated controls, or report that the
referenced session received or finished any work.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The referenced session.

## SessionSystemPromptCapabilities

Capabilities for Client-provided system prompts.

Supplying `\{\}` means the Agent supports `systemPrompt` on session lifecycle
requests in `append` mode.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**mode** `[SessionSystemPromptModeCapabilities](#sessionsystempromptmodecapabilities) | null`

Delivery modes the Agent supports in addition to `append`.

Optional. Omitted and `null` are equivalent and mean the Agent supports only `append`.

## SessionSystemPromptModeCapabilities

System prompt delivery modes the Agent supports in addition to `append`.

`append` has no entry because every Agent advertising `session.systemPrompt`
supports it.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**override** `[SessionSystemPromptOverrideCapabilities](#sessionsystempromptoverridecapabilities) | null`

Whether the Agent supports `override` mode.

Optional. Omitted and `null` are equivalent and mean the Agent does not advertise support.
Supplying `\{\}` means the Agent supports replacing its built-in default
instructions with the Client-provided system prompt.

## SessionSystemPromptOverrideCapabilities

Capabilities for the `override` system prompt mode.

Supplying `\{\}` means the Agent supports replacing its built-in default
instructions with the Client-provided system prompt.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## SessionUpdate

Different types of updates that can be sent while a session exists.

These updates report messages, progress, and other session activity.

See protocol docs: [Agent Reports Output](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#3-agent-reports-output)

**Type:** Union

**user\_message\_chunk** `object`

A chunk of the user's message being streamed.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `[ContentBlock](#contentblock)` *required*

A single item of content

**messageId** `[MessageId](#messageid)` *required*

A unique identifier for the message this chunk belongs to.

All chunks belonging to the same message share the same `messageId`.
Chunks for different messages can interleave.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"user_message_chunk"`.

**user\_message** `object`

A user message has been created or updated.

Agents can send this when they accept or replay a user message. When a
Client receives another `user_message` update with the same `messageId`,
fields in the new update patch the previous fields for that message.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**content** `[ContentBlock\[\]](#contentblock) | null`

Complete replacement content for this message.

**messageId** `[MessageId](#messageid)` *required*

A unique identifier for the message.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"user_message"`.

**agent\_message\_chunk** `object`

A chunk of the Agent's response being streamed.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `[ContentBlock](#contentblock)` *required*

A single item of content

**messageId** `[MessageId](#messageid)` *required*

A unique identifier for the message this chunk belongs to.

All chunks belonging to the same message share the same `messageId`.
Chunks for different messages can interleave.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"agent_message_chunk"`.

**agent\_message** `object`

An Agent message has been created or updated.

Agents can send this in addition to streamed chunks. When a Client
receives another `agent_message` update with the same `messageId`,
fields in the new update patch the previous fields for that message.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**content** `[ContentBlock\[\]](#contentblock) | null`

Complete replacement content for this message.

**messageId** `[MessageId](#messageid)` *required*

A unique identifier for the message.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"agent_message"`.

**agent\_thought\_chunk** `object`

A chunk of the Agent's internal reasoning being streamed.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `[ContentBlock](#contentblock)` *required*

A single item of content

**messageId** `[MessageId](#messageid)` *required*

A unique identifier for the message this chunk belongs to.

All chunks belonging to the same message share the same `messageId`.
Chunks for different messages can interleave.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"agent_thought_chunk"`.

**agent\_thought** `object`

An Agent thought or reasoning message has been created or updated.

Agents can send this in addition to streamed chunks. When a Client
receives another `agent_thought` update with the same `messageId`,
fields in the new update patch the previous fields for that message.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**content** `[ContentBlock\[\]](#contentblock) | null`

Complete replacement content for this thought message.

**messageId** `[MessageId](#messageid)` *required*

A unique identifier for the thought message.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"agent_thought"`.

**state\_update** `object`

A snapshot of the session's aggregate foreground activity.

**Properties**

**sessionUpdate** `string` *required*

The discriminator value. Must be `"state_update"`.

**Alternatives (`anyOf`):**

**running** `object`

Foreground work is in progress.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

**state** `string` *required*

The discriminator value. Must be `"running"`.

**idle** `object`

No foreground work is active. Background activity may continue.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

**state** `string` *required*

The discriminator value. Must be `"idle"`.

**stopReason** `string | null`

Why foreground work stopped. The value selects one of this type's variants, which may add fields of their own.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting a stop reason.

See protocol docs: [Stop Reasons](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#stop-reasons)

**Alternatives (`anyOf`):**

**end\_turn** `object`

The active work ended successfully.
Includes locally handled commands that required no model call.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"end_turn"`.

**max\_tokens** `object`

The active work ended because the Agent reached the maximum number of tokens.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"max_tokens"`.

**max\_turn\_requests** `object`

The active work ended because the Agent reached the maximum number of
model requests for the foreground work.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"max_turn_requests"`.

**refusal** `object`

The active work ended because the Agent refused to continue.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"refusal"`.

**cancelled** `object`

The user or Client chose to stop the work: via `session/cancel`, by
closing the session, or through an interaction the Agent offers, such
as a permission option that tells the Agent to stop. A child session
also reports this reason when its parent cancels its work. Other work
the Agent stops for its own reasons uses another reason, such as
`error` for an internal timeout.

Agents MUST report this stop reason on an idle `state_update` when
cancellation ends active foreground work, even if aborting causes
exceptions. Agents MUST catch these errors and report `cancelled`, not
`error`.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"cancelled"`.

**error** `object`

The active work ended because something failed.

This includes pre-insertion foreground work. A prompt failure before
insertion also requires an error response to `session/prompt`. After
insertion, the prompt's response remains successful.

**Properties**

**error** `[Error](#error) | null`

The failure, as a JSON-RPC error object.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting failure details.
Agents SHOULD include it.

**stopReason** `string` *required*

The discriminator value. Must be `"error"`.

**other** `object`

Custom or future stop reason.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

**Properties**

**stopReason** `string` *required*

Custom or future stop reason.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

**none** `object`

No stop reason: `stopReason` is omitted or `null`.

**Properties**

**stopReason** `null`

**requires\_action** `object`

Foreground work is blocked on user action.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

**state** `string` *required*

The discriminator value. Must be `"requires_action"`.

**unknown** `object`

The Agent cannot currently determine foreground activity.
This replaces previously confirmed activity without ending the work or session.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

**state** `string` *required*

The discriminator value. Must be `"unknown"`.

**other** `object`

Custom or future session state.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Unless the Client advertised support for this state, Agents MUST still
report the standard states.
Clients MUST NOT treat an unrecognized state as `idle` or present the
previous state as confirmed, and show a generic busy state until a known
state arrives.

**Properties**

**state** `string` *required*

Custom or future session state.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

**tool\_call\_content\_chunk** `object`

A chunk of tool-call content being streamed.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `[ToolCallContent](#toolcallcontent)` *required*

A single item of content produced by the tool call.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"tool_call_content_chunk"`.

**toolCallId** `[ToolCallId](#toolcallid)` *required*

The ID of the tool call this content belongs to.

**tool\_call\_update** `object`

A tool call has been created or updated.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**capabilities** `[ToolCallCapabilities](#toolcallcapabilities) | null`

Client-initiated controls this tool call currently supports, such as cancellation.

Omission leaves the capabilities unchanged, `null` clears them, and an object replaces
the whole previous value. A new tool call starts with none.

**content** `[ToolCallContent\[\]](#toolcallcontent) | null`

Content produced by the tool call.

**kind** `[ToolKind](#toolkind) | null`

The category of tool being invoked.
Helps Clients choose appropriate icons and UI treatment.

Omission leaves the kind unchanged, `null` resets it to `other`, and a value replaces it.
A new tool call starts as `other`.

**locations** `[ToolCallLocation\[\]](#toolcalllocation) | null`

File locations affected by this tool call.
Enables "follow-along" features in Clients.

**name** `string | null`

Programmatic name of the tool being invoked.

This field is optional and has patch semantics. Omission means no
change, `null` clears the name, and a string replaces it. For a tool
call ID the Client has not seen before, omission or `null` means that no
tool name is available.

**rawInput** `object`

Raw input parameters sent to the tool.

**rawOutput** `object`

Raw output returned by the tool.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"tool_call_update"`.

**status** `[ToolCallStatus](#toolcallstatus) | null`

Current execution status of the tool call.

Omission leaves the status unchanged, `null` resets it to `pending`, and a value
replaces it. A new tool call starts as `pending`. Agents do not move a tool call
back to `pending` once it has another status.

**title** `string | null`

Human-readable plain-text title describing what the tool is doing.

Omission leaves the title unchanged, `null` unsets it, and a string replaces it.
A new tool call starts without a title.

**toolCallId** `[ToolCallId](#toolcallid)` *required*

Unique identifier for this tool call within the session.

**terminal\_update** `object`

An Agent-owned terminal has been created or updated.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**capabilities** `[TerminalCapabilities](#terminalcapabilities) | null`

Client-initiated controls this terminal currently supports, such as cancellation.

Omission leaves the capabilities unchanged, `null` clears them, and an object replaces
the whole previous value. A new terminal starts with none.

**command** `string | null`

The command being run.

**cwd** `[AbsolutePath](#absolutepath) | null`

The absolute working directory of the command.

**exitStatus** `[TerminalExitStatus](#terminalexitstatus) | null`

Exit information. A concrete object marks the terminal as exited.

**output** `[TerminalOutput](#terminaloutput) | null`

An authoritative replacement snapshot of terminal output bytes.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"terminal_update"`.

**size** `[TerminalSize](#terminalsize) | null`

The terminal size the command runs with, when known.

Clients can render output at this size so that column layouts, progress bars,
and cursor-positioned output display as the program wrote them.

**terminalId** `[TerminalId](#terminalid)` *required*

Unique identifier for this terminal within the session.

**terminal\_output\_chunk** `object`

A chunk of bytes appended to an Agent-owned terminal's output.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**data** `string` *required*

Independently base64-encoded terminal output bytes.

* Content encoding: `base64`

**sessionUpdate** `string` *required*

The discriminator value. Must be `"terminal_output_chunk"`.

**terminalId** `[TerminalId](#terminalid)` *required*

The terminal receiving these bytes.

**plan\_update** `object`

A content update for a plan identified by ID.
See protocol docs: [Agent Plan](https://agentclientprotocol.com/protocol/v2/agent-plan.md)

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**plan** `[PlanUpdateContent](#planupdatecontent)` *required*

Replaces the whole plan with this `planId`, even if its `type` changes.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"plan_update"`.

**plan\_removed** `object`

Removal notice for a plan identified by ID.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**planId** `[PlanId](#planid)` *required*

The plan ID to remove. Clients MUST ignore a removal for an unknown ID.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"plan_removed"`.

**available\_commands\_update** `object`

Available commands are ready or have changed

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**availableCommands** `[AvailableCommand\[\]](#availablecommand)` *required*

Commands the Agent can execute.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"available_commands_update"`.

**config\_option\_update** `object`

Session configuration options have been updated.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**configOptions** `[SessionConfigOption\[\]](#sessionconfigoption)` *required*

The full set of configuration options and their current values.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"config_option_update"`.

**session\_info\_update** `object`

Session metadata has been updated (title, timestamps, custom metadata)

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**sessionUpdate** `string` *required*

The discriminator value. Must be `"session_info_update"`.

**title** `string | null`

Human-readable title for the session, in plain text. Set to `null` to clear.

**updatedAt** `string | null`

RFC 3339 timestamp of last activity. Set to null to clear.

* Format: `date-time`

**usage\_update** `object`

Context window and cost update for the session.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**cost** `[Cost](#cost) | null`

Cumulative session cost.

Omitted leaves the last reported cost unchanged. `null` clears it. A value replaces it.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"usage_update"`.

**size** `uint64` *required*

Total context window size in tokens.

* Minimum: `0`

**used** `uint64` *required*

Tokens currently in context.

* Minimum: `0`

**notice** `object`

Information for the user that is not part of session history.

No Client capability is required. Clients that do not understand or
present notices MAY ignore them.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**description** `string | null`

Optional plain-text detail or guidance.

Omitted and `null` are equivalent and mean no description was supplied.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"notice"`.

**severity** `[NoticeSeverity](#noticeseverity)` *required*

Presentation severity hint.

**title** `string` *required*

Required non-empty plain-text title that can stand alone.

* Min length: `1`

**compaction\_update** `object`

A context compaction has been created or updated.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**compactionId** `[CompactionId](#compactionid)` *required*

The Agent-owned ID of this compaction, unique within the session.

**error** `string | null`

Human-readable details of a compaction error, in plain text.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"compaction_update"`.

**status** `[CompactionStatus](#compactionstatus) | null`

Current lifecycle status.

Omission leaves the status unchanged, `null` resets it to `in_progress`, and a value
replaces it. A new compaction starts as `in_progress`.

**summary** `[ContentBlock\[\]](#contentblock) | null`

Complete replacement user-displayable summary content for the compaction.

**compaction\_summary\_chunk** `object`

A content block appended to a context compaction's retained summary.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**compactionId** `[CompactionId](#compactionid)` *required*

ID of the compaction whose summary receives this content.

**content** `[ContentBlock](#contentblock)` *required*

One content block to append.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"compaction_summary_chunk"`.

**replay\_complete** `object`

The history replay requested by `session/resume` is complete for this session.

Every update for the session between the `session/resume` request and
this update is replayed history. Every update after it is not.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionUpdate** `string` *required*

The discriminator value. Must be `"replay_complete"`.

**subagent\_update** `object`

Announces a child session created and owned by this session, or updates
that ownership association's metadata.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**additionalDirectories** `[AbsolutePath\[\]](#absolutepath) | null`

Additional workspace roots for the child. Each path MUST be absolute.

Optional and nullable. Omitted means unchanged. `null` clears the
reported value. While unset, the child inherits its immediate parent's
effective additional directories, independently of `cwd`. A concrete
array replaces the whole list. `[]` reports no additional directories.

**capabilities** `[SubagentSessionCapabilities](#subagentsessioncapabilities) | null`

Client-initiated session mutations permitted for this subagent session.

Read-only operations retain their normal protocol semantics and
capability requirements.

**cwd** `[AbsolutePath](#absolutepath) | null`

The child's working directory. Must be an absolute path.

Optional and nullable. Omitted means unchanged. `null` clears the
reported value. While unset, the child inherits its immediate parent's
effective working directory.

**description** `string | null`

The parent's human-readable description of the child's role or purpose.
May contain Markdown.

Optional and nullable. Omitted means unchanged. `null` clears it. This is
current display metadata, not the history of instructions sent to the child.

**sessionId** `[SessionId](#sessionid)` *required*

The opaque session ID identifying the child in all ACP messages.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"subagent_update"`.

**state** `[StateUpdate](#stateupdate) | null`

The child's current foreground state, mirrored onto its parent association.

Optional and nullable. Omitted means unchanged. `null` removes the
current report and leaves activity unconfirmed (not idle or cancelled).
A concrete `StateUpdate` replaces the entire previous snapshot.

**title** `string | null`

The parent's human-readable display title for this child, in plain text. It need not be unique.

Optional and nullable. Omitted means unchanged. `null` clears it. If no
title is set, the Client chooses a fallback presentation.

**session\_message** `object`

A message upsert observed in this session's transcript, sent to or
received from another session.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**content** `[ContentBlock\[\]](#contentblock) | null`

Omitted leaves content unchanged. `null` clears it. A concrete array
replaces the whole content collection.

**messageId** `[MessageId](#messageid)` *required*

Identifier of this message within the enclosing session's transcript.

**recipientMessageId** `[MessageId](#messageid) | null`

On an outgoing view, the `messageId` of the same message's incoming view in the
recipient's transcript.

Omitted leaves the stored value unchanged. `null` clears it. A value replaces it. It can arrive
after the message starts streaming.

**recipientSessionId** `[SessionId](#sessionid) | null`

The receiving session.

Omitted leaves the stored value unchanged. `null` clears it. A value replaces it.

**senderMessageId** `[MessageId](#messageid) | null`

On an incoming view, the `messageId` of the same message's outgoing view in the
sender's transcript.

Omitted leaves the stored value unchanged. `null` clears it. A value replaces it. It can arrive
after the message starts streaming.

**senderSessionId** `[SessionId](#sessionid) | null`

The sending session.

Omitted leaves the stored value unchanged. `null` clears it. A value replaces it.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"session_message"`.

**session\_message\_chunk** `object`

One content block appended to a sent or received session message.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `[ContentBlock](#contentblock)` *required*

A single content block appended to the message.

**messageId** `[MessageId](#messageid)` *required*

Identifier of this message within the enclosing session's transcript.

**sessionUpdate** `string` *required*

The discriminator value. Must be `"session_message_chunk"`.

**other** `object`

Custom or future session update.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Receivers that do not understand this update type SHOULD preserve the
raw payload when storing, replaying, proxying, or forwarding session
history, and otherwise ignore it or display it generically.

**Properties**

**sessionUpdate** `string` *required*

Custom or future session update type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## StateUpdate

A snapshot of the session's aggregate foreground activity.

Foreground work is the Agent's active response or workflow in the session,
including model processing, tool execution, and waiting for user action needed
to continue that work. It can start with a prompt or be Agent-initiated, for
example to pursue an ongoing goal or follow up on a completed background task.
Either way, the Agent MUST report `running` when foreground work starts,
or `requires_action` if it starts blocked on user action, and `idle` when it
ends. The Agent SHOULD include a stop reason on that idle update.
Agent-initiated work does not require a prompt request or a synthetic user
message.

`running` may precede user-message insertion, for example during a foreground
hook. It is not acknowledgment of insertion, and rejecting a prompt does not
itself end foreground work.

Background activity can continue and emit other `session/update` notifications
while `idle`. Those notifications, including a detached task's progress or
completion, do not by themselves change this state. A permission request only
warrants `requires_action` when foreground work is blocked on user action.

The Agent SHOULD report `requires_action` when the foreground workflow as a
whole cannot progress without user action, including permissions or elicitations.
Once reported, it MUST report `running` when progress resumes, or `idle` when
work ends without resuming.
If other foreground work can progress, the state remains `running`. Resolving
one of several requests does not itself change the state. Agents SHOULD ignore
responses for work that has already ended rather than use them to resume it.

A new session defaults to idle until a state update reports otherwise.
Resume MUST send a current-state snapshot after any replay and before its
response. The snapshot reports foreground state after resuming.
The response alone does not imply idle.
Repeated snapshots are idempotent, not additional work or completions.
A repeated state may carry updated information without another state transition.
The Agent MUST report `idle` when no foreground activity remains. Completing
an individual activity while other foreground work continues does not require
an idle boundary. Local commands use the same lifecycle even without model work.

See protocol docs: [Session States](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#session-states)

**Type:** Union

**running** `object`

Foreground work is in progress.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

**state** `string` *required*

The discriminator value. Must be `"running"`.

**idle** `object`

No foreground work is active. Background activity may continue.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

**state** `string` *required*

The discriminator value. Must be `"idle"`.

**stopReason** `string | null`

Why foreground work stopped. The value selects one of this type's variants, which may add fields of their own.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting a stop reason.

See protocol docs: [Stop Reasons](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#stop-reasons)

**Alternatives (`anyOf`):**

**end\_turn** `object`

The active work ended successfully.
Includes locally handled commands that required no model call.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"end_turn"`.

**max\_tokens** `object`

The active work ended because the Agent reached the maximum number of tokens.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"max_tokens"`.

**max\_turn\_requests** `object`

The active work ended because the Agent reached the maximum number of
model requests for the foreground work.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"max_turn_requests"`.

**refusal** `object`

The active work ended because the Agent refused to continue.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"refusal"`.

**cancelled** `object`

The user or Client chose to stop the work: via `session/cancel`, by
closing the session, or through an interaction the Agent offers, such
as a permission option that tells the Agent to stop. A child session
also reports this reason when its parent cancels its work. Other work
the Agent stops for its own reasons uses another reason, such as
`error` for an internal timeout.

Agents MUST report this stop reason on an idle `state_update` when
cancellation ends active foreground work, even if aborting causes
exceptions. Agents MUST catch these errors and report `cancelled`, not
`error`.

**Properties**

**stopReason** `string` *required*

The discriminator value. Must be `"cancelled"`.

**error** `object`

The active work ended because something failed.

This includes pre-insertion foreground work. A prompt failure before
insertion also requires an error response to `session/prompt`. After
insertion, the prompt's response remains successful.

**Properties**

**error** `[Error](#error) | null`

The failure, as a JSON-RPC error object.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting failure details.
Agents SHOULD include it.

**stopReason** `string` *required*

The discriminator value. Must be `"error"`.

**other** `object`

Custom or future stop reason.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

**Properties**

**stopReason** `string` *required*

Custom or future stop reason.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

**none** `object`

No stop reason: `stopReason` is omitted or `null`.

**Properties**

**stopReason** `null`

**requires\_action** `object`

Foreground work is blocked on user action.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

**state** `string` *required*

The discriminator value. Must be `"requires_action"`.

**unknown** `object`

The Agent cannot currently determine foreground activity.
This replaces previously confirmed activity without ending the work or session.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

**state** `string` *required*

The discriminator value. Must be `"unknown"`.

**other** `object`

Custom or future session state.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Unless the Client advertised support for this state, Agents MUST still
report the standard states.
Clients MUST NOT treat an unrecognized state as `idle` or present the
previous state as confirmed, and show a generic busy state until a known
state arrives.

**Properties**

**state** `string` *required*

Custom or future session state.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## StringFormat

String format types for string properties in elicitation schemas.

**Type:** Union

**email** `string`

Email address format.

**uri** `string`

URI format.

**date** `string`

Date format (YYYY-MM-DD).

**date-time** `string`

Date-time format (RFC 3339).

**other** `string`

Custom or future string format.

Unknown formats are preserved. Implementations that do not understand a
format SHOULD treat it as an annotation rather than rejecting the schema.

## StringMultiSelectItems

String item schema for multi-select enum properties.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**enum** `"string"[]` *required*

Allowed enum values. Must contain at least one value.

## StringPropertySchema

Schema for string properties in an elicitation form.

When `enum` or `oneOf` is set, this represents a single-select enum
with `"type": "string"`.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**default** `string | null`

Default value.

Optional. Omitted and `null` are equivalent and mean no default value is provided.

**description** `string | null`

Plain-text help for the user filling out this field.

Optional. Omitted and `null` are equivalent and mean no description is provided.

**enum** `"string"[] | null`

Enum values for untitled single-select enums.
Must contain at least one value when present.
Optional. Omitted and `null` are equivalent and mean no untitled single-select choices are
declared by `enum`.

**format** `[StringFormat](#stringformat) | null`

String format.

Optional. Omitted and `null` are equivalent and mean there is no format constraint.

**maxLength** `integer | null`

Maximum string length.

Optional. Omitted and `null` are equivalent and mean there is no maximum length constraint.

* Minimum: `0`

**minLength** `integer | null`

Minimum string length.

Optional. Omitted and `null` are equivalent and mean there is no minimum length constraint.

* Minimum: `0`

**oneOf** `[EnumOption\[\]](#enumoption) | null`

Titled enum options for titled single-select enums.
Must contain at least one option when present.
Optional. Omitted and `null` are equivalent and mean no titled single-select choices are
declared by `oneOf`.

**title** `string | null`

Optional plain-text label for this field in the form.

Optional. Omitted and `null` are equivalent and mean no title is provided.

## SubagentSessionCapabilities

Client-initiated session mutations permitted for a specific subagent session.

A mutation requires an explicit per-child capability. Support for the method
on ordinary sessions does not grant support on a child.

See protocol docs: [Restricted methods](https://agentclientprotocol.com/protocol/v2/subagents.md#restricted-methods)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**cancel** `[SessionCancelCapabilities](#sessioncancelcapabilities) | null`

Permits the Client to cancel this child's current work without ending
the session. Omitted and `null` are equivalent and mean unsupported. An object (including
`\{\}`) means supported.

## SubagentUpdate

Notification that the enclosing parent session created and owns a child session.

Later updates modify the existing association's metadata, not its ownership.

Sent on the immediate parent session. The first update for an unknown
`sessionId` announces the child and MUST be sent
before any live request or notification bearing the child's session ID,
including messages naming it as sender or recipient. Child events are
delivered automatically. No separate child resume or subscription is needed.
Understanding this update, registering child sessions, and applying their
operation restrictions are baseline requirements. No Client capability
is required.

Only `sessionId` is required. Other fields have
patch semantics: omitted fields leave the stored value unchanged, `null`
clears or unsets the value, and concrete values replace it. A concrete
`_meta` object instead patches the stored metadata by top-level key. For
`state`, `null` removes the current state report and leaves activity
unconfirmed. It does not report idle or cancellation. A child whose capabilities are
unset permits no Client-initiated session mutations.

`cwd` and `additionalDirectories` report where the Agent placed the child.
While unset, each inherits the immediate parent's effective value.
The title and description provide the parent's display metadata for the
child. Agents SHOULD mirror known child state changes in the parent's
`state` using the same `StateUpdate` snapshot as the
ordinary `state_update` notification on the child session. This reports
child state, not a separate parent-owned lifecycle. Clients MUST
apply duplicate reports idempotently.
Completing or cancelling work does not end the association: the parent may
message the same child again. Individual messages and their outcomes do not
change this association.

See protocol docs: [Subagents](https://agentclientprotocol.com/protocol/v2/subagents.md)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**additionalDirectories** `[AbsolutePath\[\]](#absolutepath) | null`

Additional workspace roots for the child. Each path MUST be absolute.

Optional and nullable. Omitted means unchanged. `null` clears the
reported value. While unset, the child inherits its immediate parent's
effective additional directories, independently of `cwd`. A concrete
array replaces the whole list. `[]` reports no additional directories.

**capabilities** `[SubagentSessionCapabilities](#subagentsessioncapabilities) | null`

Client-initiated session mutations permitted for this subagent session.

Read-only operations retain their normal protocol semantics and
capability requirements.

**cwd** `[AbsolutePath](#absolutepath) | null`

The child's working directory. Must be an absolute path.

Optional and nullable. Omitted means unchanged. `null` clears the
reported value. While unset, the child inherits its immediate parent's
effective working directory.

**description** `string | null`

The parent's human-readable description of the child's role or purpose.
May contain Markdown.

Optional and nullable. Omitted means unchanged. `null` clears it. This is
current display metadata, not the history of instructions sent to the child.

**sessionId** `[SessionId](#sessionid)` *required*

The opaque session ID identifying the child in all ACP messages.

**state** `[StateUpdate](#stateupdate) | null`

The child's current foreground state, mirrored onto its parent association.

Optional and nullable. Omitted means unchanged. `null` removes the
current report and leaves activity unconfirmed (not idle or cancelled).
A concrete `StateUpdate` replaces the entire previous snapshot.

**title** `string | null`

The parent's human-readable display title for this child, in plain text. It need not be unique.

Optional and nullable. Omitted means unchanged. `null` clears it. If no
title is set, the Client chooses a fallback presentation.

## SystemPrompt

Client-provided system-level instructions for a session.

Clients MUST only send this when the Agent advertises
`session.systemPrompt`. Agents that cannot apply it, for example because of
an unadvertised mode or an unsupported content block type, MUST return an
error instead of creating or resuming the session.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `[ContentBlock\[\]](#contentblock)` *required*

The system prompt content.

Agents advertising the capability MUST accept `text` content blocks.
Clients MUST NOT send other content block types until a future
capability allows them, and Agents MUST return an error for content
blocks they do not support, including unknown types.

Clients MUST NOT send an empty array. Agents MAY reject one with
`-32602` without creating or resuming the session.

**mode** `[SystemPromptMode](#systempromptmode)` *required*

How the Agent combines `content` with its own instructions.

Required. Agents MUST return an error for a mode they do not support rather than
treating it as `append` or `override`.

## SystemPromptMode

How the Agent combines a Client-provided system prompt with its own instructions.

Unknown modes are preserved so they can be stored,
proxied, or forwarded. An Agent MUST return an error for a mode it does not
support rather than treating it as `append` or `override`.

**Type:** Union

**append** `string`

Add the content to the Agent's own instructions rather than replacing them.

Every Agent that advertises `session.systemPrompt` supports this mode.
Agents SHOULD give the content system-level precedence, for example in the
model's system prompt or developer instructions rather than in user-turn
content. Where it is placed and how it is formatted is implementation-defined.

**override** `string`

Replace the Agent's built-in default instructions with the content.

This does not change tool availability, MCP servers, permissions, or session
configuration. Context the Agent supplies from the workspace or environment
MAY still be included. Clients that use this mode take responsibility for any
tool guidance or safety instructions the Agent's default instructions
provided, and MUST only use it when the Agent advertises
`session.systemPrompt.mode.override`.

**other** `string`

Custom or future system prompt mode.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## Terminal

A display-only reference to an Agent-owned terminal.

Terminal state and output are delivered separately through
`terminal_update` and `terminal_output_chunk` session updates.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**terminalId** `[TerminalId](#terminalid)` *required*

The ID of the terminal to display.

## TerminalAuthCapabilities

Capabilities for terminal authentication methods.

Supplying `\{\}` means the Client can reproduce the configured Agent
invocation in an interactive terminal and supports terminal authentication
methods.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## TerminalCancelCapabilities

Capability to cancel a terminal with `terminal/cancel`.

Supplying `\{\}` advertises support. An omitted or `null` `cancel` does not.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## TerminalCapabilities

Client-initiated controls a terminal currently supports.

See protocol docs: [Cancelling Terminals](https://agentclientprotocol.com/protocol/v2/tool-calls.md#cancelling-terminals)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**cancel** `[TerminalCancelCapabilities](#terminalcancelcapabilities) | null`

Permits the Client to cancel this terminal with `terminal/cancel`.

Omitted and `null` are equivalent and mean unsupported. An object (including `\{\}`)
means supported. Agents SHOULD stop advertising it once the terminal reports `exitStatus`.

## TerminalExitStatus

Exit information for an Agent-owned terminal.

The presence of this object marks the terminal as exited, even when neither
an exit code nor a signal is known.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**exitCode** `integer | null`

Process exit code as the platform reports it, when known. Negative values are
allowed, for example signed Windows exit codes. Omitted and `null` are equivalent.

**signal** `string | null`

Signal that terminated the process, when known.

Agents SHOULD use the conventional platform signal name. POSIX examples
include `SIGTERM`, `SIGKILL`, and `SIGINT`. Other platforms may use a
platform-specific name. Omitted and `null` are equivalent.

## TerminalId

Unique identifier for an Agent-owned terminal within a session.

**Type:** `string`

## TerminalOutput

An authoritative replacement snapshot of terminal output bytes.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**data** `string` *required*

Base64-encoded replacement terminal output bytes.

* Content encoding: `base64`

## TerminalOutputChunk

A chunk of bytes appended to an Agent-owned terminal's output.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**data** `string` *required*

Independently base64-encoded terminal output bytes.

* Content encoding: `base64`

**terminalId** `[TerminalId](#terminalid)` *required*

The terminal receiving these bytes.

## TerminalSize

The size of an Agent-owned terminal in character cells.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**cols** `uint16` *required*

Number of columns. At least 1.

| Constraint | Value |
| - | - |
| Minimum | `1` |
| Maximum | `65535` |

**rows** `uint16` *required*

Number of rows. At least 1.

| Constraint | Value |
| - | - |
| Minimum | `1` |
| Maximum | `65535` |

## TerminalUpdate

An upsert for the stored state of an Agent-owned terminal.

Only `terminalId` is required. Other fields have patch
semantics: omitted fields leave the stored value unchanged, `null` clears
it, and concrete values replace it. A concrete `_meta` object instead
patches the stored metadata by top-level key. When the terminal ID is new,
omitted fields start unknown.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**capabilities** `[TerminalCapabilities](#terminalcapabilities) | null`

Client-initiated controls this terminal currently supports, such as cancellation.

Omission leaves the capabilities unchanged, `null` clears them, and an object replaces
the whole previous value. A new terminal starts with none.

**command** `string | null`

The command being run.

**cwd** `[AbsolutePath](#absolutepath) | null`

The absolute working directory of the command.

**exitStatus** `[TerminalExitStatus](#terminalexitstatus) | null`

Exit information. A concrete object marks the terminal as exited.

**output** `[TerminalOutput](#terminaloutput) | null`

An authoritative replacement snapshot of terminal output bytes.

**size** `[TerminalSize](#terminalsize) | null`

The terminal size the command runs with, when known.

Clients can render output at this size so that column layouts, progress bars,
and cursor-positioned output display as the program wrote them.

**terminalId** `[TerminalId](#terminalid)` *required*

Unique identifier for this terminal within the session.

## TextCommandInput

All text that was typed after the command name is provided as input.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**hint** `string` *required*

Plain-text hint about the input the command expects. The Client can display it
when the user hasn't provided input yet.

## TextContent

Text provided to or from an LLM.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**annotations** `[Annotations](#annotations) | null`

Optional annotations that help Clients decide how to display or route this content.

Omitted and `null` are equivalent and mean no annotations are provided.

**text** `string` *required*

Text payload carried by this content block. It may be plain text or Markdown.

## TextResourceContents

Text-based resource contents.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**mimeType** `[MediaType](#mediatype) | null`

MIME type describing the encoded media payload.

Omitted and `null` are equivalent and mean the MIME type is not specified.

**text** `string` *required*

The contents of the resource. Its `mimeType`, when provided, describes the format.

**uri** `string` *required*

URI associated with this resource or media payload.

* Format: `uri`

## TitledMultiSelectItems

Titled multi-select items use `anyOf` and omit `type`.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**anyOf** `[EnumOption\[\]](#enumoption)` *required*

Titled enum options. Must contain at least one option.

## ToolCallCancelCapabilities

Capability to cancel a tool call with `tool_call/cancel`.

Supplying `\{\}` advertises support. An omitted or `null` `cancel` does not.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

## ToolCallCapabilities

Client-initiated controls a tool call currently supports.

See protocol docs: [Cancelling Tool Calls](https://agentclientprotocol.com/protocol/v2/tool-calls.md#cancelling-tool-calls)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**cancel** `[ToolCallCancelCapabilities](#toolcallcancelcapabilities) | null`

Permits the Client to cancel this tool call with `tool_call/cancel`.

Omitted and `null` are equivalent and mean unsupported. An object (including `\{\}`)
means supported. Agents SHOULD stop advertising it once the tool call reaches a final status.

## ToolCallContent

Content produced by a tool call.

Tool calls can produce different types of content including standard
content blocks (text, images), file diffs, or display-only terminals.

See protocol docs: [Content](https://agentclientprotocol.com/protocol/v2/tool-calls.md#content)

**Type:** Union

**content** `object`

Standard content block (text, images, resources).

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `[ContentBlock](#contentblock)` *required*

The actual content block.

**type** `string` *required*

The discriminator value. Must be `"content"`.

**diff** `object`

File modification shown as a diff.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**changes** `[DiffChange\[\]](#diffchange)` *required*

Structured file changes described by this diff. Agents MUST include at least one entry.

Clients can use this field without parsing patch text to determine affected paths.

**patch** `[DiffPatch](#diffpatch) | null`

Renderable patch text for some or all of the structured changes.

Agents SHOULD provide patch text whenever feasible. Omitted and `null` are
equivalent and mean no renderable patch text was provided.

**type** `string` *required*

The discriminator value. Must be `"diff"`.

**terminal** `object`

A display-only reference to an Agent-owned terminal.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**terminalId** `[TerminalId](#terminalid)` *required*

The ID of the terminal to display.

**type** `string` *required*

The discriminator value. Must be `"terminal"`.

**session** `object`

A display-only reference to another session, such as a subagent.

**Properties**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**sessionId** `[SessionId](#sessionid)` *required*

The referenced session.

**type** `string` *required*

The discriminator value. Must be `"session"`.

**other** `object`

Custom or future tool call content.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Receivers that do not understand this content type SHOULD preserve the
raw payload when storing, replaying, proxying, or forwarding tool call
output, and otherwise ignore it or display it generically.

**Properties**

**type** `string` *required*

Custom or future tool call content type.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

## ToolCallContentChunk

A streamed item of tool-call content.

Tool-call content chunks append one `ToolCallContent` item to the current
content for the matching `toolCallId`. Agents can send a `tool_call_update`
with `content` when they need to replace the whole content collection
instead.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
This metadata is scoped to the chunk and does not patch stored metadata.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**content** `[ToolCallContent](#toolcallcontent)` *required*

A single item of content produced by the tool call.

**toolCallId** `[ToolCallId](#toolcallid)` *required*

The ID of the tool call this content belongs to.

## ToolCallId

Unique identifier for a tool call within a session.

**Type:** `string`

## ToolCallLocation

A file location being accessed or modified by a tool.

Enables Clients to implement "follow-along" features that track
which files the Agent is working with in real-time.

See protocol docs: [Following the Agent](https://agentclientprotocol.com/protocol/v2/tool-calls.md#following-the-agent)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**line** `integer | null`

Optional 1-based line number within the file. Omitted and `null` are equivalent and
mean no specific line. `0` is invalid.

* Minimum: `1`

**path** `[AbsolutePath](#absolutepath)` *required*

The absolute file path being accessed or modified.

## ToolCallPermissionSubject

Permission request details for a tool call.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**toolCall** `[ToolCallUpdate](#toolcallupdate)` *required*

Details about the tool call requiring permission.

Clients apply this to their stored tool call exactly like a `tool_call_update`
notification, in the order it was received, before showing the prompt. A first-seen
`toolCallId` creates the tool call.

## ToolCallStatus

Execution status of a tool call.

Tool calls progress through different statuses during their lifecycle.

See protocol docs: [Status](https://agentclientprotocol.com/protocol/v2/tool-calls.md#status)

**Type:** Union

**pending** `string`

The tool call hasn't started running yet, for example because its input is
streaming, it is awaiting approval, or it is scheduled to run later.

**in\_progress** `string`

The tool call is currently running.

**paused** `string`

The tool call has started, is not running now, and will not continue until
something resumes it. It may return to `in_progress` any number of times.

**completed** `string`

The tool call completed successfully.

**failed** `string`

The tool call failed with an error.

**cancelled** `string`

The tool call was cancelled before it completed.

**other** `string`

Custom or future tool call status.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants.

Clients treat a tool call with an unrecognized status as still in progress.

## ToolCallUpdate

Represents an upsert for a tool call that the language model has requested.

Tool calls are actions that the Agent executes on behalf of the language model,
such as reading files, executing code, or fetching data from external sources.

Only `toolCallId` is required. Other fields have patch semantics:
omitted fields leave the existing tool call value unchanged, `null` clears or
unsets the value, and concrete values replace the previous value. For
collection fields, concrete arrays replace the previous collection, and both
`null` and `[]` clear the collection. A concrete `_meta` object instead
patches the stored metadata by top-level key. When a Client receives a tool
call ID it has not seen before, omitted fields start at their protocol defaults.

See protocol docs: [Tool Calls](https://agentclientprotocol.com/protocol/v2/tool-calls.md)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**capabilities** `[ToolCallCapabilities](#toolcallcapabilities) | null`

Client-initiated controls this tool call currently supports, such as cancellation.

Omission leaves the capabilities unchanged, `null` clears them, and an object replaces
the whole previous value. A new tool call starts with none.

**content** `[ToolCallContent\[\]](#toolcallcontent) | null`

Content produced by the tool call.

**kind** `[ToolKind](#toolkind) | null`

The category of tool being invoked.
Helps Clients choose appropriate icons and UI treatment.

Omission leaves the kind unchanged, `null` resets it to `other`, and a value replaces it.
A new tool call starts as `other`.

**locations** `[ToolCallLocation\[\]](#toolcalllocation) | null`

File locations affected by this tool call.
Enables "follow-along" features in Clients.

**name** `string | null`

Programmatic name of the tool being invoked.

This field is optional and has patch semantics. Omission means no
change, `null` clears the name, and a string replaces it. For a tool
call ID the Client has not seen before, omission or `null` means that no
tool name is available.

**rawInput** `object`

Raw input parameters sent to the tool.

**rawOutput** `object`

Raw output returned by the tool.

**status** `[ToolCallStatus](#toolcallstatus) | null`

Current execution status of the tool call.

Omission leaves the status unchanged, `null` resets it to `pending`, and a value
replaces it. A new tool call starts as `pending`. Agents do not move a tool call
back to `pending` once it has another status.

**title** `string | null`

Human-readable plain-text title describing what the tool is doing.

Omission leaves the title unchanged, `null` unsets it, and a string replaces it.
A new tool call starts without a title.

**toolCallId** `[ToolCallId](#toolcallid)` *required*

Unique identifier for this tool call within the session.

## ToolKind

Categories of tools that can be invoked.

Tool kinds help Clients choose appropriate icons and optimize how they
display tool execution progress.

See protocol docs: [Reporting](https://agentclientprotocol.com/protocol/v2/tool-calls.md#reporting)

**Type:** Union

**read** `string`

Reading files or data.

**edit** `string`

Modifying files or content.

**delete** `string`

Removing files or data.

**move** `string`

Moving or renaming files.

**search** `string`

Searching for information.

**execute** `string`

Running commands or code.

**think** `string`

Internal reasoning or planning.

**fetch** `string`

Retrieving external data.

**switch\_mode** `string`

Changing the session's mode, a [config
option](https://agentclientprotocol.com/protocol/v2/session-config-options.md)
with the `mode` category.

**other** `string`

Other tool types (default).

**unknown** `string`

Custom or future tool kind.

Values beginning with `_` are reserved for implementation-specific
extensions. Unknown values that do not begin with `_` are reserved for
future ACP variants. Clients display an unrecognized kind as `other`.

## UnknownStateUpdate

The Agent cannot currently determine foreground activity.

The Agent MUST report this when it can no longer observe the session's
foreground work. Silence alone is not lost observability. The Client MUST
stop presenting the previous state as confirmed current activity, but MAY
retain it as last known. A later state replaces this snapshot normally.

This is not a task outcome or session closure. It does not cancel work, resolve
pending requests, or revoke capabilities. If a control is no longer available,
the Agent updates the capabilities explicitly. Unfinished tool calls and
terminals stay as last reported. The Agent MUST NOT invent a final status
for them, and Clients MUST NOT present them as confirmed live activity.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**background** `[BackgroundWork\[\]](#backgroundwork) | null`

Work running independently of foreground work, as a complete snapshot.

Optional. Omitted and `null` are equivalent and mean the Agent is not reporting
background work, not that nothing is running. `[]` means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.

See protocol docs: [Background Work](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle.md#background-work)

## UnsupportedProtocolVersionErrorData

Data for the `-32022` (Unsupported protocol version) error.

See protocol docs: [Version Negotiation](https://agentclientprotocol.com/protocol/v2/initialization.md#version-negotiation)

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and `null` are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/extensibility.md)

**requested** `[ProtocolVersion](#protocolversion)` *required*

The protocol version the Client requested.

**supported** `[ProtocolVersion\[\]](#protocolversion)` *required*

The protocol versions the Agent supports.

## UsageUpdate

Context window and cost update for a session.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**cost** `[Cost](#cost) | null`

Cumulative session cost.

Omitted leaves the last reported cost unchanged. `null` clears it. A value replaces it.

**size** `uint64` *required*

Total context window size in tokens.

* Minimum: `0`

**used** `uint64` *required*

Tokens currently in context.

* Minimum: `0`

## UserMessage

A user message upsert.

Only `messageId` is required. `content` has patch semantics:
an omitted field leaves existing message content unchanged, `null` clears the
value, and a concrete array replaces the previous value. For a new
`messageId`, omitted `content` starts empty. `content` is replaced as a
whole array. Send `[]` or `null` to clear it.

Message updates and chunks are applied in the order they are received. When
a `user_message` update includes `content`, that array replaces any content
previously accumulated for the message, including content from earlier
chunks. Later chunks with the same `messageId` append to the current
content.

**Type:** Object

**Properties:**

**\_meta** `object | null`

The \_meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged. `null`
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to `null` is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT assign meaning to keys they do not recognize.

See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v2/extensibility.md#metadata-patches)

**content** `[ContentBlock\[\]](#contentblock) | null`

Complete replacement content for this message.

**messageId** `[MessageId](#messageid)` *required*

A unique identifier for the message.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.