Skip to main content
Implementations can add custom behavior without breaking peers that don’t know about it. They can attach custom data in _meta fields, define custom methods and enum values whose names start with _, and advertise custom capabilities during initialization.

Experimental features and negotiation

Stability, support, and forward compatibility are separate:
  • Stability describes whether a feature is part of the baseline schema or is an experimental addition that may change or be removed.
  • Support describes whether a peer implements the feature’s behavior, as advertised by its capability or another explicitly documented negotiation mechanism.
  • Forward compatibility describes whether a receiver can safely accept a field or variant without implementing its behavior.
Negotiating protocolVersion: 2 selects the v2 protocol, not all experimental features in schema/v2/schema.unstable.json. There is no connection-wide “unstable schema” flag. Implementations MUST NOT infer peer support from their own schema selection, generated types, or local feature flags.

When a capability is required

Each feature defines its negotiation requirements, whether stable or experimental:
  • Optional operations requiring peer participation need an advertised capability or another explicitly documented negotiation mechanism. Callers MUST follow that feature’s requirements. An omitted or null support marker means unsupported.
  • Informational additions with a safe fallback may be sent without a capability when the feature explicitly permits it. A receiver may ignore or generically display them. Senders MUST NOT depend on feature-specific presentation, acknowledgement, or action.
  • Local feature flags control implementation and rollout. They neither advertise peer support nor replace a required capability.
For example: These rules are specific to v2. Features with capability gates in v1 retain those gates on v1 connections. Experimental schema revisions may disagree about a feature’s shape or semantics. A capability advertises the behavior defined for that feature, not compatibility with every revision of the unstable schema. Experiments that require matching revisions should define feature-specific revision negotiation rather than rely on a global unstable-schema flag.

Validation

Receivers MUST accept unknown fields and genuinely unknown discriminator values where their schema permits them. Closed discriminators remain closed. For open tagged unions, receivers validate the fallback’s required envelope fields, then preserve unknown payloads or use safe generic handling. Accepting an unknown variant does not advertise support for its behavior. A malformed value for a discriminator recognized by the receiver MUST NOT fall through to the unknown-variant fallback. Validate recognized variants against their defined shapes. Forward compatibility does not make operational request parameters permissive. If a request can’t be fulfilled without understanding an unknown variant, the receiver MUST reject it with -32602 (Invalid params). Otherwise, it degrades gracefully as the field documents, for example by ignoring the variant or displaying it generically. Payload validation and capability checks are separate. A schema-valid request is not necessarily supported or permitted on the connection.

The _meta field

Protocol object types that define a _meta field can use it to attach custom information. This includes requests, responses, notifications, and nested object types such as content blocks, tool calls, plan entries, and capability objects. Primitive types and object types that do not define _meta cannot carry it. _meta is an object with string keys ({ [key: string]: unknown }). Receivers treat any other value as omitted. Except for metadata patches, omitted and null are equivalent and mean no metadata. Metadata on a chunk is scoped to that chunk and does not patch stored metadata.
Clients may propagate fields to the agent for correlation purposes, using a namespaced key such as com.example/requestId. The following root-level keys in _meta are reserved, as in MCP, for interop with MCP implementations and OpenTelemetry tooling. When present, their values MUST use the corresponding W3C format: Other unprefixed _meta keys, and keys whose prefix has agentclientprotocol as its second label (such as io.agentclientprotocol/<name>), are reserved for ACP. Keys and prefixes that MCP reserves keep their MCP meaning, and Agents preserve them when forwarding MCP content. Extension keys SHOULD use a reverse-DNS prefix the implementer controls, as described below. Implementations MUST NOT add any custom fields at the root of a type that’s part of the specification. All possible names are reserved for future protocol versions.

Metadata patches

Upsert updates carry a top-level _meta that the Client stores with the entity they create or update: tool_call_update (including the toolCall of a permission request’s tool_call subject), terminal_update, user_message, agent_message, agent_thought, session_info_update, and compaction_update. Clients apply this _meta as a patch, one top-level key at a time, using the same rule as the update’s other fields:
  • Omit _meta to leave the stored metadata unchanged.
  • Set _meta to null to clear all stored metadata.
  • Send an object to patch the stored metadata:
    • Keys the object omits keep their stored values, so _meta: {} changes nothing.
    • A key set to null is removed. Removing a key that is not stored does nothing.
    • Any other value replaces that key’s stored value whole. Clients MUST NOT merge nested objects, and a null nested inside the value is ordinary data.
