Overview
Captures extract values from a step’s result and store them as variables for use in subsequent steps. Add acaptures array to any step.
Example
Capture fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Variable name to store the captured value |
strategy | CaptureStrategy | Yes | Extraction method (see below) |
description | string | No | Human-readable description |
required | boolean | No | If true, step fails when capture returns empty (default: false) |
pattern | string | No | Regex pattern for text extraction |
group | integer | No | Regex capture group index (0-based) |
prompt | string | No | AI prompt for ai strategy |
expression | string | No | Template expression for expression strategy |
Capture strategies
snapshot
Capture a value from the current page DOM. Use pattern to extract a substring.
url
Extract from the current page URL.
ai
Use AI to extract a value from the page. Provide a prompt describing what to extract.
expression
Evaluate a template expression. Useful for transforming or combining captured values.
evaluate
Run JavaScript in the page context and capture the result.
Using captured values
Captured values are available as template variables in subsequent steps:Regex patterns
When usingpattern, the value must be a valid regular expression. Use group to select a specific capture group:
group: 0— Entire match (default)group: 1— First capture groupgroup: 2— Second capture group