# `Alloy.Tool.Registry`
[🔗](https://github.com/alloy-ex/alloy/blob/v0.10.1/lib/alloy/tool/registry.ex#L1)

Builds tool schemas and function maps from tool modules.

Takes a list of modules implementing `Alloy.Tool` and produces:
1. Tool definitions (JSON Schema format for providers)
2. A dispatch map from tool name → module for execution

# `build`

```elixir
@spec build([module()]) :: {[map()], %{required(String.t()) =&gt; module()}}
```

Build tool definitions and dispatch map from a list of tool modules.

Returns `{tool_defs, tool_fns}` where:
- `tool_defs` is a list of maps suitable for provider APIs
- `tool_fns` maps tool name strings to their implementing module

---

*Consult [api-reference.md](api-reference.md) for complete listing*
