public
|
__construct<T, U is array<string, mixed>>(
string $name,
ToolSchema<out T, out U> $inputSchema,
?string $title = null,
null|non-empty-string $description = null,
null|ToolSchema<out T, out U> $outputSchema = null,
null|list<Icon> $icons = null,
null|ToolAnnotations $annotations = 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.
|
| $inputSchema |
A JSON Schema object defining the expected parameters for the tool.
|
| $description |
A human-readable description of the tool.
|
| $outputSchema |
An optional JSON Schema object defining the structure of the tool's
output returned in the structuredContent field of a CallToolResult.
|
| $icons |
Optional set of sized icons that the client can display in a user interface.
|
| $annotations |
Optional additional tool information. Display name precedence order is:
title, annotations.title, then name.
|
| $meta |
Reserved by MCP to allow clients and servers to attach
additional metadata to their interactions.
|
Overrides
|
#
|