# Step Flow: Tool-Use Run: Diagram element for AI agents

> Show a sequence the way an agent runs it: each step spins, then resolves to its result.

Canonical page: https://agentframes.ai/elements/clay-ink-explainer/step-flow/
Markdown: https://agentframes.ai/elements/clay-ink-explainer/step-flow.md

## Overview

- Name: Step Flow: Tool-Use Run (`stepFlow`), an element: one HyperFrames block per size
- Part of: the [Clay & Ink: Explainer](https://agentframes.ai/packs/clay-ink-explainer.md) pack (3 of 50). Available only through the All-access subscription.
- Category: Diagram
- Purpose: Show a sequence the way an agent runs it: each step spins, then resolves to its result.
- Pack: [Clay & Ink: Explainer](https://agentframes.ai/packs/clay-ink-explainer.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on Paper (ivory) (`paper`), Dusk (sky blue + halftone) (`dusk`), Night (near-black + stars) (`night`); avoid none
- Typical duration: 9s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/clay-ink-explainer/step-flow.mp4
- Poster: https://agentframes.ai/media/clay-ink-explainer/step-flow.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Clay & Ink: Explainer pack. Add a `stepFlow` beat to plan.json on a `paper` canvas with slots `eyebrow`, `title`, `summary`, `steps` and `cues` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `eyebrow` | string | eyebrow | {"type":"string","minLength":0,"maxLength":24} |  |
| `title` | string | title | {"type":"string","minLength":0,"maxLength":60} | Four tools, one request |
| `summary` | string | summary | {"type":"string","minLength":1,"maxLength":28} | Used 4 tools |
| `steps` | string | steps | JSON string. {"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":34},"result":{"type":"string","minLength":0,"maxLength":22},"icon":{"type":"string","enum":["doc","slides","design","calendar","mail","chart","chat","code","folder","globe","search","check","clock","user","list","bolt","file","logo:android","logo:app-store","logo:apple","logo:asana","logo:calendar","logo:chrome","logo:drive","logo:dropbox","logo:excel","logo:figma","logo:github","logo:gmail","logo:google-docs","logo:google-meet","logo:google-play","logo:google-sheets","logo:hubspot","logo:linkedin","logo:notion","logo:outlook","logo:pdf","logo:powerpoint","logo:salesforce","logo:shopify","logo:slack","logo:stripe","logo:teams","logo:word","logo:youtube","logo:zoom"]}},"required":["label"]},"minItems":2,"maxItems":5} | [{"label":"Read your calendar","result":"6 meetings","icon":"logo:calendar"},{"label":"Search your inbox","result":"14 threads","icon":"logo:gmail"},{"label":"Check the pipeline","result":"3 deals at risk","icon":"logo:salesforce"},{"label":"Draft the follow-ups","result":"5 drafts","icon":"doc"}] |
| `cues` | string | cues | JSON array of seconds from the start of the block, one per item, rising by at least 0.3 s (from the transcript/voice-over). Empty "[]" spreads items evenly. {"type":"array","items":{"type":"number","minimum":0,"maximum":4.3},"maxItems":5} | [] |

## What your agent can change

Show a sequence the way an agent runs it: each step spins, then resolves to its result.

Native 1920x1080, 9 s at 30 fps. Full-frame graphics block; use the variant that matches your project size.
Motion: change: spinner to check is the step completing; continuity: the rail draws from row to row.

### Edit

Set per-instance values in the host mount's `data-variable-values` (nested values are JSON strings). The block validates every value before it draws and throws a readable error naming the slot (see the console / `data-cie-error` on the root) instead of silently trimming or shrinking content.

