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 class ListRootsResult
- 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
Meta
Gets or sets additional metadata for the result.
[JsonPropertyName("meta")]
public JsonElement? Meta { get; init; }
Property Value
Remarks
This property is reserved by the protocol for future use.
Roots
Gets or sets the list of root URIs provided by the client.
[JsonPropertyName("roots")]
public required IReadOnlyList<Root> Roots { get; init; }
Property Value
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.