Skip to content
docs

ToolRegistryInterface

Contract for the tool registry exposed to tool providers. Plugins implementing {@see ToolProviderInterface} receive a registry typed against this contract, so the framework's extension point does not depend on the concrete tool-runtime implementation (which lives in the tool-runtime plugin, not in core).

ToolRegistryInterface::register()

abstract public function register(string $name, string $description, array $inputSchema, callable $callback, ?Milpa\app\ValueObjects\Tooling\ToolOptions $options = null): void

Register a tool.

Parameters

Parámetros de register()
NombreTipoDescripción
$namestring
$descriptionstring
$inputSchemaarray<string, mixed>JSON-schema-like input definition
$callbackcallableTool handler
$options?ToolOptionsscopes|mutating|requiresConfirmation|timeout|clamps|version|outputSchema