ResourceTemplate
A template description for resources available on the server.
Resource templates allow servers to expose parameterized resources that clients can instantiate with specific values. Templates use RFC 6570 URI template syntax, where parameters are indicated with curly braces (e.g., file:///{directory}/{filename}).
Constructors
Properties
Optional annotations for the client. Provides additional metadata and hints about how to use or display resources created from this template.
A description of what this template is for. Clients can use this to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
Optional metadata for this template.
The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. For example, a file template might not have a MIME type since files can be of any type, but a database record template might always return JSON.
A URI template (according to RFC 6570) that can be used to construct resource URIs. Parameters are indicated with curly braces, e.g., file:///{path} or db://users/{userId}.