Whatever message this page gives is out now! Go check it out!

listPrompts

Last update:
May 18, 2026
Retrieves the list of all prompts that the MCP server exposes to your client, including each prompt's metadata and argument definitions.

Description

The listPrompts function retrieves the list of all prompts that the MCP server exposes to your client. Each prompt typically describes a reusable AI interaction pattern, such as code review, summarization, or workflow step, along with its required and optional arguments.

Returns

An array of structs, each describing a prompt with its key metadata.

Syntax

listPrompts()
Call as an instance method on your MCP client:
prompts = mcpClient.listPrompts();

History

New in ColdFusion 2025.7

Parameters

None

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page