mcp-use TypeScript API
    Preparing search index...

    Interface PromptDefinition

    Declares a prompt's identity and argument schema. First argument to MCPServer.prompt.

    interface PromptDefinition {
        description?: string;
        name: string;
        schema?: StandardSchemaWithJSON<unknown, unknown>;
        title?: string;
    }
    Index
    description?: string

    Human-readable description.

    name: string

    Unique prompt identifier, e.g. "code-review".

    schema?: StandardSchemaWithJSON<unknown, unknown>

    Object schema for prompt arguments (StandardSchemaWithJSON). Fields wrapped with completable() gain autocomplete via completion/complete.

    title?: string

    Human-readable title (falls back to name).