Documentation / @agentick/mcp / MCPPromptDefinition
Interface: MCPPromptDefinition
Defined in: protocol/types.ts:464
Properties
arguments?
optionalarguments:MCPPromptArgument[]
Defined in: protocol/types.ts:471
complete?
optionalcomplete:Record<string,CompletionHandler>
Defined in: protocol/types.ts:486
Per-argument completion handlers. When the client requests completion/complete for one of this prompt's arguments, the matching handler is invoked with the typed value and a context carrying any already-resolved sibling arguments.
Use sugar builders from @agentick/mcp/completions: completeFromList, completeFromEnum, completePrefixMatch, completeDependent, completeFromAsync.
description?
optionaldescription:string
Defined in: protocol/types.ts:468
handler()
handler: (
args,ctx) =>MCPPromptResult|Promise<MCPPromptResult>
Defined in: protocol/types.ts:472
Parameters
args
Record<string, string>
ctx
Returns
MCPPromptResult | Promise<MCPPromptResult>
icons?
optionalicons:Icon[]
Defined in: protocol/types.ts:470
Optional icons for client UI rendering (IconsSchema).
name
name:
string
Defined in: protocol/types.ts:465
title?
optionaltitle:string
Defined in: protocol/types.ts:467
Human-readable display name (BaseMetadataSchema). Optional.