Dive

Plan edits

workbench__add_step

Adds one top-level step to the plan draft.

  • Appends the step, or places it before or after an existing step id.
  • Refused only if it adds a new validation problem; existing problems are reported.
  • Steps inside route, map and reduce bodies are edited through their control step with workbench__update_step.
Available toEffect
Workbench agents onlyNot marked read-only

Input

afterstring

Insert after this existing step id. Omit both anchors to append.

beforestring

Insert before this existing step id.

stepobjectrequired
step.idstringrequired

Unique step id templates reference: E-style (E4) or descriptive (fetch_issues).

step.inputobjectrequired

Tool input; string values may reference earlier steps with {{id.path}} templates.

Why this step exists and what it should produce.

step.toolNamestringrequired

Exact tool name from the catalog.

Output

idstring
indexinteger
okboolean
stepsinteger
{
  "id": "E4",
  "index": 2,
  "ok": true,
  "steps": 5
}