Skip to content
docsv0.2.0

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

Parameters of __construct()
NameTypeDescription
$namestring
$descriptionstring
$scopesarray<string>
$confirmbool
$clampsarray<string, array<(int | float)>>
$category?string
$version?string
$outputSchema(array<string, mixed> | null)