---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/claude_code_cli/exceptions/variables/E_CLAUDE_CODE_CLI_UNSUPPORTED_MEDIA_MODALITY.md
description: >-
  Thrown when a {@link @nhtio/adk!Media} whose modality cannot be represented
  reaches either direction of this battery under the corresponding
  `unsupportedMediaPolicy`/ `unsupportedResultMediaPolicy: 'throw'` —
  bidirectional: inbound prompt media (a `-p` string has no native image
  channel) and outbound tool-result media (only text/image MCP content blocks
  are supported).
---

# Variable: E\_CLAUDE\_CODE\_CLI\_UNSUPPORTED\_MEDIA\_MODALITY

```ts
const E_CLAUDE_CODE_CLI_UNSUPPORTED_MEDIA_MODALITY: CreatedException<
  [string, string, string]
>;
```

Defined in: [src/batteries/llm/claude\_code\_cli/exceptions.ts:161](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/claude_code_cli/exceptions.ts#L161)

Thrown when a [@nhtio/adk!Media](../../../../../common/classes/Media.md) whose modality cannot be represented reaches either
direction of this battery under the corresponding `unsupportedMediaPolicy`/
`unsupportedResultMediaPolicy: 'throw'` — bidirectional: inbound prompt media (a `-p` string has
no native image channel) and outbound tool-result media (only text/image MCP content blocks are
supported).
