Table of Contents

Class GetPromptRequestParams

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents the parameters used with a PromptsGet request from a client to get a prompt provided by a server.

public class GetPromptRequestParams : RequestParams
Inheritance
GetPromptRequestParams
Inherited Members

Remarks

The server will respond with a GetPromptResult containing the resulting prompt. See the schema for details.

Properties

Arguments

Gets or sets arguments to use for templating the prompt when retrieving it from the server.

[JsonPropertyName("arguments")]
public IReadOnlyDictionary<string, JsonElement>? Arguments { get; init; }

Property Value

IReadOnlyDictionary<string, JsonElement>

Remarks

Typically, these arguments are used to replace placeholders in prompt templates. The keys in this dictionary should match the names defined in the prompt's Arguments list. However, the server may choose to use these arguments in any way it deems appropriate to generate the prompt.

Name

Gets or sets the name of the prompt.

[JsonPropertyName("name")]
public required string Name { get; init; }

Property Value

string