Skip to main content
A content block is one piece of user-facing content: text, an image, audio, a link to a resource, or an embedded resource. 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, including streamed tool-call content chunks

Plain text and Markdown

Display strings are plain text unless the field specifies Markdown. Clients SHOULD NOT render plain-text fields as Markdown. These include tool call and session titles, command and config option names, labels, input hints, and error messages. For example, the underscores in a tool call title of Read /work/_draft_.md are part of the filename, not emphasis. When displaying the following fields, Clients SHOULD render them as CommonMark and MAY support GitHub Flavored Markdown extensions such as tables: The description of a notice, a resource link, or an elicitation form, property, or option is plain text. See Rendering Agent content for handling raw HTML and links when displaying Markdown. Payloads have their own formats. An embedded resource’s text is the resource itself, a diff’s patch.text is in the format named by patch.format, and terminal output carries bytes. None of these is a text content block.

Content types

Content from the Agent is untrusted. See Rendering Agent Content and URIs and Remote Resources. ACP’s ContentBlock is compatible with, and a superset of, the Model Context Protocol (MCP) 2026-07-28 ContentBlock, so Agents can forward content from MCP tool outputs unchanged. ACP adds an optional uri on image content, _meta on icons and annotations, extensible Role and IconTheme values, and the open type fallback described below. A content type from a later MCP revision that ACP doesn’t define isn’t forwarded as is. Agents convert it to a supported type, such as an embedded resource, or omit it. Content block type values can be custom or future variants when the receiver can preserve or display them generically. Custom content block types MUST begin with _. Unknown non-underscore content block types are reserved for future ACP variants. In prompts, Clients send only baseline content types (text and resource_link) and content types the Agent advertised, including custom types advertised through a custom capability, and Agents MUST reject others with -32602. When displaying Agent output, Clients SHOULD show text content. For image, audio, resource, and resource link content they can’t render, Clients SHOULD show a placeholder with whatever identifies it, such as its name, title, URI, or MIME type, and SHOULD NOT drop it silently. Agents that need content to reach the user in a particular form SHOULD also include it as text. annotations are hints with MCP semantics. In audience, user means the person using the Client and assistant means the Agent’s model. priority ranges from 0 (least important) to 1 (most important). lastModified is the time the underlying resource was last modified, as an ISO 8601 string such as 2025-01-12T15:00:58Z. Clients MAY collapse or hide content whose audience doesn’t include user, which is an exception to the display rule above.

Text content

Adjacent text blocks form one continuous text. Clients SHOULD join them without a separator before rendering. This applies wherever text blocks appear, including in user and Agent messages, thoughts, tool-call content, and compaction summaries.
All Agents MUST support text content blocks when included in prompts.
string
required
The text to display. It can be plain text or Markdown.
Annotations
Optional metadata about how the content should be used or displayed. Learn more.

Image content

Images can be included for visual context or analysis.
Requires the image prompt capability when included in prompts.
string
required
Base64-encoded image data
string
required
The MIME type of the image (e.g., “image/png”, “image/jpeg”)
string
Optional URI reference for the image source
Annotations
Optional metadata about how the content should be used or displayed. Learn more.

Audio content

Audio data for transcription or analysis.
Requires the audio prompt capability when included in prompts.
string
required
Base64-encoded audio data
string
required
The MIME type of the audio (e.g., “audio/wav”, “audio/mp3”)
Annotations
Optional metadata about how the content should be used or displayed. Learn more.

Embedded resource

Complete resource contents embedded directly in the message.
This is the preferred way to include context in prompts, such as when using @-mentions to reference files or other resources. By embedding the content directly in the request, Clients can include context from sources that the Agent might not have direct access to. Requires the embeddedContext prompt capability when included in prompts.
EmbeddedResourceResource
required
The embedded resource contents, which can be either:
Annotations
Optional metadata about how the content should be used or displayed. Learn more.
References to resources that the receiver may be able to read. All Agents MUST support resource links when included in prompts.
string
required
The URI of the resource
string
required
A human-readable name for the linked resource, in plain text
string
The MIME type of the resource
string
Optional plain-text title for displaying the resource to users
string
Optional human-readable description shown with the link. It describes the resource contents in plain text.
Icon[]
Optional icons Clients can display for this resource. Each icon requires a src URI and may include mimeType, sizes, and theme. theme names the background the icon is designed for: light or dark.
integer
Optional size of the resource in bytes
Annotations
Optional metadata about how the content should be used or displayed. Learn more.