Skip to main content
Prompts are server-defined message templates. List the available prompts, then request one by name with its arguments.
listPrompts() returns { prompts }. getPrompt(name, args) returns a prompt result with an optional description and a messages array. Each message has a role and one MCP content block.

React

The React getPrompt arguments are optional and use string values.

Reference

MCPConnectionlistPrompts and getPrompt.