Table of Contents

Method RefreshToolsAsync

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

RefreshToolsAsync(CancellationToken)

Clears the cached tool list and fetches a fresh copy from the server.

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

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IReadOnlyCollection<McpTool>>

The refreshed tool list.

Exceptions

HttpRequestException

On HTTP or JSON-RPC errors.