Table of Contents

Method GetPrompts

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

GetPrompts(CancellationToken)

Synchronously retrieves the server's prompt catalog. This is a blocking wrapper over GetPromptsAsync(CancellationToken) and returns the cached list thereafter.

public IReadOnlyCollection<McpPrompt> GetPrompts(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the operation.

Returns

IReadOnlyCollection<McpPrompt>

A read-only collection of McpPrompt values.