ResourceLink extension type

A resource link returned from a tool.

Resource links returned by tools are not guaranteed to appear in the results of a resources/list request.

on
Implemented types

Constructors

ResourceLink({required String name, String? title, String? description, required String uri, String? mimeType, Annotations? annotations, Meta? meta})
factory
ResourceLink.fromMap(Map<String, Object?> _value)

Properties

annotations → Annotations?
Annotations for this object.
no setterinherited
description → String?
The description of the resource.
no setter
icons → List<String>?
List of icons for display in user interfaces
no setter
isAudio → bool
Whether or not this is an AudioContent.
no setterinherited
isEmbeddedResource → bool
Whether or not this is an EmbeddedResource.
no setterinherited
isImage → bool
Whether or not this is an ImageContent.
no setterinherited
isText → bool
Whether or not this is a TextContent.
no setterinherited
meta → Meta?
The _meta property/parameter is reserved by MCP to allow clients and servers to attach additional metadata to their interactions.
no setterinherited
mimeType → String?
The MIME type of the resource.
no setter
name → String
Intended for programmatic or logical use, but used as a display name in past specs for fallback (if title isn't present).
no setterinherited
size → int?
The size of the resource in bytes.
no setter
title → String?
A short title for this object.
no setterinherited
type → String
The type of content.
no setter
uri → String
The URI of the resource.
no setter

Constants

expectedType → const String