Tools
Tools
Where tools come from, how they're named, and how to inspect any of them.
A tool is anything an agent or a plan step can call. Every tool sits in one catalog, and its name says where it comes from.
Where tools come from
| Source | Named | Add one |
|---|---|---|
| Your tool files | user__<name> | Create a tool in the workbench |
| Built-in tools | builtin__<name> | Built-in tools |
| Packs | <pack>__tool__<name> | Packs |
| MCP servers | <server>__<tool> | Connect an MCP server |
| Plans | plan__<identifier> | Plans |
| Agents | agent__<name> | Agents |
Because plans and agents are tools too, anything you build can be called by the next thing you build.
Tool files
A tool file is a YAML file in ./.dive/tools/ or ~/.config/dive/tools/. Its kind decides what it runs:
| Kind | Runs | Calls a model |
|---|---|---|
exec | A command | No |
prompt | One model call with a prompt | Yes |
reshape | A rebuild of JSON from the input | No |
decision | Questions to a decision model | Yes |
Only prompt and decision tools spend tokens, so moving work into exec and reshape tools makes it cheaper and repeatable.
Mark a tool read_only when it has no side effects. reshape and decision tools are read-only by default.
Tool names must be unique across both directories. To change a built-in tool for a project, put a file with the same name in the builtin/ subdirectory of a tools directory, and it replaces Dive's version. dive tool rm builtin__<name> deletes the override and brings Dive's version back; dive tool rm <name> deletes a user tool. A pack is a plain copy in packs/<name>/, so you change its tools by editing them there; dive pack list reports the edits.
Inspect and run tools
dive tool list
dive tool show github__tool__git_log
dive tool test github__tool__git_log --input base=v0.21.0dive tool list lists the catalog, dive tool show prints a tool's description, schemas and source, and dive tool test calls it and prints the result.