Tool
Marks a method as an AI-callable tool. The ToolRegistry will auto-discover these methods.
Tool::__construct()
public function __construct(string $name, string $description, array $scopes = [], bool $confirm = false, array $clamps = [], ?string $category = null, ?string $version = null, ?array $outputSchema = null):Parameters
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $description | string | |
| $scopes | array<string> | |
| $confirm | bool | |
| $clamps | array<string, array<(int | float)>> | |
| $category | ?string | |
| $version | ?string | |
| $outputSchema | (array<string, mixed> | null) |