Record Class McpSchema.ResourceLink

java.lang.Object
java.lang.Record
io.modelcontextprotocol.spec.McpSchema.ResourceLink
Record Components:
uri - the URI of the resource.
name - A human-readable name for this resource. This can be used by clients to populate UI elements.
title - A human-readable 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.
size - The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known. This can be used by Hosts to display file sizes and estimate context window usage.
annotations - Optional annotations for the client. The client can use annotations to inform how objects are used or displayed.
meta - See specification for notes on _meta usage
All Implemented Interfaces:
McpSchema.Annotated, McpSchema.BaseMetadata, McpSchema.Content, McpSchema.ResourceContent
Enclosing class:
McpSchema

public static record McpSchema.ResourceLink(String name, String title, String uri, String description, String mimeType, Long size, McpSchema.Annotations annotations, Map<String,Object> meta) extends Record implements McpSchema.Annotated, McpSchema.Content, McpSchema.ResourceContent
A known resource that the server is capable of reading.