You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/site/docs/en/automate-with-scripts-in-yaml.mdx
+3-8Lines changed: 3 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -544,26 +544,21 @@ tasks:
544
544
# ...
545
545
```
546
546
547
-
#### Reuse Step Results
547
+
#### Step Result Names
548
548
549
-
Steps that write a result with `name`can be referenced by later steps in the same YAML run. Use `$name`when the whole field should be replaced by the stored value.
549
+
Steps that write a result with `name`save that value into the YAML run result and the JSON output. Use `name`to label values that should appear in the run output.
550
550
551
551
```yaml
552
552
tasks:
553
-
- name: Search by extracted data
553
+
- name: Save extracted data
554
554
flow:
555
555
- aiString: Get the product id shown on the page
556
556
name: product_id
557
557
558
-
- aiInput: Search box
559
-
value: $product_id
560
-
561
558
- aiQuery: Get the search result after submitting the product id
562
559
name: search_result
563
560
```
564
561
565
-
`$name` keeps the original result type when the referenced value is used as the whole field. Runtime interpolation with `${name}` is also supported inside longer strings; non-string values are serialized as JSON before interpolation. Referencing an undefined variable throws an error.
566
-
567
562
#### Upload Files With `aiTap`
568
563
569
564
When clicking a button opens a file chooser, you can set `fileChooserAccept` directly on the `aiTap` step. It accepts either a single path or an array of paths.
v1.8 adds YAML result reuse, refines model reasoning defaults, and brings new device/platform integration options.
5
+
v1.8 refines model reasoning defaults and brings new device/platform integration options.
6
6
7
7
### YAML Workflow Enhancements
8
8
9
-
- YAML steps with `name` can be reused in later steps through `$name` and `${name}`. See: [Automate with Scripts in YAML](./automate-with-scripts-in-yaml#reuse-step-results)
10
9
- Android `runAdbShell` now accepts a `timeout` option in both the JavaScript API and YAML scripts. See: [Android API](./android-api-reference), [Automate with Scripts in YAML](./automate-with-scripts-in-yaml)
Copy file name to clipboardExpand all lines: apps/site/docs/en/yaml-script-runner.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ The CLI prints execution progress and generates a visual report when it finishes
124
124
125
125
### Use environment variables in `.yaml`
126
126
127
-
Reference environment variables in your scripts with `${variable-name}`.
127
+
Reference environment variables in your scripts with `${variable-name}`. Environment-variable interpolation is applied before YAML task execution, including task strings.
0 commit comments