Tools
Tools are callable functions exposed to the live model.
Execution modes
inline: blocking, result returned in-turnbackground: async handoff to subagent
Tool basics
Each tool defines:
name,descriptionparameters(zod schema)executionexecute(args, ctx)
Artifact Pipeline (Cross-Tool Data Flow)
The framework supports per-session artifact sharing across tools and subagents.
Use this when one tool generates binary data (image/document) and another tool needs it later (email, analysis, relay).
Typical flow:
- Generator tool stores artifact in registry.
- Registry returns
artifactId. - Downstream tool receives
artifactIdand materializes/forwards data.
This avoids embedding base64 into prompt text and keeps handoffs structured.