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

ResourceItem

MCP resource item

Operations

GetDescription #

Gets the resource description

method : public : GetDescription() ~ String

Return

TypeDescription
Stringresource description

GetMimeType #

Gets the MIME type

method : public : GetMimeType() ~ String

Return

TypeDescription
StringMIME type

GetName #

Gets the resource name

method : public : GetName() ~ String

Return

TypeDescription
Stringresource name

GetSize #

Gets the resource size

method : public : GetSize() ~ Int

Return

TypeDescription
Intresource size

GetTitle #

Gets the resource title

method : public : GetTitle() ~ String

Return

TypeDescription
Stringresource title

GetUri #

Gets the resource URI

method : public : GetUri() ~ Url

Return

TypeDescription
Urlresource URI

New # constructor

Constructor

New(uri:Url, name:String, title:String, description:String, mime_type:String, size:Int)

Parameters

NameTypeDescription
uriUrlresource URI
nameStringresource name
titleStringresource title
descriptionStringresource description
mime_typeStringMIME type
sizeIntresource size

New # constructor

Constructor

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

Parameters

NameTypeDescription
uriUrlresource URI
nameStringresource name
titleStringresource title
descriptionStringresource description
mime_typeStringMIME type

New # constructor

Constructor

New(uri:Url, name:String, title:String, mime_type:String)

Parameters

NameTypeDescription
uriUrlresource URI
nameStringresource name
titleStringresource title
mime_typeStringMIME type

New # constructor

Constructor

New(uri:Url, name:String, mime_type:String)

Parameters

NameTypeDescription
uriUrlresource URI
nameStringresource name
mime_typeStringMIME type

New # constructor

Constructor

New(uri:Url, name:String)

Parameters

NameTypeDescription
uriUrlresource URI
nameStringresource name

ToJson #

Converts to JSON element

method : public : ToJson() ~ JsonElement

Return

TypeDescription
JsonElementJSON element