Class: ContentBlock
Structured text content block.
URI: mcp:ContentBlock
classDiagram
class ContentBlock
click ContentBlock href "../ContentBlock/"
ContentBlock : text
ContentBlock : type
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| type | 0..1 String |
Type discriminator field | direct |
| text | 0..1 String |
Text content | direct |
Usages
| used by | used in | type | used |
|---|---|---|---|
| ToolResultContent | content | range | ContentBlock |
| PromptMessage | content | range | ContentBlock |
| SamplingMessage | content | range | ContentBlock |
| SamplingMessage | content | any_of[range] | ContentBlock |
| SamplingMessage | content | any_of[range] | ContentBlock |
| CallToolResult | content | range | ContentBlock |
| CreateMessageResult | content | range | ContentBlock |
| CreateMessageResult | content | any_of[range] | ContentBlock |
| CreateMessageResult | content | any_of[range] | ContentBlock |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/mcp
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | mcp:ContentBlock |
| native | mcp:ContentBlock |
LinkML Source
Direct
name: ContentBlock
description: Structured text content block.
from_schema: https://w3id.org/lmodel/mcp
slots:
- type
- text
extra_slots:
allowed: true
Induced
name: ContentBlock
description: Structured text content block.
from_schema: https://w3id.org/lmodel/mcp
attributes:
type:
name: type
description: Type discriminator field.
from_schema: https://w3id.org/lmodel/mcp
rank: 1000
alias: type
owner: ContentBlock
domain_of:
- TextContent
- ImageContent
- AudioContent
- ContentBlock
- EmbeddedResource
- ResourceLink
- ToolUseContent
- ToolResultContent
- PromptReference
- ResourceTemplateReference
- SchemaItems
- JsonSchema
- StringSchema
- NumberSchema
- BooleanSchema
- UntitledSingleSelectEnumSchema
- TitledSingleSelectEnumSchema
- UntitledMultiSelectEnumSchema
- TitledMultiSelectEnumSchema
- LegacyTitledEnumSchema
range: string
text:
name: text
description: Text content.
from_schema: https://w3id.org/lmodel/mcp
rank: 1000
alias: text
owner: ContentBlock
domain_of:
- TextContent
- ContentBlock
- ResourceContents
- TextResourceContents
range: string
extra_slots:
allowed: true