Table of Contents

Method GetToolsAsync

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

GetToolsAsync(CancellationToken)

Retrieves the server’s tool catalog once via tools/list and caches it for future access.

public Task<IReadOnlyCollection<McpTool>> GetToolsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IReadOnlyCollection<McpTool>>

The server’s tool list.

Exceptions

HttpRequestException

On HTTP or JSON-RPC errors.