Skip to main content
Glama

flow-start-recording

Start a new flow recording to capture a reusable sequence of device interactions for later replay, resetting any existing flow file to an empty state.

Instructions

Start recording a new flow, resetting .argent/flows/.yaml to an empty flow and replacing any existing one. Use when you want to capture a reusable sequence of device interactions for later replay. Returns { message, flowFile, savedTo } and optionally { restarted, discardedSteps } if a live recording of the same flow was discarded. Whether this server writes that file depends on where your project is: co-located, it creates it and fails if the .argent/flows/ directory cannot be created or the file cannot be written; against a remote tool-server it writes nothing and savedTo is a directive your client applies (a null savedTo back means it did not).

Several flows can be recorded at once — each keyed by the name + project_root that every subsequent recording tool repeats — and one recording's steps never land in another's file. Steps still run LIVE, so give each concurrent recording its own device and pick a name unique to your task.

After starting, use flow-add-step to append tool calls — each step is executed LIVE so you can verify it works before it gets recorded. Read each step's message: an await-ui-element whose condition never held is still recorded (it returns success:false rather than failing), and a check that passes live can still fail once polished into an await:/assert: directive, which resolves against a different tree. flow-add-step warns about both when you record the wait DIRECTLY. A wait nested inside a recorded run-sequence gets neither warning — that tool reports its own shape — so for those, read toolResult. For a self-contained e2e flow, record a restart-app of the app under test as the FIRST step (captured as the flow's launch step); for a reusable fragment, skip that and pass executionPrerequisite instead. Use flow-add-echo to add labels. Call flow-finish-recording when done.

If a recorded step turns out to be wrong, edit the .yaml file directly to remove or reorder steps - after flow-finish-recording, not during the recording. Against a remote client the in-memory copy is authoritative and every write serializes it over your edit; in host mode the recorder re-reads the file before each append, so a mid-recording edit renumbers the steps and costs the finish the cross-tree verdicts anchored to them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName for this flow (e.g. "settings-explore") — letters, digits, underscore and hyphen only.
project_rootYesAbsolute path to the project root directory (the directory that contains or should contain `.argent/flows/`). The flow file is created at `<project_root>/.argent/flows/<name>.yaml`.
executionPrerequisiteNoFragments only: the app/device state assumed on entry (e.g. "Settings app open on General page"). For a self-contained e2e flow, omit this and record a `restart-app` as the first step instead — it is captured as the flow's `launch` step. restart-app has no chromium support, so a chromium flow records as a fragment; add the `launch: { chromium: <app path> }` line to the YAML afterward, deleting the executionPrerequisite line if you passed one — a flow that starts with a launch must not declare it.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.20.0
    • changedInput schema / properties / executionPrerequisite / description
      Previous value: -"Fragments only: the app/device state assumed on entry (e.g. \"Settings app open on General page\"). For a self-contained e2e flow, omit this and record a `restart-app` as the first step instead — it is captured as the flow's `launch` step."New value: +"Fragments only: the app/device state assumed on entry (e.g. \"Settings app open on General page\"). For a self-contained e2e flow, omit this and record a `restart-app` as the first step instead — it is captured as the flow's `launch` step. restart-app has no chromium support, so a chromium flow records as a fragment; add the `launch: { chromium: <app path> }` line to the YAML afterward, deleting the executionPrerequisite line if you passed one — a flow that starts with a launch must not declare it."
    • changedInput schema / properties / name / description
      Previous value: -"Name for this flow (e.g. \"settings-explore\")"New value: +"Name for this flow (e.g. \"settings-explore\") — letters, digits, underscore and hyphen only."
  2. Changed2 schema fields changedv0.16.0
    • changedInput schema / properties / executionPrerequisite / description
      Previous value: -"Describes the required app/device state before running this flow (e.g. \"App on home screen after a fresh reload\", \"Settings app open on General page\")"New value: +"Fragments only: the app/device state assumed on entry (e.g. \"Settings app open on General page\"). For a self-contained e2e flow, omit this and record a `restart-app` as the first step instead — it is captured as the flow's `launch` step."
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "project_root",
      -  "executionPrerequisite"
      -]New value: +[
      +  "name",
      +  "project_root"
      +]
  3. First observedv0.15.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so extensively: it discloses the destructive reset behavior, the exact return shape, the co-located vs. remote mode difference, concurrency semantics, live execution of steps, and file-edit conflicts. This is far beyond a basic invocation-level description.

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 long but well-structured and front-loaded with the core purpose. Each block earns its place: return value, mode differences, concurrency, next steps, and file-editing caveats. It is somewhat dense and includes details that could arguably live in flow-add-step's docs, which prevents a perfect conciseness score.

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

Completeness5/5

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

Given the tool's complexity, the absence of annotations, and the lack of an output schema, the description is remarkably complete. It covers invocation, return values, failure behavior, environment-specific behavior, concurrency, next steps, and post-recording editing rules. An agent has enough context to call this tool correctly in most scenarios.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds real semantic value: it explains that name and project_root together key each recording, that names should be unique per task, that executionPrerequisite is for fragments only, and how restart-app relates to launch steps. This meaningfully exceeds the raw schema descriptions.

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 first sentence states the exact action: 'Start recording a new flow, resetting .argent/flows/<name>.yaml to an empty flow and replacing any existing one.' It names the resource, the verb, and the side effect, and clearly differentiates this from sibling tools like flow-add-step, flow-finish-recording, and flow-execute by framing it as the entry point for capturing a recording.

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 capture a reusable sequence of device interactions for later replay' and gives concrete next-step guidance ('After starting, use flow-add-step...', 'Call flow-finish-recording when done'). It also distinguishes e2e flows from reusable fragments. It does not explicitly list when-not-to-use or name a direct alternative for starting a recording, so it misses the full 'exclusions' bar for a 5.

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

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