Skip to content

Documentation / @agentick/mcp / MCPPromptDefinition

Interface: MCPPromptDefinition ​

Defined in: protocol/types.ts:488

Properties ​

arguments? ​

optional arguments: MCPPromptArgument[]

Defined in: protocol/types.ts:495


complete? ​

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

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

MCPHandlerContext

Returns ​

MCPPromptResult | Promise<MCPPromptResult>


icons? ​

optional icons: Icon[]

Defined in: protocol/types.ts:494

Optional icons for client UI rendering (IconsSchema).


name ​

name: string

Defined in: protocol/types.ts:489


title? ​

optional title: string

Defined in: protocol/types.ts:491

Human-readable display name (BaseMetadataSchema). Optional.

Released under the ISC License.