# agent.run

Canonical URL: https://developers.iagenify.com/sdk/workflows/steps/agent-run/
Language: en

`type: "agent.run"`

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

Status: model required · tools are checked on save · 8 steps by default

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `model` | string | object | required | A name, or `{ main, image, video, voice, music }` for the media roles. |
| `tools` | object | array |  | Written as an object of [api.tools](/sdk/ref/tools), serialised by the package. |
| `storages` | string[] |  | Which storages it may read. |
| `inputs` | array |  | Its instructions. |
| `skills` | string[] |  | Skills to put in front of the work. |
| `subagent` | string |  | Run it as a library agent. |
| `maxSteps · budget` | integer | 8 · — | Its ceilings. |

## Tool names are checked when you save {#tools}

> **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.

```javascript
{ 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,
} }
```

## Output {#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 {#not-local}

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](/sdk/workflows/steps/mail-send), which require an approval.

## Give it a budget {#budget}

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

- [Agent](/sdk/ref/agent): The engine behind it.
- [api.tools](/sdk/ref/tools): The declarations.
- [Workflow steps](/sdk/workflows/steps): The 23 types.

```python
{"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,
}}
```
