Skip to main content

Overview

Methods

getPrompts()

Get all prompts (local + adopted).
Example:

findByName()

Find a prompt by its base name.
Example:

findAllByName()

Find all prompts matching a name (when multiple exist).
Example:

findByQualifiedName()

Find a prompt by its fully qualified name.
Example:

getExported()

Lookup a prompt by its exported (resolved) name.
Example:

exportResolvedNames()

Produce unique, conflict-aware exported names.
Example:

getInlinePrompts()

Get prompts defined inline (local only).

listAllInstances()

List all prompt instances (locals + adopted).

listByOwner()

List prompts by owner path.
Example:

registerPromptInstance()

Register a pre-constructed PromptInstance directly.
Typically used internally for remote app prompts.

subscribe()

Subscribe to prompt change events.
Returns: Unsubscribe function. Example:

getCapabilities()

Get MCP capabilities for prompts.
Example:

hasAny()

Check if any prompts exist.

adoptFromChild()

Adopt prompts from a child registry.

Change Events

Indexes

Prompt Arguments

Prompts can define required and optional arguments:
Arguments are validated when the prompt is called: