ReadResourceResult

data class ReadResourceResult(val contents: List<ResourceContents>, val meta: JsonObject? = null) : ServerResult(source)

The server's response to a ReadResourceRequest from the client.

Contains the resource contents, which can be a mix of text and binary data. A single resource can return multiple content blocks if it contains multiple parts.

Constructors

Link copied to clipboard
constructor(contents: List<ResourceContents>, meta: JsonObject? = null)

Properties

Link copied to clipboard
open val _meta: JsonObject
Link copied to clipboard

The contents of the resource. Can include text content (with MIME type and text data) or binary/blob content (with MIME type and Base64-encoded data). Multiple content blocks can be returned for resources with multiple parts.

Link copied to clipboard
@SerialName(value = "_meta")
open override val meta: JsonObject?

Optional metadata for this response.