Skip to main content
Glama

e2e-execute

Run a saved YAML end-to-end test to replay a recorded path or QA regression and get a per-step pass/fail report; the run stops at the first failure.

Instructions

Run a saved YAML e2e test end to end. Use when asked to replay a recorded path, re-run a QA regression, or check that a known journey still passes; for a one-off interaction use the gesture tools instead, and to author an e2e test use e2e-start-recording. Pass exactly one e2e test source: name (under project_root) or e2e_test_path. Returns a per-step report: the first failure stops the run and the rest report as skipped. Over a link (argent link or ARGENT_TOOLS_URL), the client uploads the e2e test with the run: fragments, snapshot baselines and absolute .png/.yaml file arguments its steps use, from under project_root or beside the e2e test file. The run fails if a step needs any other project file (a script: step, a recording tool, a nested e2e-execute not called by name with an absolute project_root, a directory, app or output-directory argument, a file path built from several arguments, a relative path): it stops before the first step and the error lists each such step. An absolute .png/.yaml argument from anywhere else fails only when its step runs. Without a link, every step kind runs.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_root": "<project_root>"
    },
    "name": "e2e-execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName of a saved e2e test to run from `<project_root>/.argent/e2e`, or `.argent/flows` when it is not there (e.g. "settings-explore").
deviceNoDevice id to run against (iOS UDID, Android/Vega serial, Chromium id), as list-devices reports it. Auto-detected when omitted, but only when exactly one booted device matches (optionally narrowed by `platform` and the e2e test's `requires:` block); with several booted the run fails and lists them, so pass this explicitly whenever more than one device is up.
platformNoRestrict auto-detection to this platform when several devices are booted. `ios` selects local simulators only; `ios-remote` selects a remote one. `chromium` with no `device` also makes the runner boot an Electron instance for a standalone e2e test from its `launch` step's chromium value and tear it down after the run, with no fallback to auto-detection (a single-key `launch: { chromium: … }` map, or a `requires:` block that allows only chromium, does this on its own; a fragment, or a launch map without a `chromium` key, is still auto-detected). That value must be an Electron app path on the tool-server host: the bare-string `launch:` the recorder writes holds a bundle id, which fails the run with `Electron boot: path does not exist`, so first edit it to `{ chromium: <app path> }`.
project_rootYesAbsolute path to the calling agent's project root: the cwd it is working in, also with e2e_test_path, where the e2e test, its run: siblings, its script: paths and baselines resolve beside the YAML instead. A script still RUNS in this root.
e2e_test_fileNoPath to the e2e test .yaml as readable by the tool-server. Internal: the argent client derives it from project_root and name automatically; leave unset.
e2e_test_pathNoAbsolute path to an e2e test .yaml on the client.
updateBaselinesNoWrite/refresh screenshot baselines for `snapshot` steps instead of diffing against them, also in the e2e tests that tool: e2e-execute steps run, unless such a step sets updateBaselines itself. Over a link, the client writes the new baselines when the run ends.
prerequisiteAcknowledgedNoSet to true to confirm the execution prerequisite has been met. Required when a fragment defines an executionPrerequisite: without it, the call runs no step and returns the prerequisite text. Not a dry run: an e2e test with no prerequisite runs in full. To read a prerequisite without running, read executionPrerequisite in the YAML file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are provided, and the description carries the full burden well: it states the return shape (per-step report), the failure semantics (first failure stops the run, remaining steps report skipped), and the link-mode upload rules for fragments, baselines and file arguments. It also discloses two distinct failure timings — pre-run abort listing offending steps versus per-step failure for out-of-tree absolute .png/.yaml arguments — plus the no-link behavior.

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?

Well front-loaded: purpose, when-to-use, alternatives, then the source-selection rule, then return/failure semantics, then the link caveats. The link paragraph is dense and reads as a wall of conditions, but each clause describes a distinct failure mode that would otherwise cause silent misuse.

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?

For an 8-parameter execution tool with no output schema and no annotations, the description supplies the missing return format, the sequencing semantics, and the environment-dependent constraints. An agent has enough to decide whether to call it and to predict how it will fail.

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 the baseline is 3, but the description adds a genuine cross-parameter constraint the schema cannot express: "Pass exactly one e2e test source: name (under project_root) or e2e_test_path." It also clarifies that prerequisiteAcknowledged is not a dry run and that an e2e test without a prerequisite runs in full, which resolves a likely misreading.

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?

Opens with a specific verb+resource+scope: "Run a saved YAML e2e test end to end." It immediately distinguishes itself from the gesture tools and from e2e-start-recording, so an agent can route correctly without opening a schema.

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

Usage Guidelines5/5

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

Gives concrete triggering situations (replay a recorded path, re-run a QA regression, verify a known journey still passes) and names both alternatives with the condition that selects them: gesture tools for one-off interactions, e2e-start-recording to author a test. Exclusion guidance is explicit.

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