ToolContent
MCP tool content
Operations
GetDescription
Gets the content description
method : public : GetDescription() ~ StringReturn
| Type | Description |
|---|---|
| String | content description |
GetMimeType
Gets the MIME type
method : public : GetMimeType() ~ StringReturn
| Type | Description |
|---|---|
| String | MIME type |
GetText
Gets the text content
method : public : GetText() ~ StringReturn
| Type | Description |
|---|---|
| String | text content |
GetTitle
Gets the content title
method : public : GetTitle() ~ StringReturn
| Type | Description |
|---|---|
| String | content title |
GetType
Gets the content type
method : public : GetType() ~ StringReturn
| Type | Description |
|---|---|
| String | content type |
IsBlob
Checks if content is blob data
method : public : IsBlob() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if blob data, false otherwise |
New
Constructor
New(type:String, text:String, is_blob:Bool)Parameters
| Name | Type | Description |
|---|---|---|
| type | String | content type |
| text | String | content text |
| is_blob | Bool | true if blob data, false otherwise |
New
Constructor
New(type:String, mime_type:String, text:String, is_blob:Bool)Parameters
| Name | Type | Description |
|---|---|---|
| type | String | content type |
| mime_type | String | MIME type |
| text | String | content text |
| is_blob | Bool | true if blob data, false otherwise |
New
Constructor
New(type:String, mime_type:String, description:String, text:String, is_blob:Bool)Parameters
| Name | Type | Description |
|---|---|---|
| type | String | content type |
| mime_type | String | MIME type |
| description | String | content description |
| text | String | content text |
| is_blob | Bool | true if blob data, false otherwise |
New
Constructor
New(type:String, mime_type:String, title:String, description:String, text:String, is_blob:Bool)Parameters
| Name | Type | Description |
|---|---|---|
| type | String | content type |
| mime_type | String | MIME type |
| title | String | content title |
| description | String | content description |
| text | String | content text |
| is_blob | Bool | true if blob data, false otherwise |
ToJson
Converts to JSON element
method : public : ToJson() ~ JsonElementReturn
| Type | Description |
|---|---|
| JsonElement | JSON element |