Table of Contents

Class ListRootsResult

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents a client's response to a RootsList request from the server, containing available roots.

public sealed class ListRootsResult : Result
Inheritance
ListRootsResult
Inherited Members

Remarks

This result is returned when a server sends a RootsList request to discover available roots on the client.

See the schema for details.

Properties

Roots

Gets or sets the list of root URIs provided by the client.

[JsonPropertyName("roots")]
public required IReadOnlyList<Root> Roots { get; init; }

Property Value

IReadOnlyList<Root>

Remarks

This collection contains all available root URIs and their associated metadata. Each root serves as an entry point for resource navigation in the Model Context Protocol.