public
|
__construct(
non-empty-string $uriTemplate,
string $name,
?string $title = null,
null|non-empty-string $description = null,
null|non-empty-string $mimeType = null,
null|Annotations $annotations = null,
null|list<Icon> $icons = null,
null|array<string, mixed> $meta = null,
)
Parameters
| $uriTemplate |
A URI template (according to RFC 6570) that can be used
to construct resource URIs.
|
| $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 template is for.
|
| $mimeType |
The MIME type for all resources that match this template. This should only
be included if all resources matching this template have the same type.
|
| $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
|
#
|