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.

With no target, closes the active tab. To close a specific tab, provide one of substring, regex, or index.

Parameters

ParameterTypeRequiredDescription
substringstringNoMatch the URL by substring.
regexstringNoMatch the URL by regular expression.
indexnumber | stringNoZero-based tab index.
timeoutnumberNoMaximum time in milliseconds to wait for a matching tab.
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

Bare command. Closes the active tab.
- closeTab

Examples

- closeTab:
    substring: blog
- closeTab:
    index: 1
    timeout: 5000