Class: TextContent
Text provided to or from an LLM.
URI: mcp:TextContent
classDiagram
class TextContent
click TextContent href "../TextContent/"
HasMeta <|-- TextContent
click HasMeta href "../HasMeta/"
HasAnnotations <|-- TextContent
click HasAnnotations href "../HasAnnotations/"
TextContent : _meta
TextContent --> "0..1" MetaObject : _meta
click MetaObject href "../MetaObject/"
TextContent : annotations
TextContent --> "0..1" Annotations : annotations
click Annotations href "../Annotations/"
TextContent : text
TextContent : type
Inheritance
- TextContent [ HasMeta HasAnnotations]
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| text | 1 String |
Text content | direct |
| type | 1 String |
Type discriminator field | direct |
| _meta | 0..1 MetaObject |
Optional metadata object | HasMeta |
| annotations | 0..1 Annotations |
Optional annotations for the client | HasAnnotations |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/mcp
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | mcp:TextContent |
| native | mcp:TextContent |
LinkML Source
Direct
name: TextContent
description: Text provided to or from an LLM.
from_schema: https://w3id.org/lmodel/mcp
mixins:
- HasMeta
- HasAnnotations
slots:
- text
- type
slot_usage:
text:
name: text
required: true
type:
name: type
required: true
equals_string: text
Induced
name: TextContent
description: Text provided to or from an LLM.
from_schema: https://w3id.org/lmodel/mcp
mixins:
- HasMeta
- HasAnnotations
slot_usage:
text:
name: text
required: true
type:
name: type
required: true
equals_string: text
attributes:
text:
name: text
description: Text content.
from_schema: https://w3id.org/lmodel/mcp
rank: 1000
alias: text
owner: TextContent
domain_of:
- TextContent
- ContentBlock
- ResourceContents
- TextResourceContents
range: string
required: true
type:
name: type
description: Type discriminator field.
from_schema: https://w3id.org/lmodel/mcp
rank: 1000
alias: type
owner: TextContent
domain_of:
- TextContent
- ImageContent
- AudioContent
- ContentBlock
- EmbeddedResource
- ResourceLink
- ToolUseContent
- ToolResultContent
- PromptReference
- ResourceTemplateReference
- SchemaItems
- JsonSchema
- StringSchema
- NumberSchema
- BooleanSchema
- UntitledSingleSelectEnumSchema
- TitledSingleSelectEnumSchema
- UntitledMultiSelectEnumSchema
- TitledMultiSelectEnumSchema
- LegacyTitledEnumSchema
range: string
required: true
equals_string: text
_meta:
name: _meta
description: Optional metadata object.
from_schema: https://w3id.org/lmodel/mcp
rank: 1000
alias: _meta
owner: TextContent
domain_of:
- HasMeta
range: MetaObject
annotations:
name: annotations
description: Optional annotations for the client.
from_schema: https://w3id.org/lmodel/mcp
rank: 1000
alias: annotations
owner: TextContent
domain_of:
- HasAnnotations
- Tool
range: Annotations
inlined: true