TTMSMCPPromptBuilder.AddIcon Method
Appends one icon descriptor to the icons published with the prompt.
API unit family: TMS.MCP.Prompts
Declaring type: TTMSMCPPromptBuilder
Syntax
function AddIcon(const ASrc: string; const AMimeType: string = ''; const ASizes: string = ''): TTMSMCPPromptBuilder;
Remarks
Call this more than once to publish several sizes; each call appends to the array rather than replacing it.
Parameters
| Name | Description |
|---|---|
ASrc |
Location of the image, for example an HTTP address or a data address. |
AMimeType |
Media type of the image, for example image/png. Left out of the descriptor when empty. |
ASizes |
Space-separated size specification, for example 48x48. Left out of the descriptor when empty. |
Returns
The builder, so calls can be chained.