Documentation / @agentick/mcp / CompletionHandler
Type Alias: CompletionHandler()
CompletionHandler = (
value,ctx) =>CompletionResult|string[] |Promise<CompletionResult|string[]>
Defined in: protocol/types.ts:507
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
Returns
CompletionResult | string[] | Promise<CompletionResult | string[]>