v2026.5.3
All Bundles
Bundle MCP server support (-lib net_server)

ToolContent

MCP tool content

Operations

GetDescription #

Gets the content description

method : public : GetDescription() ~ String

Return

TypeDescription
Stringcontent description

GetMimeType #

Gets the MIME type

method : public : GetMimeType() ~ String

Return

TypeDescription
StringMIME type

GetText #

Gets the text content

method : public : GetText() ~ String

Return

TypeDescription
Stringtext content

GetTitle #

Gets the content title

method : public : GetTitle() ~ String

Return

TypeDescription
Stringcontent title

GetType #

Gets the content type

method : public : GetType() ~ String

Return

TypeDescription
Stringcontent type

IsBlob #

Checks if content is blob data

method : public : IsBlob() ~ Bool

Return

TypeDescription
Booltrue if blob data, false otherwise

New # constructor

Constructor

New(type:String, text:String, is_blob:Bool)

Parameters

NameTypeDescription
typeStringcontent type
textStringcontent text
is_blobBooltrue if blob data, false otherwise

New # constructor

Constructor

New(type:String, mime_type:String, text:String, is_blob:Bool)

Parameters

NameTypeDescription
typeStringcontent type
mime_typeStringMIME type
textStringcontent text
is_blobBooltrue if blob data, false otherwise

New # constructor

Constructor

New(type:String, mime_type:String, description:String, text:String, is_blob:Bool)

Parameters

NameTypeDescription
typeStringcontent type
mime_typeStringMIME type
descriptionStringcontent description
textStringcontent text
is_blobBooltrue if blob data, false otherwise

New # constructor

Constructor

New(type:String, mime_type:String, title:String, description:String, text:String, is_blob:Bool)

Parameters

NameTypeDescription
typeStringcontent type
mime_typeStringMIME type
titleStringcontent title
descriptionStringcontent description
textStringcontent text
is_blobBooltrue if blob data, false otherwise

ToJson #

Converts to JSON element

method : public : ToJson() ~ JsonElement

Return

TypeDescription
JsonElementJSON element