e2e-start-recording
Start recording a new end-to-end test by resetting its YAML file to an empty sequence, then capture reusable device interactions as steps for later replay.
Instructions
Start recording a new e2e test, resetting .argent/e2e/.yaml to an empty e2e test and replacing any existing one.
Use when you want to capture a reusable sequence of device interactions for later replay. Load the argent-create-e2e skill first: it holds the polish, audit and replay steps. Not for Apple TV or Android TV.
Returns { message, e2eTestFile, savedTo } and optionally { restarted, discardedSteps } if a live recording of the same e2e test was discarded.
Without a link, it creates that file and fails if the .argent/e2e/ directory cannot be created or the file cannot be written. Over a link (argent link or ARGENT_TOOLS_URL, also to 127.0.0.1), your client writes the file, and savedTo is its path on your computer, or null when that write failed.
Several e2e tests 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.
After starting, use e2e-add-step to append tool calls. Each step runs LIVE, so
give each concurrent recording its own device and pick a name unique to your
task. Read each step's message: it warns when a recorded await-ui-element did
not hold, or may fail once converted to await:/assert:. A wait nested in a
recorded run-sequence gets no such warning, so read its toolResult. For a
standalone e2e test, record a restart-app of the app under test as the FIRST step
(captured as the e2e test's launch step); for a reusable fragment, skip that and
pass executionPrerequisite instead. Starting over an existing e2e test replaces the
whole file, including its requires: block; pass requires to keep it.
Use e2e-add-echo to add labels, and
e2e-add-script to run a local .mjs, .mts, .js or .ts file and record it as a script: step.
Call e2e-finish-recording when done.
To remove or reorder steps, edit the .yaml file after e2e-finish-recording, not during the recording: over a link, the next recorded step writes over your edit, and without a link, an edit that renumbers the steps drops their warnings.
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": {
"name": "<name>",
"project_root": "<project_root>"
},
"name": "e2e-start-recording"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for this e2e test (e.g. "settings-explore"): letters, digits, underscore and hyphen only. | |
| requires | No | The e2e test's `requires:` block: the targets it supports, ANDed. `platform` is one platform or a list (`ios` also covers a remote simulator); `runtimeKind` is `tv` or `mobile`. Omit it for a test that runs on any target. | |
| project_root | Yes | Absolute path to the project root directory (the directory that contains or should contain `.argent/e2e/`). | |
| executionPrerequisite | No | Fragments only: the app/device state assumed on entry (e.g. "Settings app open on General page"). Omit it for a standalone e2e test. restart-app has no chromium support, so a chromium e2e test records as a fragment; add the `launch: { chromium: <app path> }` line to the YAML afterward, deleting the executionPrerequisite line if you passed one, since an e2e test that starts with a launch must not declare it. |