Skip to main content
Glama

flow-execute

Runs a saved flow of device actions from the project's .argent/flows/ directory. Returns step results, including images, or fails with an error if a step breaks.

Instructions

Run a saved flow from the .argent/flows/ directory. Each step is executed in order: tool calls are dispatched through the registry, echo steps print a message. A tool step may carry delayMs: <ms> to sleep that long before the step runs. Returns the result of every step, including images. Use when you want to replay a recorded flow or run a scripted sequence of device actions. Fails if the flow file does not exist or a step tool raises an error (execution stops at that step). An await-ui-element step whose condition is not met before its timeout also stops the flow there (its later steps were recorded assuming the condition held), so use one to gate a step on a screen transition.

If the flow has an execution prerequisite and prerequisiteAcknowledged is not set to true, the tool returns a notice with the prerequisite instead of running. Use flow-read-prerequisite to inspect the prerequisite beforehand.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the flow to run (e.g. "settings-explore")
flow_fileNoPath to the flow .yaml as readable by the tool-server. Internal — the argent client derives it from project_root and name automatically; leave unset.
project_rootYesAbsolute path to the project root directory that contains `.argent/flows/<name>.yaml`.
prerequisiteAcknowledgedNoSet to true to confirm the execution prerequisite has been met. Required when the flow defines an executionPrerequisite.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description fully bears the burden of disclosure. It explains execution details (delayMs, echo steps), failure conditions (missing file, tool error, timeout), and prerequisite handling, offering comprehensive behavioral transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is moderately lengthy but well-structured: it starts with the core action, then details step execution, error cases, and prerequisites. Every sentence contributes useful information, though it could be slightly tighter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 4 parameters, no output schema, and many siblings, the description covers the main aspects: purpose, step behavior, error handling, and prerequisite flow. It does not detail the return format, but overall it is quite complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value by explaining the role of prerequisiteAcknowledged and mentioning that flow_file is internal, providing context beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool runs a saved flow from the .argent/flows/ directory, detailing step execution order and error handling. It distinguishes itself from sibling tools like flow-read-prerequisite by describing the prerequisite flow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says 'Use when you want to replay a recorded flow or run a scripted sequence of device actions' and mentions flow-read-prerequisite for inspecting prerequisites, providing clear usage context. However, it does not explicitly state when not to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/software-mansion/argent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server