Class ListPromptsResult
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents a server's response to a PromptsList request from the client, containing available prompts.
public class ListPromptsResult : PaginatedResult
- Inheritance
-
ListPromptsResult
- Inherited Members
Remarks
This result is returned when a client sends a PromptsList request to discover available prompts on the server.
It inherits from PaginatedResult, allowing for paginated responses when there are many prompts. The server can provide the NextCursor property to indicate there are more prompts available beyond what was returned in the current response.
See the schema for details.
Properties
Prompts
A list of prompts or prompt templates that the server offers.
[JsonPropertyName("prompts")]
public List<Prompt> Prompts { get; set; }