Table of Contents

Class ReadResourceRequestParams

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents the parameters used with a ResourcesRead request from a client to get a resource provided by a server.

public sealed class ReadResourceRequestParams : RequestParams
Inheritance
ReadResourceRequestParams
Inherited Members

Remarks

The server will respond with a ReadResourceResult containing the resulting resource data.

Alternatively, if the resource URI uses the https:// scheme, clients may fetch the resource directly from the web instead of using ResourcesRead. Servers should only use the https:// scheme when the client is able to fetch and load the resource directly on its own.

See the schema for details.

Properties

Uri

Gets or sets the URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.

[JsonPropertyName("uri")]
[StringSyntax("Uri")]
public required string Uri { get; set; }

Property Value

string