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.

act lets the agent decide which clicks, types, and waits are needed to reach goal. The agent reads the page on every iteration and stops when the goal is met or the budget is exhausted. For deterministic interactions, prefer explicit commands like click and type.

Parameters

ParameterTypeRequiredDescription
goalstringYesNatural-language description of what the agent should accomplish.
version"2" | "3"NoAI action version. Defaults to V3.
preconditionstringNoAssertion that must pass before the agent runs. V3 only.
postconditionstringNoAssertion that must pass after the agent finishes. V3 only.
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

Goal as a single string.
- act: Search for 'sam altman' and make sure there are more than 3 results

Examples

- act:
    goal: Ensure the Email Address input box exists and can receive inputs.
- act:
    goal: create a new test with {{ env.RANDOM_TEST_NAME }} in the name
    postcondition: the created test is open in the editor
- act:
    goal: |-
      close the announcement pop up if it is still visible, then trigger the
      login pop up by typing into the text box for adding details
    version: "3"
- act:
    goal: Pick aubergine from the fruit select
    version: "2"