ListResourceTemplatesResult

data class ListResourceTemplatesResult(val resourceTemplates: List<ResourceTemplate>, val nextCursor: String? = null, val meta: JsonObject? = null) : ServerResult, PaginatedResult(source)

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

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

Constructors

Link copied to clipboard
constructor(resourceTemplates: List<ResourceTemplate>, 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 resource templates. Each template includes its URI template pattern, name, optional description, and information about the arguments it accepts.