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): voidRegister a tool.
Parameters
| Nombre | Tipo | Descripción |
|---|---|---|
| $name | string | |
| $description | string | |
| $inputSchema | array<string, mixed> | JSON-schema-like input definition |
| $callback | callable | Tool handler |
| $options | ?ToolOptions | scopes|mutating|requiresConfirmation|timeout|clamps|version|outputSchema |