using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; namespace ModelContextProtocol.Protocol; /// /// Represents the parameters used with a request from a client to get a resource provided by a server. /// /// /// /// The server will respond with a 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 . /// 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. /// /// public sealed class ReadResourceRequestParams : RequestParams { /// /// 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(StringSyntaxAttribute.Uri)] public required string Uri { get; set; } }