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.

Same shape as assert, but the agent reasons over the screenshot rather than the DOM. Use this when the property under test is purely visual — color, layout, icons, charts.

Parameters

ParameterTypeRequiredDescription
thatstringYesWhat must be true on the page, purely from the screenshot.
timeoutnumberNoMaximum time in milliseconds to wait.
iframestringNoDescription of the iframe to scope the assertion to.
sourcestringNoMarker used to attribute the assertion in traces.
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

Assertion text as a single string.
- assertVisually: there is a twitter profile shown on the page

Examples

- assertVisually:
    that: |
      the module's two substeps (return 1 and return 2) both have green check
      marks to their left, but the top-level "return 3" step that comes after
      the module does NOT have a green check mark
    timeout: 60000
- assertVisually:
    that: |
      none of the step cards on the left-hand side of the editor have
      a green check mark next to them