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
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of a saved e2e test to run from `<project_root>/.argent/e2e`, or `.argent/flows` when it is not there (e.g. "settings-explore"). | |
| device | No | Device 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. | |
| platform | No | Restrict 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_root | Yes | Absolute 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_file | No | Path 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_path | No | Absolute path to an e2e test .yaml on the client. | |
| updateBaselines | No | Write/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. | |
| prerequisiteAcknowledged | No | Set 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. |