Dive

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

SourceNamedAdd one
Your tool filesuser__<name>Create a tool in the workbench
Built-in toolsbuiltin__<name>Built-in tools
Packs<pack>__tool__<name>Packs
MCP servers<server>__<tool>Connect an MCP server
Plansplan__<identifier>Plans
Agentsagent__<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:

KindRunsCalls a model
execA commandNo
promptOne model call with a promptYes
reshapeA rebuild of JSON from the inputNo
decisionQuestions to a decision modelYes

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.0

dive 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.

Guides

On this page