- `eyebrow`: `{"type":"string","minLength":0,"maxLength":24}`
- `title`: `{"type":"string","minLength":0,"maxLength":60}`
- `summary` (required): `{"type":"string","minLength":1,"maxLength":28}`
- `steps` (required): JSON string; `{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":34},"result":{"type":"string","minLength":0,"maxLength":22},"icon":{"type":"string","enum":["doc","slides","design","calendar","mail","chart","chat","code","folder","globe","search","check","clock","user","list","bolt","file","logo:android","logo:app-store","logo:apple","logo:asana","logo:calendar","logo:chrome","logo:drive","logo:dropbox","logo:excel","logo:figma","logo:github","logo:gmail","logo:google-docs","logo:google-meet","logo:google-play","logo:google-sheets","logo:hubspot","logo:linkedin","logo:notion","logo:outlook","logo:pdf","logo:powerpoint","logo:salesforce","logo:shopify","logo:slack","logo:stripe","logo:teams","logo:word","logo:youtube","logo:zoom"]}},"required":["label"]},"minItems":2,"maxItems":5}`
- `cues`: JSON string; `{"type":"array","items":{"type":"number","minimum":0,"maximum":4.3},"maxItems":5}`

steps: 2 to 5 rows {label, result (optional), icon (optional)}. cues: one time per step (seconds from the start of the block, rising, at most 4.3); empty spreads rows 0.7 to 1.0 s apart.

Style (from brand.json): `colourway` (paper, dusk, night), `accent` (hex), `brandName` (wordmark text), `mark` (spark, dot, none, or an inline base64 image).

### Timing

Content settles by 60% of the block (5.4 s) and holds for reading; the last 0.45 s draws out. To give longer copy more time, raise the block's `data-duration` and the mount's `data-duration` together; the engine's checks use the duration you set.

### Example mount

```html
<div id="scene-1" data-composition-id="af-clay-ink-explainer-step-flow-16x9" data-composition-src="compositions/af-clay-ink-explainer-step-flow-16x9.html" data-start="0" data-duration="9" data-width="1920" data-height="1080" data-track-index="0"
  data-variable-values='{"eyebrow":"","title":"Four tools, one request","summary":"Used 4 tools","steps":"[{\"label\":\"Read your calendar\",\"result\":\"6 meetings\",\"icon\":\"logo:calendar\"},{\"label\":\"Search your inbox\",\"result\":\"14 threads\",\"icon\":\"logo:gmail\"},{\"label\":\"Check the pipeline\",\"result\":\"3 deals at risk\",\"icon\":\"logo:salesforce\"},{\"label\":\"Draft the follow-ups\",\"result\":\"5 drafts\",\"icon\":\"doc\"}]","cues":"[]"}'></div>
```

Source: editable HTML; shared runtime `assets/af-clay-ink-explainer/cie.js` (component af-clay-ink-explainer-runtime). Fonts are OFL; logos and the spark are third-party marks (see TRADEMARKS.md).

## FAQ

### What can my AI agent change in Step Flow: Tool-Use Run?

Your agent fills the `eyebrow`, `title`, `summary`, `steps` and `cues` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Clay & Ink: Explainer look.

### Which aspect ratios does Step Flow: Tool-Use Run support?

Step Flow: Tool-Use Run is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 9s.

### How do I get Step Flow: Tool-Use Run?

Step Flow: Tool-Use Run is included in the Clay & Ink: Explainer pack, which is part of the AgentFrames All-access subscription along with 49 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Clay & Ink: Explainer

- [Definition: Prompt and Answer](https://agentframes.ai/elements/clay-ink-explainer/definition.md): Define a term the way people now look things up: typed into a prompt, sent, answered.
- [Cycle Loop: Recurring Routine](https://agentframes.ai/elements/clay-ink-explainer/cycle-loop.md): Explain a loop that repeats: a clay traveller moves clockwise, lighting each stage.
- [Hub and Spoke: Connected Tools](https://agentframes.ai/elements/clay-ink-explainer/hub-spoke.md): Show how several sources connect to one centre; each spoke draws in and its tile flips to connected.
- [Decision Tree: Choice Card](https://agentframes.ai/elements/clay-ink-explainer/decision-tree.md): Present a choice and what each option leads to; the cursor picks one and its branch lights up.

## Community

Coming soon.
