# Interface PromptDefinition

Declarative definition of an MCP prompt template.

- `argsSchema`: Zod shape passed to `server.registerPrompt`
- `buildMessages`: produces the message array from validated args

interface PromptDefinition {
name: string;
description: string;
argsSchema: Record<string, z.ZodType>;
buildMessages: (
args: Record<string, string | undefined>,
) => readonly PromptMessage[];
}

- Defined in packages/nexus-agents/src/mcp/prompts/prompt-definitions.ts:27

##### Index

### Properties

name
description
argsSchema
buildMessages

## Properties

### `Readonly` name

name: string

- Defined in packages/nexus-agents/src/mcp/prompts/prompt-definitions.ts:28

### `Readonly` description

description: string

- Defined in packages/nexus-agents/src/mcp/prompts/prompt-definitions.ts:29

### `Readonly` argsSchema

argsSchema: Record<string, z.ZodType>

- Defined in packages/nexus-agents/src/mcp/prompts/prompt-definitions.ts:30

### `Readonly` buildMessages

buildMessages: (
args: Record<string, string | undefined>,
) => readonly PromptMessage[]

- Defined in packages/nexus-agents/src/mcp/prompts/prompt-definitions.ts:31