Skip to content

Documentation / @agentick/mcp / CompletionHandler

Type Alias: CompletionHandler() ​

CompletionHandler = (value, ctx) => CompletionResult | string[] | Promise<CompletionResult | string[]>

Defined in: protocol/types.ts:531

Handler signature for argument completion. Receives the partial value the user has typed so far and a context with already-resolved sibling arguments (ctx.resolvedArguments). Returns either a typed CompletionResult or a plain string[] (legacy shape, coerced to { values: [...] }).

Parameters ​

value ​

string

ctx ​

MCPCompletionContext

Returns ​

CompletionResult | string[] | Promise<CompletionResult | string[]>

Released under the ISC License.