Dive

Drafting

builtin__save_tool

Saves a drafted tool to the project's tools directory and loads it immediately as `user__<name>`.

  • The tool must pass builtin__try_tool first, unless untested is true.
  • Won't replace an existing file unless overwrite is true.
Available toEffect
Any agent or plan stepHas side effects

Input

overwriteboolean

Replace an existing file with the same name, only after the user confirms

untestedboolean

Save without a test run, only when the user said not to test it

yamlstringrequired

The whole user tool file, exactly as tested

Output

errorstring
pathstring
problemsstring[]
savedstring
untestedboolean
- id: E1
  tool_name: builtin__save_tool
  input:
    yaml: "{{input.yaml}}"