TTMSMCPContent.ResourceLink Method
Builds a
resource_linkcontent item, which points the client at a resource it can read separately instead of embedding the data in the result. Optional members are only added when the matching argument is not empty.
API unit family: TMS.MCP.Tools
Declaring type: TTMSMCPContent
Syntax
class function ResourceLink(const AURI: string; const AName: string = ''; const ADescription: string = ''; const AMimeType: string = ''; const ATitle: string = ''): TJSONObject; static;
Parameters
| Name | Description |
|---|---|
AURI |
Identifier of the resource being linked, as published by the resource itself. |
AName |
Programmatic name of the resource. Omitted when empty. |
ADescription |
Short description of what the resource contains. Omitted when empty. |
AMimeType |
Media type of the resource, for example text/markdown. Omitted when empty. |
ATitle |
Human-readable label shown in place of the name. Omitted when empty. |
Returns
A newly created JSON object; it becomes owned by the content array it is added to, or by the caller when it is used on its own.