Docs/Core nodes
#

Core nodes

Reference for the core Cofactor flow nodes. Login (Acting As), Navigate and Action, plus Run a flow, Sandbox action, API Sequence and MCP, with their fields and config keys.

Three nodes cover the basics. Login (shown as Acting As) sets who the test runs as, Navigate opens a page, and Action does the work. Four more nodes run another flow, a sandbox script, an API call or an MCP server. For the full list of node types, see Flows.

In the CLI, a node is {"nodeType": "...", "title": "...", "configJson": {...}}. Each section below lists the configJson keys.

Login

nodeType: login. Label: Acting As. It signs the browser in as the chosen identity. A flow can hold several Login nodes.

configJson keyMeaning
credentialSourcestatic (default), from_template, from_seed or from_input.
credentialInputNameThe workflow credential input. Required when the source is from_input.
credentialIdThe saved credential. Required when the source is static.
credentialTemplateIdThe persona. Required when the source is from_template.
seedCredentialRef{ "seedWorkflowId": "...", "dataKey": "..." }. Required when the source is from_seed.
performLogintrue by default. false is the Logged in switch turned off. Use it for logged-out flows, for example password reset, or to test sign-in itself.

See Credentials and login. Find a credential id with cofactor credential list.

nodeType: navigate. It opens a page.

FieldconfigJson keyNotes
Destination pagepageUrlRequired. Type $ to insert a variable or macro.
Open in new tabopenInNewTabOpens the page in a new tab before continuing.

Use a path like /settings. A path needs an earlier step, such as Login, that puts the browser on your application. A full URL goes to that exact domain in every environment.

Action

nodeType: action. It does one thing a user does on the current page. Describe the goal in plain language, and the agent works out the clicks.

SectionconfigJson keyNotes
Titletitle (beside configJson)Short and about the goal, for example "Create a ticket". It shows on the canvas as the node label.
DescriptionactionDescriptionWhat to do, with exact values. Type $ for macros.
Always use agentalwaysUseAgentSkips the cache and has the agent do the step every run.
AssertionsinlineAssertionsChecks that run right after the action. See Assertions.
OutputsdeclaredOutputsNames for values the action captures. Later nodes use them as $var.<name>.
Capture audio playbackcaptureAudioRecords what the page plays so an Audio assertion can check it.

After a first pass, an action replays from a cache. See Self-healing.

Run a flow

nodeType: call_flow. Label: Run a flow. It runs another flow at this point in the chain and passes the child's declared outputs back as variables. The child runs as its own nested run.

FieldconfigJson keyNotes
FlowflowIdRequired. A flow cannot run itself.
VersionsnapshotVersionnull runs the live definition. A number pins a published version.
EnvironmentenvironmentIdnull resolves at run time.
Execution ModeexecutionModerecommended (default), api or browser.
InputsinputValuesValues for the child's declared inputs.
Continue on failureonFailureblock (default) or warn.

Only outputs the child declares cross over. Each arrives as $var.<key>. With Continue on failure, a child that fails passes back no outputs. Calls can nest five levels deep.

Sandbox action

nodeType: sandbox_action. It runs a script that your application's sandbox definition declares, or an emulator operation, on the run's sandbox, with no browser.

FieldconfigJson keyNotes
Sandbox actionactionSlugRequired.
InputsparamsKeyed by the action's input names. Variables and macros work.
OutputsoutputKeysNames to register. Used when the action declares no output schema.

Each output becomes $var.<key>. An output that is a list or object becomes a JSON string of up to 65,536 characters. A longer one fails the step. See Sandbox guide.

API sequence

nodeType: api_sequence. It calls API endpoints in order with no browser. See API sequences.

MCP

nodeType: mcp. It tests an MCP server that you registered as an application, with no browser. An agent works toward a goal you describe, using the server's tools.

FieldconfigJson keyNotes
ApplicationpropertyIdRequired. The MCP application.
PersonacredentialTemplateIdAuthenticates to the server. Required unless credentialId pins a credential.
InstructionsinstructionsRequired. The goal, with specifics and exact values.
OutputsdeclaredOutputsNames the node must produce, as $var.<name>.
Tool allowlisttoolAllowlistLimits which tools the agent can call.