ListResourcesResult

data class ListResourcesResult(val resources: List<Resource>, val nextCursor: String? = null, val meta: JsonObject? = null) : ServerResult, PaginatedResult(source)

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

Returns the available resources along with pagination information if there are more results.

Constructors

Link copied to clipboard
constructor(resources: List<Resource>, nextCursor: String? = null, meta: JsonObject? = null)

Properties

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

Optional metadata for this response.

Link copied to clipboard
open override val nextCursor: String?

An opaque token representing the pagination position after the last returned result. If present, there may be more results available. The client can pass this token in a subsequent request to fetch the next page.

Link copied to clipboard

The list of available resources. Each resource includes its URI, name, optional description, and MIME type information.