Whatever message this page gives is out now! Go check it out!
getPrompt function retrieves the full, resolved definition of a specific prompt from the MCP server. While listPrompts() gives you a catalog of prompt names, titles, descriptions, and argument definitions, getPrompt lets you:prompts/get.function getPrompt(struct params)promptDef = mcpClient.getPrompt(params);| Field | Data type | Required | Description |
|---|---|---|---|
name | String | Yes | Name of the prompt to fetch (must match one of the names returned by listPrompts()). |
params | Struct | No | Key/value pairs for prompt arguments (e.g. { code = "..." }); used to fill the template or generate messages. |