TTMSMCPServer.OnListPrompts Event
Occurs while a
prompts/listrequest is answered, so the reported prompt collection can be adjusted for the calling client.
API unit family: TMS.MCP.Server
Declaring type: TTMSMCPServer
Inherited from: TTMSMCPCustomServer
Syntax
OnListPrompts: TTMSMCPPromptsListEvent;
Remarks
The handler runs before the list is serialized, so an entry added, removed or changed here is reflected in the answer the client receives.
Parameters
| Name | Description |
|---|---|
Sender |
Server that is answering the request. |
PromptsList |
Live prompt collection that will be serialized. Changes made to it take effect immediately and persist beyond the request. |