Skip to content
docsv0.19.1

ContextualToolHandler

An explicit opt-in to receive the verified caller; legacy callbacks still receive one argument.

ContextualToolHandler::__invoke()

abstract public function __invoke(array $arguments, Milpa\ToolRuntime\Contracts\ToolContext $context): ?mixed

Parameters

Parameters of __invoke()
NameTypeDescription
$argumentsarray<string, mixed>
$contextMilpa\ToolRuntime\Contracts\ToolContext