explore_and_record
Generate a replayable Maestro flow from described steps, capture assertions from the final screen, and run the flow to verify it replays.
Instructions
Generate a replayable Maestro flow from a described exploration, then verify it runs.
With both capture_assertions and validate enabled the steps run twice:
once to observe the resulting screen and derive assertions, once to prove the
finished file replays. That is deliberate — a flow that has never been
executed is a hypothesis, not a test.
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": {
"app_id": "<app_id>",
"steps": "<steps>"
},
"name": "explore_and_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Flow name, used as the file name. | recorded-flow |
| steps | Yes | Interactions to replay, in the order they happened. | |
| app_id | Yes | Maestro appId, for example com.example.app. | |
| device | No | Device serial. Omit to take any single free device. | |
| timeout | No | Flow timeout in seconds. | |
| validate | No | Run the generated flow to prove it replays. | |
| output_dir | No | Directory for the .yaml file. Defaults to the server working directory. | |
| capture_assertions | No | Generate assertVisible entries from the screen the steps leave behind. Requires one exploratory run of the steps. |