Workbook (reusable tasks)
Optional block for named tasks reusable across workflows.
What it is
- A list of named actions with the same shape as workflow steps (tool, data, auth, code/command/sql, assert, sink)
- Invoked from workflow steps via
tool: workbookand anamereference
Required keys
workbook: array of task objects- Each task:
name,tool(any action type exceptworkbook), plus fields required by that action
Invocation from workflow
- Create a workflow step with
tool: workbook - Provide
name: <task>so the engine resolves the workbook entry - Pass
datajust like any other step to override inputs on that invocation
Patterns
- Small Python utilities (validation, transformations)
- Parameterised SQL snippets (Postgres, DuckDB)
- Reusable HTTP integrations shared across steps or playbooks
Tips
- Keep task names unique within the workbook scope
- Document expectations with
assert.expects/assert.returns - Combine with
sinkto persist reusable action results consistently