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 key | Meaning |
|---|---|
credentialSource | static (default), from_template, from_seed or from_input. |
credentialInputName | The workflow credential input. Required when the source is from_input. |
credentialId | The saved credential. Required when the source is static. |
credentialTemplateId | The persona. Required when the source is from_template. |
seedCredentialRef | { "seedWorkflowId": "...", "dataKey": "..." }. Required when the source is from_seed. |
performLogin | true 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.
Navigate
nodeType: navigate. It opens a page.
| Field | configJson key | Notes |
|---|---|---|
| Destination page | pageUrl | Required. Type $ to insert a variable or macro. |
| Open in new tab | openInNewTab | Opens 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.
| Section | configJson key | Notes |
|---|---|---|
| Title | title (beside configJson) | Short and about the goal, for example "Create a ticket". It shows on the canvas as the node label. |
| Description | actionDescription | What to do, with exact values. Type $ for macros. |
| Always use agent | alwaysUseAgent | Skips the cache and has the agent do the step every run. |
| Assertions | inlineAssertions | Checks that run right after the action. See Assertions. |
| Outputs | declaredOutputs | Names for values the action captures. Later nodes use them as $var.<name>. |
| Capture audio playback | captureAudio | Records 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.
| Field | configJson key | Notes |
|---|---|---|
| Flow | flowId | Required. A flow cannot run itself. |
| Version | snapshotVersion | null runs the live definition. A number pins a published version. |
| Environment | environmentId | null resolves at run time. |
| Execution Mode | executionMode | recommended (default), api or browser. |
| Inputs | inputValues | Values for the child's declared inputs. |
| Continue on failure | onFailure | block (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.
| Field | configJson key | Notes |
|---|---|---|
| Sandbox action | actionSlug | Required. |
| Inputs | params | Keyed by the action's input names. Variables and macros work. |
| Outputs | outputKeys | Names 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.
| Field | configJson key | Notes |
|---|---|---|
| Application | propertyId | Required. The MCP application. |
| Persona | credentialTemplateId | Authenticates to the server. Required unless credentialId pins a credential. |
| Instructions | instructions | Required. The goal, with specifics and exact values. |
| Outputs | declaredOutputs | Names the node must produce, as $var.<name>. |
| Tool allowlist | toolAllowlist | Limits which tools the agent can call. |