ResourceContents extension type

Base class for the contents of a specific resource or sub-resource.

Could be either TextResourceContents or BlobResourceContents, use isText and isBlob before casting to the more specific type.

on
Implemented types
Implementers

Constructors

ResourceContents.fromMap(Map<String, Object?> _value)

Properties

isBlob → bool
Whether or not this represents BlobResourceContents.
no setter
isText → bool
Whether or not this represents TextResourceContents.
no setter
meta → Meta?
The _meta property/parameter is reserved by MCP to allow clients and servers to attach additional metadata to their interactions.
no setterinherited
mimeType → String?
The MIME type of this resource, if known.
no setter
uri → String
The URI of this resource.
no setter