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

listRoots

Last update:
May 18, 2026
Returns the list of all roots currently registered on an MCP client, useful for inspecting active resource scopes and debugging resource visibility.

Description

The listRoots function returns the list of all roots currently registered on an MCP client. A root is a named URI. Listing roots is useful for:
  • Inspecting what resource scopes are active for a client.
  • Debugging why certain resources are (or are not) visible.

Returns

An array of root structs, each describing one root.

Syntax

listRoots()
Called as an instance method on an MCP client:
roots = mcpClient.listRoots();

History

New in ColdFusion 2025.0.08

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