Table of Contents

Method GetPrompt

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

GetPrompt(string, IDictionary<string, object>, CancellationToken)

Retrieves a fully rendered prompt by name via prompts/get (blocking wrapper).

public McpPromptResult GetPrompt(string name, IDictionary<string, object> arguments = null, CancellationToken cancellationToken = default)

Parameters

name string

The prompt name to render.

arguments IDictionary<string, object>

Optional argument map to pass to the prompt.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

McpPromptResult

An McpPromptResult containing chat messages and optional description.