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

# Content

> Understanding content blocks in the Agent Client Protocol

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`](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle#1-user-message)
* Language model output reported through [`session/update`](https://agentclientprotocol.com/protocol/v2/prompt-lifecycle#3-agent-reports-output) notifications as message updates or streamed chunks
* Progress updates and results from [tool calls](https://agentclientprotocol.com/protocol/v2/tool-calls.md), including streamed tool-call content chunks

## Content types

Content from the Agent is untrusted. See [Rendering Agent Content](https://agentclientprotocol.com/protocol/v2/security.md#rendering-agent-content) and [URIs and Remote Resources](https://agentclientprotocol.com/protocol/v2/security.md#uris-and-remote-resources).

ACP's `ContentBlock` is compatible with, and a superset of, the [Model Context Protocol (MCP) 2026-07-28 `ContentBlock`](https://modelcontextprotocol.io/specification/2026-07-28/schema#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](https://agentclientprotocol.com/protocol/v2/extensibility.md#advertising-custom-capabilities), and Agents 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](https://modelcontextprotocol.io/specification/2026-07-28/schema#annotations). 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). Clients **MAY** collapse or hide content whose `audience` doesn't include `user`, which is an exception to the display rule above.

### Text content

Text may be plain text or Markdown. Clients **SHOULD** render it as [CommonMark](https://spec.commonmark.org/), and **MAY** support [GitHub Flavored Markdown](https://github.github.com/gfm/) extensions such as tables. This applies wherever a text block appears, including user messages, thoughts, and tool-call content. See [Rendering Agent Content](https://agentclientprotocol.com/protocol/v2/security.md#rendering-agent-content) for raw HTML.

```json theme={null}
{
  "type": "text",
  "text": "What's the weather like today?"
}
```

All Agents **MUST** support text content blocks when included in prompts.

**text** `string` *required*

The text content to display

**annotations** `Annotations`

Optional metadata about how the content should be used or displayed. [Learn
more](https://modelcontextprotocol.io/specification/2026-07-28/schema#annotations).

### Image content&#x20;

Images can be included for visual context or analysis.

```json theme={null}
{
  "type": "image",
  "mimeType": "image/png",
  "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB..."
}
```

&#x20;Requires the `image` [prompt
capability](https://agentclientprotocol.com/protocol/v2/initialization.md#session-prompt-capabilities) when
included in prompts.

**data** `string` *required*

Base64-encoded image data

**mimeType** `string` *required*

The MIME type of the image (e.g., "image/png", "image/jpeg")

**uri** `string`

Optional URI reference for the image source

**annotations** `Annotations`

Optional metadata about how the content should be used or displayed. [Learn
more](https://modelcontextprotocol.io/specification/2026-07-28/schema#annotations).

### Audio content&#x20;

Audio data for transcription or analysis.

```json theme={null}
{
  "type": "audio",
  "mimeType": "audio/wav",
  "data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEAQB8AAAB..."
}
```

&#x20;Requires the `audio` [prompt
capability](https://agentclientprotocol.com/protocol/v2/initialization.md#session-prompt-capabilities) when
included in prompts.

**data** `string` *required*

Base64-encoded audio data

**mimeType** `string` *required*

The MIME type of the audio (e.g., "audio/wav", "audio/mp3")

**annotations** `Annotations`

Optional metadata about how the content should be used or displayed. [Learn
more](https://modelcontextprotocol.io/specification/2026-07-28/schema#annotations).

### Embedded resource&#x20;

Complete resource contents embedded directly in the message.

```json theme={null}
{
  "type": "resource",
  "resource": {
    "uri": "file:///home/user/script.py",
    "mimeType": "text/x-python",
    "text": "def hello():\n    print('Hello, world!')"
  }
}
```

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 may not have direct access to.

&#x20;Requires the `embeddedContext` [prompt
capability](https://agentclientprotocol.com/protocol/v2/initialization.md#session-prompt-capabilities) when
included in prompts.

**resource** `EmbeddedResourceResource` *required*

The embedded resource contents, which can be either:

**Text Resource**

**uri** `string` *required*

The URI identifying the resource

**text** `string` *required*

The text content of the resource

**mimeType** `string`

Optional MIME type of the text content

**Blob Resource**

**uri** `string` *required*

The URI identifying the resource

**blob** `string` *required*

Base64-encoded binary data

**mimeType** `string`

Optional MIME type of the blob

**annotations** `Annotations`

Optional metadata about how the content should be used or displayed. [Learn
more](https://modelcontextprotocol.io/specification/2026-07-28/schema#annotations).

### Resource link

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

All Agents **MUST** support resource links when included in prompts.

```json theme={null}
{
  "type": "resource_link",
  "uri": "file:///home/user/document.pdf",
  "name": "document.pdf",
  "mimeType": "application/pdf",
  "icons": [
    {
      "src": "https://example.com/icons/pdf.png",
      "mimeType": "image/png",
      "sizes": ["48x48"]
    }
  ],
  "size": 1024000
}
```

**uri** `string` *required*

The URI of the resource

**name** `string` *required*

A human-readable name for the resource

**mimeType** `string`

The MIME type of the resource

**title** `string`

Optional display title for the resource

**description** `string`

Optional description of the resource contents

**icons** `Icon[]`

Optional icons Clients can display for this resource. Each icon requires a
`src` URI and may include `mimeType`, `sizes`, and `theme`.

**size** `integer`

Optional size of the resource in bytes

**annotations** `Annotations`

Optional metadata about how the content should be used or displayed. [Learn
more](https://modelcontextprotocol.io/specification/2026-07-28/schema#annotations).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.