Table of Contents

Method CompleteAsync

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

CompleteAsync(string, string, string, string, McpRequestContext, CancellationToken)

Suggests values for one argument.

Task<McpCompletionResult> CompleteAsync(string referenceType, string referenceName, string argumentName, string argumentValue, McpRequestContext context, CancellationToken cancellationToken = default)

Parameters

referenceType string

What the argument belongs to: ref/prompt or ref/resource.

referenceName string

The prompt name or resource URI template it belongs to.

argumentName string

The argument being completed.

argumentValue string

What the user has typed so far. May be empty.

context McpRequestContext

Session and caller identity, used to scope suggestions.

cancellationToken CancellationToken

A token to observe while gathering suggestions.

Returns

Task<McpCompletionResult>

The suggestions, or null when this provider has nothing to say about the argument, which lets the server try the next registered provider.

Share