Skip to main content

Documentation Index

Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Reads a value from the page and writes it to the test’s env map. When schema is set, the returned value must validate against it or the step fails.

Parameters

ParameterTypeRequiredDescription
goalstringYesNatural-language description of the value to extract.
schemaobjectNoJSON Schema the extracted value must validate against.
iframestringNoDescription of the iframe to scope extraction to.
DANGEROUS_FORCE_DYNAMICbooleanNoBypass the step cache.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.
commentstringNoFree-form annotation kept with the step.

Shorthand

Pair with saveAs to capture the value into env.
- extract: the order id shown in the confirmation banner

Examples

- extract:
    goal: the main heading text shown on the page
    saveAs: EXTRACTED_HEADING
- extract:
    goal: The discounted subtotal in the order summary
    schema:
      type: object
      properties:
        amount:
          type: number
      required: [amount]
    saveAs: ORDER
- extract:
    goal: the company name shown on the YC profile page
    iframe: company-card
    saveAs: COMPANY_NAME