Record Class McpSchema.ResourceTemplate

java.lang.Object
java.lang.Record
io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
Record Components:
uriTemplate - A URI template that can be used to generate URIs for this resource.
name - A human-readable name for this resource. This can be used by clients to populate UI elements.
title - An optional title for this resource.
description - A description of what this resource represents. This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
mimeType - The MIME type of this resource, if known.
annotations - Optional annotations for the client. The client can use annotations to inform how objects are used or displayed.
icons - Optional list of icons for this resource template.
meta - See specification for notes on _meta usage
All Implemented Interfaces:
McpSchema.Annotated, McpSchema.Identifier, McpSchema.Meta
Enclosing class:
McpSchema

public static record McpSchema.ResourceTemplate(String uriTemplate, String name, String title, String description, String mimeType, McpSchema.Annotations annotations, Map<String,Object> meta, List<McpSchema.Icon> icons) extends Record implements McpSchema.Annotated, McpSchema.Identifier, McpSchema.Meta
Resource templates allow servers to expose parameterized resources using URI
See Also: