public
|
__construct(
string $name,
?string $title = null,
null|non-empty-string $description = null,
null|list<PromptArgument> $arguments = null,
null|list<Icon> $icons = null,
null|array<string, mixed> $meta = null,
)
Parameters
| $name |
Intended for programmatic or logical use, but used as a display name in past specs or fallback.
|
| $title |
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 |
An optional description of what this prompt provides.
|
| $arguments |
A list of arguments to use for templating the prompt.
|
| $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
|
#
|