public
|
__construct(
non-empty-string $uri,
string $name,
?string $title = null,
null|non-empty-string $description = null,
null|non-empty-string $mimeType = null,
null|int<0, max> $size = null,
null|Annotations $annotations = null,
null|list<Icon> $icons = null,
null|array<string, mixed> $meta = null,
)
Parameters
| $uri |
The URI of this resource.
|
| $name |
Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
even by those unfamiliar with domain-specific terminology. If not provided, the name should be
used for display (except for Tool, where annotations.title should be given precedence over
using name, if present).
|
| $description |
A description of what this resource represents.
|
| $mimeType |
The MIME type of this resource, if known.
|
| $size |
The size of the raw resource content, in bytes
(i.e., before base64 encoding or any tokenization), if known.
|
| $annotations |
Optional annotations for the client.
|
| $icons |
Optional set of sized icons that the client can display in a user interface.
|
| $meta |
Reserved by MCP to allow clients and servers to attach
additional metadata to their interactions.
|
Overrides
|
#
|