For example, if a tool call’s stored _meta is:
and a later update sends:
the stored _meta becomes:
A key set to null never holds stored data, including on the first update for an entity, so a key cannot store a literal JSON null. An extension that needs one can wrap it, for example { "value": null }. Stored metadata with no keys is the same as no metadata. Because each top-level key is replaced whole, the implementation that owns a key, such as an extension using a namespaced key, can set, replace, or remove it without knowing the other keys. This does not resolve conflicts between writers: updates to the same key apply in receive order, and _meta: null clears every key. Replay and resynchronization apply these patches exactly as live delivery does and never reset metadata implicitly. An update that replaces another field, such as a message update with content, leaves the _meta keys it does not mention. To send the current metadata of an entity the Client may already hold, the Agent removes stale keys: it either sets each one to null alongside the current keys, or sends _meta: null and then the current object in a later update. The second form is not atomic, so the Client may briefly hold no metadata. Send _meta: null, not {}, when the current metadata is empty. Intermediaries that combine updates MUST keep removals and clears. Other _meta fields are not patches, including the _meta of plan_update. Metadata on requests, responses, notification params, chunks, content items, snapshots, and other nested objects describes only the object that carries it, and a key set to null there is ordinary data. Do not copy such metadata into a patch unchanged, for example from a session/list entry into a session_info_update: its null key values would become removals. Put data about a single notification, rather than the entity, in the session/update notification’s params._meta.

Unknown object fields

Receivers MUST ignore unrecognized properties of protocol-defined objects, including properties nested within capability objects. An otherwise valid message MUST NOT be rejected solely because it contains unrecognized properties. Ignoring a property means not assigning protocol behavior to it. It does not imply support for the feature it describes. This rule does not relax validation of known properties or change their documented handling of malformed values. Unknown enum values, discriminator values, and method names follow their own rules. They are not unknown object fields. A malformed value for a known discriminator MUST NOT be treated as an unknown variant. Ignoring an unknown property means not interpreting it. Implementations are not required to remove it from the message.

Extension methods

The protocol reserves any method name starting with an underscore (_) for custom extensions, so custom methods can’t conflict with methods added in future protocol versions. Names starting with $/ are reserved for protocol-level messages such as $/cancel_request, and all other names are reserved for ACP. Extension methods follow standard JSON-RPC 2.0 semantics:

Custom requests

In addition to the requests specified by the protocol, implementations MAY expose and call custom JSON-RPC requests as long as their name starts with an underscore (_).
Upon receiving a custom request, implementations MUST respond accordingly with the provided id:
If the receiving end doesn’t recognize the custom method name, it MUST respond with the standard “Method not found” error:
To avoid such cases, extensions SHOULD advertise their custom capabilities so that callers can check their availability first and adapt their behavior or interface accordingly.

Custom notifications

Custom notifications are regular JSON-RPC notifications that start with an underscore (_). Like all notifications, they omit the id field:
Unlike with custom requests, implementations SHOULD ignore any notification they don’t recognize, whether it is custom or from a later ACP version.

Enum and tagged-union variants

ACP also reserves _-prefixed values for implementation-specific extensions in enum-like fields and tagged unions that define a custom or future fallback.
  • Values beginning with _ are reserved for implementation-specific extensions.
  • Unknown values that do not begin with _ are reserved for future ACP variants.
  • Extensions MUST NOT define custom non-underscore values.
  • Implementations MUST NOT treat unknown non-underscore values as custom extensions.
This rule applies only where the schema defines a fallback path. Most enums and tagged unions have one. The following are closed, and receivers reject values outside them:
  • ElicitationSchema.type, which is always object.
  • Embedded resource contents, which are text or blob contents, as in MCP.
  • Select config option options, which are a flat list of values or a list of groups.
  • The elicitation scope, which is either sessionId or requestId.
When storing, replaying, proxying, or forwarding data, implementations SHOULD preserve unknown values and any raw tagged-union payloads. When displaying an unknown value, implementations SHOULD fall back to generic UI behavior that matches the field’s purpose.

Advertising custom capabilities

Implementations SHOULD advertise support for extensions and their methods using namespaced entries in capability objects’ _meta fields:
  • Use capabilities._meta for standalone extensions or extensions that apply across capability groups.
  • Use a nested capability object’s _meta, where that object defines one, for extensions scoped to that capability. For example, an extension to session prompting belongs in capabilities.session.prompt._meta.
  • Creating a standard capability object to carry _meta still advertises the standard support associated with that object. An Agent MUST NOT send capabilities.session: { "_meta": ... } unless it supports all seven baseline session methods.
To avoid collisions with other extensions, follow MCP’s naming convention: prefix extension names with dot-separated labels in reverse-DNS order of a domain you control, followed by /. For example, use com.example/<name> for _meta keys, including capability entries, and _com.example/<name> for custom methods and custom enum values. Custom capability names MUST NOT be added as properties directly on either the root capability object or nested protocol-defined capability objects. Both sides advertise an extension under the same namespaced key, each using the nested capability object’s _meta where its side has one and capabilities._meta otherwise. An extension’s documentation states where each side advertises it. For example, an Agent can advertise an independent workspace extension without advertising session support:
Implementations can then negotiate custom features during initialization without breaking standard Clients and Agents.