ToolDefinition
Tool definition with metadata.
ToolDefinition::__construct()
public function __construct(string $name, string $description, array $inputSchema, ?mixed $callback, array $scopes = [], bool $mutating = false, bool $requiresConfirmation = false, int $timeout = 30, array $clamps = [], ?string $version = null, ?array $outputSchema = null):Parameters
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $description | string | |
| $inputSchema | array<string, mixed> | |
| $callback | ?mixed | |
| $scopes | array<string> | |
| $mutating | bool | |
| $requiresConfirmation | bool | |
| $timeout | int | |
| $clamps | array<string, array<(int | float)>> | |
| $version | ?string | |
| $outputSchema | (array<string, mixed> | null) |