Skip to main content
Elicitation lets an Agent ask a user for structured information through the Client. It is based on the locked MCP 2026-07-28 elicitation specification and supports two modes:
  • Form mode collects non-sensitive data using a restricted JSON Schema.
  • URL mode opens an out-of-band interaction for sensitive or externally hosted workflows such as OAuth.

User interaction requirements

Clients MUST clearly identify the Agent requesting information, respect user privacy, and provide clear decline and cancel controls. For form mode, Clients MUST let users review and modify responses before sending them. For URL mode, Clients MUST display the target host and obtain consent before navigating to it. Clients SHOULD present the request’s message so users understand what is requested and why.

Checking support

Clients advertise elicitation support in capabilities.elicitation during initialization.
Capability objects have the following semantics:
  • An omitted or null top-level elicitation field means elicitation is unsupported.
  • Form support exists only when form is explicitly present and non-null. URL support exists only when url is explicitly present and non-null.
  • An omitted or null mode field means that mode is not advertised.
  • A present capability object may advertise zero, one, or both modes. {} and {"form":null,"url":null} advertise no supported modes.
This deliberately differs from MCP 2026-07-28, where an empty elicitation capability retains the original form-only meaning. ACP requires each supported mode to be explicit. An Agent that forwards elicitation for an MCP server MUST NOT copy the Client’s capability object to that server unchanged. It advertises each mode the Client supports explicitly, and omits the MCP elicitation capability when the Client advertises no modes. Agents MUST NOT request a mode the Client has not advertised. Agents SHOULD provide a graceful fallback when the required mode is unavailable. If an Agent sends elicitation/create anyway, a Client with no elicitation capability (omitted or null) responds with -32601, as for any capability-gated method it did not advertise. A Client that advertised elicitation but not the requested mode responds with -32602 (Invalid params).

Creating an elicitation

The Agent sends an elicitation/create request directly over the ACP connection. This adapts the MCP 2026-07-28 data model. ACP also requires mode explicitly. It does not apply MCP’s omitted-mode form default. Every request has these fields. Each mode adds its own.
string
required
The elicitation mode: form or url.
string
required
A plain-text message explaining to the user what the Agent needs and why.
Scope is represented with flattened fields. Exactly one of sessionId or requestId MUST be present. Omit the unused field rather than sending null. With requestId, the Agent MUST NOT send toolCallId.
SessionId
The session, for a session-scoped request.
ToolCallId
Optional, with sessionId only. Associates the request with a tool call in that session.
RequestId
For a request-scoped interaction outside a session. It MUST be the ID of a Client-to-Agent request on the same connection that the Agent has not yet responded to.
The Agent MUST cancel any pending request-scoped elicitations before it responds to their request. Agents MUST bind each elicitation and related state to the receiving Client connection and, when authentication exists, the verified user identity. A sessionId alone or an unverified Client-provided identity is not sufficient.

Foreground state

A session-scoped elicitation follows the aggregate foreground-state contract. When foreground work cannot progress without user action, the Agent SHOULD report requires_action. Once reported, it MUST report running when progress resumes, or idle if the work ends without resuming. An elicitation does not by itself start foreground work. Requests for independent background activity can be presented while the session remains idle. Request-scoped elicitations outside a session do not change any session’s foreground state. Multiple outstanding requests are tracked individually, but their creation and responses do not each cause state updates. The Agent remains running while other foreground work can progress, and remains requires_action while the foreground workflow is still blocked. In URL mode, accept only means consent to open the URL. If foreground work still needs the user to finish the external interaction, a reported requires_action remains unchanged. The Agent reports running when foreground progress actually resumes. elicitation/complete is not itself a state update.

Form mode

ElicitationSchema
required
The form to present, as a restricted JSON Schema object.
requestedSchema is a flat object with type: "object", properties, and optional required, title, and description. Each property is one of: Every property may also have title and description. Each oneOf or anyOf option has a const value and a title, and may also have a description. The title labels the form, field, or choice for the user. The description provides additional guidance. Both are plain text. Each enum, oneOf, and anyOf list needs at least one option. Clients treat an unknown format as plain text. Accepted content maps each answered property name to its value: a string for text and single-select properties, a number for number and integer, a boolean for boolean, and an array of strings for multi-select. Unanswered properties are omitted, not set to null. Custom or future property types may use other JSON values. In multi-select items, the titled anyOf form omits type. When type is "string", enum is required even if anyOf is also present. Clients SHOULD validate submitted values before responding, and Agents SHOULD validate them again. If a Client cannot render a form, it MUST respond with -32602 (Invalid params), not decline or cancel, which report a user’s choice. This includes a required property of an unknown type, a required entry with no matching property, and a property that sets both enum and oneOf. Clients MAY leave out optional properties of unknown types and render the rest. Clients that support schema defaults SHOULD pre-populate form fields with their declared default values. Form mode MUST NOT be used to request secrets or credentials that grant access or authorize transactions, such as passwords, API keys, access or refresh tokens, private keys, recovery codes, or payment credentials. Ordinary profile information such as a name, email address, or username is not categorically prohibited. Agents MUST use URL mode for sensitive interactions. If the Client does not support URL mode, the Agent MUST NOT fall back to form mode. It MUST use another safe flow or fail the operation.

