Resource

data class Resource(val uri: String, val name: String, val description: String?, val mimeType: String?, val title: String? = null, val size: Long? = null, val annotations: Annotations? = null)(source)

A known resource that the server is capable of reading.

Constructors

Link copied to clipboard
constructor(uri: String, name: String, description: String?, mimeType: String?, title: String? = null, size: Long? = null, annotations: Annotations? = null)

Properties

Link copied to clipboard

Optional annotations for the client.

Link copied to clipboard

A description of what this resource represents.

Link copied to clipboard

The MIME type of this resource, if known.

Link copied to clipboard

A human-readable name for this resource.

Link copied to clipboard
val size: Long? = null

The optional size of this resource in bytes, if known.

Link copied to clipboard
val title: String? = null

The optional human-readable name of this resource for display purposes.

Link copied to clipboard
val uri: String

The URI of this resource.