v2026.2.1
All Bundles

ResourceContent

MCP resource content

Inherits: ResourceItem

Operations

GetText

Gets the text content

method : public : GetText() ~ String

Return

TypeDescription
Stringtext content

IsBlob

Checks if content is blob data

method : public : IsBlob() ~ Bool

Return

TypeDescription
Booltrue if blob data, false otherwise

New

Constructor

New(uri:Url, name:String, title:String, description:String, mime_type:String, text:String, is_blob:Bool)

Parameters

NameTypeDescription
uriUrlresource URI
nameStringresource name
titleStringresource title
descriptionStringresource description
mime_typeStringMIME type
textStringresource text content
is_blobBooltrue if blob data, false otherwise

New

Constructor

New(uri:Url, name:String, title:String, mime_type:String, text:String, is_blob:Bool)

Parameters

NameTypeDescription
uriUrlresource URI
nameStringresource name
titleStringresource title
mime_typeStringMIME type
textStringresource text content
is_blobBooltrue if blob data, false otherwise

New

Constructor

New(uri:Url, name:String, mime_type:String, text:String, is_blob:Bool)

Parameters

NameTypeDescription
uriUrlresource URI
nameStringresource name
mime_typeStringMIME type
textStringresource text content
is_blobBooltrue if blob data, false otherwise

ToJson

Converts to JSON element

method : public : ToJson() ~ JsonElement

Return

TypeDescription
JsonElementJSON element