Workflow steps

agent.run

type: "agent.run"

A whole agent inside a step: it plans, calls tools and reports. For the work a single model call cannot do.

model requiredtools are checked on save8 steps by default
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

modelstring | objectrequired

A name, or { main, image, video, voice, music } for the media roles.

toolsobject | array

Written as an object of api.tools, serialised by the package.

storagesstring[]

Which storages it may read.

inputsarray

Its instructions.

skillsstring[]

Skills to put in front of the work.

subagentstring

Run it as a library agent.

maxSteps · budgetinteger8 · —

Its ceilings.

Tool names are checked when you save

An unknown tool is refused, not dropped

Skipping it without a word would leave a workflow running without the tool it was built around, and nobody told why the result is wrong. The refusal names what is available.

{ id: "research", type: "agent.run", config: {
    model: "gemini-3.5-flash",
    tools: { search: api.tools.search, fetch: api.tools.fetch },
    storages: [database.id],
    inputs: [{ type: "text", content: "Find what changed in {{input.area}} and list the sources." }],
    maxSteps: 8, budget: 150,
} }
{"id": "research", "type": "agent.run", "config": {
    "model": "gemini-3.5-flash",
    "tools": ["search", "fetch"],              # built-in tools, by name
    "storages": [database.id],
    "inputs": [{"type": "text", "content": "Find what changed in {{input.area}} and list the sources."}],
    "maxSteps": 8, "budget": 150,
}}

Output

{{steps.research.output.text}} is its report, and output.usage what it cost. The steps it took are in the run record.

This is the server-side agent

There is no permission callback and no machine: the boundary is the tools you declared and the storages you passed. The tools that send, publish or write DNS are deliberately not in its inventory — those are steps, which require an approval.

Give it a budget

It is the one step type whose cost is not knowable in advance. On a scheduled trigger that matters more than anywhere else.