Table of Contents

Method GetPromptAsync

Namespace
LMKit.Mcp.Server
Assembly
LM-Kit.NET.dll

GetPromptAsync(string, IReadOnlyDictionary<string, string>, McpRequestContext, CancellationToken)

Expands a prompt into the messages the client should send.

Task<McpPromptResult> GetPromptAsync(string name, IReadOnlyDictionary<string, string> arguments, McpRequestContext context, CancellationToken cancellationToken = default)

Parameters

name string

The prompt name.

arguments IReadOnlyDictionary<string, string>

Argument values supplied by the user, keyed by argument name.

context McpRequestContext

Session and caller identity.

cancellationToken CancellationToken

A token to observe while expanding.

Returns

Task<McpPromptResult>

The expansion, or null when this provider does not own the name, which lets the server try the next registered provider.

Share