Documentation / @agentick/mcp / MCPPromptDefinition
Interface: MCPPromptDefinition
Defined in: protocol/types.ts:488
Properties
arguments?
optionalarguments:MCPPromptArgument[]
Defined in: protocol/types.ts:495
complete?
optionalcomplete:Record<string,CompletionHandler>
Defined in: protocol/types.ts:510
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:492
handler()
handler: (
args,ctx) =>MCPPromptResult|Promise<MCPPromptResult>
Defined in: protocol/types.ts:496
Parameters
args
Record<string, string>
ctx
Returns
MCPPromptResult | Promise<MCPPromptResult>
icons?
optionalicons:Icon[]
Defined in: protocol/types.ts:494
Optional icons for client UI rendering (IconsSchema).
name
name:
string
Defined in: protocol/types.ts:489
title?
optionaltitle:string
Defined in: protocol/types.ts:491
Human-readable display name (BaseMetadataSchema). Optional.