Table of Contents

Method CallAsync

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

CallAsync(string, McpRequestContext, CancellationToken)

Executes the tool.

Task<McpToolResult> CallAsync(string arguments, McpRequestContext context, CancellationToken cancellationToken = default)

Parameters

arguments string

A JSON object conforming to InputSchema.

context McpRequestContext

Session, caller identity, and the progress channel.

cancellationToken CancellationToken

A token to observe while executing.

Returns

Task<McpToolResult>

The content blocks to hand back to the caller. Return FromError(string) for failures the caller can correct; throw only for faults that are not the caller's to fix.

Share