Package dev.tachyonmcp.api.server.domain
Interface ResourceLink
- All Superinterfaces:
ContentBlock,HasMeta
A reference to another resource, embedded within a content block.
Unlike EmbeddedResource, this is a lightweight pointer — it carries only
metadata (URI, name, title, description, MIME type) without the actual content data.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface dev.tachyonmcp.api.server.domain.ContentBlock
ContentBlock.Type -
Method Summary
Modifier and TypeMethodDescription@Nullable Annotationsstatic ResourceLink.Builderbuilder()static ResourceLink.BuilderCreates a builder for a resource link with the required fields.default voidcheck()@Nullable Stringicons()meta()Returns the optional metadata map for protocol extensions.@Nullable StringmimeType()name()static ResourceLinkCreates a resource link with no optional fields.static ResourceLinkCreates a resource link with MIME type and no other optional fields.@Nullable Longsize()@Nullable Stringtitle()default ContentBlock.Typetype()Returns the MCP protocol type discriminator for this content block variant.uri()
-
Method Details
-
name
String name() -
title
@Nullable String title() -
icons
-
uri
String uri() -
description
@Nullable String description() -
mimeType
@Nullable String mimeType() -
annotations
@Nullable Annotations annotations() -
size
@Nullable Long size() -
meta
Description copied from interface:HasMetaReturns the optional metadata map for protocol extensions. -
check
@Check default void check() -
type
Description copied from interface:ContentBlockReturns the MCP protocol type discriminator for this content block variant.- Specified by:
typein interfaceContentBlock- Returns:
- the content type discriminator
-
of
Creates a resource link with no optional fields. -
of
Creates a resource link with MIME type and no other optional fields. -
builder
-
builder
Creates a builder for a resource link with the required fields.
-