ResourceContent
MCP resource content
Inherits: ResourceItem
Operations
GetText
Gets the text content
method : public : GetText() ~ StringReturn
| Type | Description |
|---|---|
| String | text content |
IsBlob
Checks if content is blob data
method : public : IsBlob() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true 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
| Name | Type | Description |
|---|---|---|
| uri | Url | resource URI |
| name | String | resource name |
| title | String | resource title |
| description | String | resource description |
| mime_type | String | MIME type |
| text | String | resource text content |
| is_blob | Bool | true if blob data, false otherwise |
New
Constructor
New(uri:Url, name:String, title:String, mime_type:String, text:String, is_blob:Bool)Parameters
| Name | Type | Description |
|---|---|---|
| uri | Url | resource URI |
| name | String | resource name |
| title | String | resource title |
| mime_type | String | MIME type |
| text | String | resource text content |
| is_blob | Bool | true if blob data, false otherwise |
New
Constructor
New(uri:Url, name:String, mime_type:String, text:String, is_blob:Bool)Parameters
| Name | Type | Description |
|---|---|---|
| uri | Url | resource URI |
| name | String | resource name |
| mime_type | String | MIME type |
| text | String | resource text content |
| is_blob | Bool | true if blob data, false otherwise |
ToJson
Converts to JSON element
method : public : ToJson() ~ JsonElementReturn
| Type | Description |
|---|---|
| JsonElement | JSON element |