TTMSMCPCustomClientConnection.OnResourcesRead Event
Occurs when a resource read returns its content blocks.
API unit family: TMS.MCP.Client.Connection
Declaring type: TTMSMCPCustomClientConnection
Syntax
OnResourcesRead: TTMSMCPClientServerToolResponseEvent;
Remarks
Raised on the main thread. The handler may inspect the content but cannot change it.
Parameters
| Name | Description |
|---|---|
Sender |
Connection that received the result. |
AId |
Identifier of the request the result answers, for matching it to the read that was issued. |
AContent |
Array of content blocks. It belongs to the response being processed and is released as soon as the handler returns, so copy anything that must outlive the call. |
AIsError |
True when the server marked the result as an error result, False when the read succeeded. |