Skip to content

Documentation / @agentick/mcp / MCPPromptDefinition

Interface: MCPPromptDefinition

Defined in: protocol/types.ts:464

Properties

arguments?

optional arguments: MCPPromptArgument[]

Defined in: protocol/types.ts:471


complete?

optional complete: 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?

optional description: 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

MCPHandlerContext

Returns

MCPPromptResult | Promise<MCPPromptResult>


icons?

optional icons: Icon[]

Defined in: protocol/types.ts:470

Optional icons for client UI rendering (IconsSchema).


name

name: string

Defined in: protocol/types.ts:465


title?

optional title: string

Defined in: protocol/types.ts:467

Human-readable display name (BaseMetadataSchema). Optional.

Released under the ISC License.