Expand description
Message content types
This module contains all content block types used in MCP messages. Content blocks allow rich message composition with text, images, audio, and resource references.
§Content Types
ContentBlock- Content block enum (text, image, audio, resource link, embedded resource)TextContent- Plain text content with annotationsImageContent- Base64-encoded image contentAudioContent- Base64-encoded audio contentResourceLink- Reference to external resourceEmbeddedResource- Embedded resource contentContentType- Content type enumeration (JSON/Binary/Text)
Structs§
- Audio
Content - Audio content per MCP 2025-06-18 specification
- Blob
Resource Contents - Binary resource contents
- Embedded
Resource - Embedded resource content per MCP 2025-06-18 specification
- Image
Content - Image content per MCP 2025-06-18 specification
- Resource
Link - Resource link per MCP 2025-06-18 specification
- Text
Content - Text content per MCP 2025-06-18 specification
- Text
Resource Contents - Text resource contents
Enums§
- Content
Block - Content block union type per MCP 2025-06-18 specification
- Content
Type - Content type enumeration
- Resource
Content - Union type for resource contents (text or binary)
Type Aliases§
- Content
- Compatibility alias for the old Content enum