ReadResourceResult extension type

The server's completed response to a resources/read request from the client.

on
Implemented types

Constructors

ReadResourceResult({required List<ResourceContents> contents, int? ttlMs, CacheScope? cacheScope, Meta? meta})
factory
ReadResourceResult.fromMap(Map<String, Object?> _value)

Properties

cacheScope → CacheScope?
The intended scope of the cached response, analogous to HTTP Cache-Control: public vs Cache-Control: private.
no setterinherited
contents → List<ResourceContents>
no setter
isInputRequired → bool
Whether the server asked for more input before it can answer, which makes this an InputRequiredResult.
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
resultType → String
The type of this result, which determines how to parse it.
no setterinherited
ttlMs → int
A hint for how long, in milliseconds, the client may cache this response before re-fetching, analogous to HTTP Cache-Control max-age.
no setterinherited