Built-in tools
Built-in tools
Model calls, list processing and JSON reshaping that every agent and plan step can use, with no pack to enable.
- Always in the catalog, called as
builtin__<name>. inferanddecideneed a configured model: a chat model forinfer, a decision model fordecide.rankneeds a decision model too, and is listed only when one is configured.reshape,flatten,dedupe,sortandtakemake no model call.- To replace
infer,decideorreshape, put a tool file with the samenamein<tools dir>/builtin/, such as.dive/tools/builtin/reshape.yaml. The list tools can't be replaced.
| Name | Description |
|---|---|
builtin__infer | Runs one model call over an instruction and returns text or structured JSON. |
builtin__decide | Asks a decision model typed questions about one state, in one call. |
builtin__reshape | Builds a value in a new JSON shape from earlier step results. |
builtin__generate_image | Generates images with the image model, or edits the images it's given, and returns each as a file reference. |
builtin__flatten | Flattens a list of lists into one list, with no model call. |
builtin__dedupe | Removes duplicates from a list, keeping the first of each, with no model call. |
builtin__sort | Sorts a list by a field, with no model call. |
builtin__take | Keeps the first n items of a list, with no model call. |
builtin__rank | Ranks a whole list against a question in one decision-model call. |
builtin__save_file | Stores text or JSON you already have as a file and returns its ref, with no model call. |
builtin__read_file | Reads a text file's content from its ref, with no model call. |