URL mode

ElicitationId
required
Identifier for this elicitation. elicitation/complete refers to it.
string
required
The URL to open for the user.
An accept response means the user consented to open the URL. It does not mean the external interaction completed. URL mode is not a substitute for authorizing the Client’s access to the Agent. An Agent can still use it during auth/login to sign in to its own provider. Agents MUST NOT send credentials or tokens obtained through URL mode back over ACP or place them in Client or model context.

Responses

The Client responds with one of three actions:
  • accept: the user submitted or consented to the interaction.
  • decline: the user explicitly declined.
  • cancel: the user dismissed the interaction without choosing.
An accept response to the form example carries the submitted values in content:
Agents MUST handle an unknown action as cancel. The content field is optional on accept. Receivers treat omission and null equivalently. It is only meaningful for accept. Receivers ignore it for decline and cancel. For an accepted form elicitation, content SHOULD conform to the requested schema. A content value can be any JSON value, such as the value of a custom or future property type. For an accepted URL elicitation, Clients normally omit content because the interaction happens out of band. Agents MUST NOT assume an elicitation succeeds. They MUST handle decline, cancel, and failures by safely falling back, retrying, or failing the originating operation as appropriate.

URL completion

Unlike MCP 2026-07-28, ACP retains an elicitationId and completion notification for its direct request flow. The Agent MUST keep each elicitationId unique among outstanding URL elicitations on that Agent-Client connection, and the Client MUST treat it as opaque. The Agent MAY send elicitation/complete after the external interaction finishes. It MUST send that notification only to the same Client that received the original request and include the original elicitationId. Clients MUST ignore unknown or already-completed IDs. On receiving it, Clients MAY retry the original operation, update the UI, or otherwise continue. They SHOULD still let the user retry or cancel if the notification never arrives. The notification for the URL example:

Session cancellation

session/cancel does not automatically cancel every elicitation scoped to the session. sessionId and toolCallId identify context, not a cancellation instruction. When the Agent stops waiting for a pending elicitation because the work that needed it was cancelled, it MUST cancel that individual request using $/cancel_request. The Agent decides which elicitations the cancelled work no longer needs. An elicitation can depend on the affected work with or without a toolCallId. Clients handle individual cancellation using the existing request-cancellation rules rather than infer it from session scope. A Client that receives $/cancel_request for a pending elicitation SHOULD dismiss it and answer with the cancel action. Request-scoped elicitations outside the session are unaffected by session/cancel. session/close is different: before responding, the Agent MUST cancel every pending elicitation scoped to that session. Clients SHOULD dismiss elicitation UI for a closed session. Clients SHOULD dismiss interaction UI they know is no longer relevant. An accepted URL interaction may continue externally after its create request has returned. Cancelling foreground work does not guarantee that an external browser page closes or undo external side effects. A repeated or resume idle snapshot carrying a previous cancelled stop reason does not cancel a current interaction. A response or external completion can race with cancellation. After foreground cancellation completes, the Agent SHOULD NOT use late responses or external completions to resume the cancelled work. An external URL workflow may still complete independently. Cancellation can finish without waiting for it.

URL security

Agents and Clients implementing URL mode follow these requirements: These requirements adapt MCP’s Safe URL Handling rules to ACP.
  • Agents MUST NOT put credentials, personal data, or pre-authenticated access in the URL and SHOULD use HTTPS outside development.
  • Agents SHOULD NOT include URLs intended to be clickable in any field of a form-mode request.
  • Clients MUST NOT prefetch the URL or open it without explicit user consent. They MUST show the full URL before asking for consent.
  • Clients MUST open the URL in a secure context that prevents the Client or Agent’s language model from inspecting the page or user input.
  • Clients SHOULD highlight the domain and warn about suspicious or ambiguous URLs, including Punycode domains.
  • Clients SHOULD NOT render a URL as clickable in any elicitation field except the url field of a URL-mode request, subject to the restrictions above.
  • When the Agent has an authenticated user, it MUST verify that the user who started the elicitation is the same user who completes the external interaction. Without one, such as during auth/login, the Agent MUST tie completion to the elicitation it issued and the connection it issued it on, for example with an unguessable single-use state value in the URL, and MUST NOT accept the completion for an elicitation or auth/login request on a different connection. This rule is about matching the completion. It does not limit where the Agent stores the resulting credentials.
See the schema reference for the complete request and response types.