Class ResourceTemplate
- Namespace
- ModelContextProtocol.Protocol.Types
- Assembly
- ModelContextProtocol.dll
Represents a known resource template that the server is capable of reading. See the schema for details
public record ResourceTemplate : IEquatable<ResourceTemplate>
- Inheritance
-
ResourceTemplate
- Implements
- Inherited Members
Properties
Annotations
Optional annotations for the resource template.
[JsonPropertyName("annotations")]
public Annotations? Annotations { get; init; }
Property Value
Description
A description of what this resource template represents.
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
MimeType
The MIME type of this resource template, if known.
[JsonPropertyName("mimeType")]
public string? MimeType { get; init; }
Property Value
Name
A human-readable name for this resource template.
[JsonPropertyName("name")]
public required string Name { get; init; }
Property Value
UriTemplate
The URI template (according to RFC 6570) that can be used to construct resource URIs.
[JsonPropertyName("uriTemplate")]
public required string UriTemplate { get; init; }