Skip to content

Atomic

Low-level primitives: file I/O, git, HTTP, shell, SSH, process management, and testing.

44 modules

ModuleDescription
Filter ArrayFilter array elements by condition
Sort ArraySort array elements in ascending or descending order
Array UniqueRemove duplicate values from array
OAuth2 Token ExchangeExchange authorization code, refresh token, or client credentials for an access token
DNS LookupDNS lookup for domain records
Text DiffGenerate diff between two text strings
Edit FileReplace text in a file using exact string matching
Check File ExistsCheck if a file or directory exists
Read FileRead content from a file
Write FileWrite content to a file
Git CloneClone a git repository
Git CommitCreate a git commit
Git DiffGet git diff
HTTP PaginateAutomatically iterate through paginated API endpoints and collect all results
HTTP RequestSend HTTP request and receive response
Assert HTTP ResponseAssert and validate HTTP response properties
HTTP SessionSend a sequence of HTTP requests with persistent cookies (login → action → logout)
Webhook WaitStart a temporary server and wait for an incoming webhook callback
LLM ChatInteract with LLM APIs for intelligent operations
AI Code FixAutomatically generate code fixes based on issues
CalculatePerform basic mathematical operations
HTTP Health CheckHTTP health check / uptime monitor
Check PortCheck if network port(s) are open or closed
Wait for PortWait for a network port to become available
List ProcessesList all running background processes
Start Background ProcessStart a background process (server, service, etc.)
Stop ProcessStop a running background process
Execute Shell CommandExecute a shell command and capture output
SSH ExecuteExecute command on remote server via SSH
SFTP DownloadDownload file from remote server via SFTP
SFTP UploadUpload file to remote server via SFTP
Run E2E StepsExecute end-to-end test steps sequentially
Quality GateEvaluate quality metrics against defined thresholds
Run HTTP TestsExecute HTTP API test suite
Run LinterRun linting checks on source code
Generate ReportGenerate test execution report
Run ScenarioExecute scenario-based test (BDD style)
Security ScanScan for security vulnerabilities
Run Test SuiteExecute a collection of tests
Run Unit TestsExecute unit tests
Visual CompareCompare visual outputs for differences
Evaluate UI QualityComprehensive UI quality evaluation with multi-dimensional scoring
Analyze Image with AIAnalyze images using OpenAI Vision API (GPT-4V)
Compare ImagesCompare two images and identify visual differences

Modules

Filter Array

array.filter

Filter array elements by condition

Parameters:

NameTypeRequiredDefaultDescription
arrayarrayYes-Array of items to process. Can be numbers, strings, or objects.
conditionselect (eq, ne, gt, gte, lt, lte, contains, startswith, endswith, regex, in, notin, exists, empty, notempty)Yes-How to compare each item against the value
valuestringYes-Value to compare each item against (leave empty for exists/empty checks)

Output:

FieldTypeDescription
filteredarrayFiltered array
countnumberFiltered array

Example: Filter numbers greater than 5

yaml
array: [1, 5, 10, 15, 3]
condition: gt
value: 5

Sort Array

array.sort

Sort array elements in ascending or descending order

Parameters:

NameTypeRequiredDefaultDescription
arrayarrayYes-Array of items to process. Can be numbers, strings, or objects.
orderselect (asc, desc)NoascDirection to sort items

Output:

FieldTypeDescription
sortedarraySorted array
countnumberSorted array

Example: Sort numbers ascending

yaml
array: [5, 2, 8, 1, 9]
order: asc

Array Unique

array.unique

Remove duplicate values from array

Parameters:

NameTypeRequiredDefaultDescription
arrayarrayYes-Array of items to process. Can be numbers, strings, or objects.
preserve_orderbooleanNoTrueKeep first occurrence order

Output:

FieldTypeDescription
uniquearrayArray with unique values
countnumberArray with unique values
duplicates_removednumberArray with unique values

Example: Remove duplicates

yaml
array: [1, 2, 2, 3, 4, 3, 5]
preserve_order: true

OAuth2 Token Exchange

auth.oauth2

Exchange authorization code, refresh token, or client credentials for an access token

Parameters:

NameTypeRequiredDefaultDescription
token_urlstringYes-OAuth2 token endpoint URL
grant_typestringNoauthorization_codeOAuth2 grant type
client_idstringYes-OAuth2 application client ID
client_secretstringNo-OAuth2 application client secret
codestringNo-Authorization code received from the OAuth2 authorization flow
redirect_uristringNo-Redirect URI used in the authorization request (must match exactly)
refresh_tokenstringNo-Refresh token for obtaining a new access token
scopestringNo-Space-separated list of OAuth2 scopes
code_verifierstringNo-PKCE code verifier for public clients
client_auth_methodstringNobodyHow to send client credentials to the token endpoint
extra_paramsobjectNo{}Additional parameters to include in the token request
timeoutnumberNo15Maximum time to wait in seconds

Output:

FieldTypeDescription
okbooleanWhether token exchange was successful
access_tokenstringThe access token for API requests
token_typestringToken type (usually "Bearer")
expires_innumberToken lifetime in seconds
refresh_tokenstringRefresh token (if provided by the OAuth2 server)
scopestringGranted scopes
rawobjectFull raw response from the token endpoint
duration_msnumberRequest duration in milliseconds

Example: Exchange authorization code (Google)

yaml
token_url: https://oauth2.googleapis.com/token
grant_type: authorization_code
client_id: ${env.GOOGLE_CLIENT_ID}
client_secret: ${env.GOOGLE_CLIENT_SECRET}
code: 4/0AX4XfWh...
redirect_uri: https://yourapp.com/callback

Example: Refresh an expired token

yaml
token_url: https://oauth2.googleapis.com/token
grant_type: refresh_token
client_id: ${env.GOOGLE_CLIENT_ID}
client_secret: ${env.GOOGLE_CLIENT_SECRET}
refresh_token: ${env.REFRESH_TOKEN}

Example: Client credentials (machine-to-machine)

yaml
token_url: https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token
grant_type: client_credentials
client_id: ${env.AZURE_CLIENT_ID}
client_secret: ${env.AZURE_CLIENT_SECRET}
scope: https://graph.microsoft.com/.default

Example: GitHub OAuth (code exchange)

yaml
token_url: https://github.com/login/oauth/access_token
grant_type: authorization_code
client_id: ${env.GITHUB_CLIENT_ID}
client_secret: ${env.GITHUB_CLIENT_SECRET}
code: abc123...

DNS Lookup

dns.lookup

DNS lookup for domain records

Parameters:

NameTypeRequiredDefaultDescription
domainstringYes-Domain name to look up
record_typeselect (A, AAAA, CNAME, MX, NS, TXT, SOA, SRV)NoADNS record type to query
timeoutnumberNo10Query timeout in seconds

Output:

FieldTypeDescription
okbooleanWhether lookup succeeded
dataobject

Example: A record lookup

yaml
domain: example.com
record_type: A

Example: MX record lookup

yaml
domain: example.com
record_type: MX

Text Diff

file.diff

Generate diff between two text strings

Parameters:

NameTypeRequiredDefaultDescription
originalstringYes-Original text
modifiedstringYes-Modified text
context_linesnumberNo3Number of context lines around changes
filenamestringNofileFilename to use in diff header

Output:

FieldTypeDescription
diffstringUnified diff output
changedbooleanWhether there are any changes
additionsnumberNumber of added lines
deletionsnumberNumber of deleted lines

Example: Diff two strings

yaml
original: hello
world
modified: hello
world!
filename: test.txt

Edit File

file.edit

Replace text in a file using exact string matching

Parameters:

NameTypeRequiredDefaultDescription
pathstringYes-Path to the file to edit
old_stringstringYes-Text to find and replace
new_stringstringYes-Replacement text
replace_allbooleanNoFalseReplace all occurrences instead of just the first
encodingselect (utf-8, ascii, latin-1, utf-16, gbk, big5)Noutf-8File encoding

Output:

FieldTypeDescription
pathstringPath of the edited file
replacementsnumberNumber of replacements made
diffstringDiff showing what changed

Example: Replace string in file

yaml
path: /tmp/example.py
old_string: def hello():
new_string: def hello_world():

Check File Exists

file.exists

Check if a file or directory exists

Parameters:

NameTypeRequiredDefaultDescription
pathstringYes-Path to the file

Output:

FieldTypeDescription
existsbooleanWhether path exists
is_filebooleanWhether path exists
is_directorybooleanWhether path exists

Example: Check file exists

yaml
path: /tmp/data.txt

Read File

file.read

Read content from a file

Parameters:

NameTypeRequiredDefaultDescription
pathstringYes-Path to the file
encodingselect (utf-8, ascii, latin-1, utf-16, gbk, big5)Noutf-8Character encoding for the file

Output:

FieldTypeDescription
contentstringFile content
sizenumberFile content

Example: Read text file

yaml
path: /tmp/data.txt
encoding: utf-8

Write File

file.write

Write content to a file

Parameters:

NameTypeRequiredDefaultDescription
pathstringYes-Path to the file
contentstringYes-Text content to write to the file
encodingselect (utf-8, ascii, latin-1, utf-16, gbk, big5)Noutf-8Character encoding for the file
modeselect (overwrite, append)NooverwriteHow to write content to the file

Output:

FieldTypeDescription
pathstringFile path
bytes_writtennumberFile path

Example: Write text file

yaml
path: /tmp/output.txt
content: Hello World
mode: overwrite

Git Clone

git.clone

Clone a git repository

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-Git repository URL (HTTPS or SSH)
destinationstringYes-Local path to clone into
branchstringNo-Branch to checkout after clone
depthnumberNo-Shallow clone depth (omit for full clone)
tokenstringNo-Personal access token for private repos

Output:

FieldTypeDescription
okbooleanWhether clone succeeded
dataobject

Example: Clone public repository

yaml
url: https://github.com/user/repo.git
destination: /tmp/repo

Example: Shallow clone specific branch

yaml
url: https://github.com/user/repo.git
destination: /tmp/repo
branch: develop
depth: 1

Git Commit

git.commit

Create a git commit

Parameters:

NameTypeRequiredDefaultDescription
repo_pathstringYes-Path to git repository
messagestringYes-Commit message
add_allbooleanNoFalseStage all changes before committing (git add -A)
filesarrayNo-Specific files to stage before committing
author_namestringNo-Override commit author name
author_emailstringNo-Override commit author email

Output:

FieldTypeDescription
okbooleanWhether commit succeeded
dataobject

Example: Commit all changes

yaml
repo_path: /home/user/project
message: feat: add user authentication
add_all: true

Example: Commit specific files

yaml
repo_path: /home/user/project
message: fix: correct typo in readme
files: ["README.md"]

Git Diff

git.diff

Get git diff

Parameters:

NameTypeRequiredDefaultDescription
repo_pathstringYes-Path to git repository
ref1stringNoHEADFirst reference (commit, branch, tag)
ref2stringNo-Second reference to compare against
stagedbooleanNoFalseShow only staged changes (--cached)
stat_onlybooleanNoFalseShow only file statistics (--stat)

Output:

FieldTypeDescription
okbooleanWhether diff succeeded
dataobject

Example: Show unstaged changes

yaml
repo_path: /home/user/project

Example: Compare branches

yaml
repo_path: /home/user/project
ref1: main
ref2: feature/login

Example: Show staged changes stats

yaml
repo_path: /home/user/project
staged: true
stat_only: true

HTTP Paginate

http.paginate

Automatically iterate through paginated API endpoints and collect all results

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-URL to navigate to
methodselect (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS)NoGETHTTP request method
headersobjectNo{}HTTP request headers as key-value pairs
authobjectNo-Authentication credentials for the HTTP request
strategystringNooffsetHow the API implements pagination
data_pathstringNo-Dot-notation path to the array of items in the response (e.g. "data", "results", "items")
offset_paramstringNooffsetQuery parameter name for offset
limit_paramstringNolimitQuery parameter name for page size
page_sizenumberNo100Number of items per page
page_paramstringNopageQuery parameter name for page number
start_pagenumberNo1First page number (usually 0 or 1)
cursor_paramstringNocursorQuery parameter name for cursor token
cursor_pathstringNo-Dot-notation path to the next cursor in the response (e.g. "meta.next_cursor", "pagination.next")
max_pagesnumberNo50Maximum number of pages to fetch (safety limit)
delay_msnumberNo0Milliseconds to wait between page requests (rate limiting)
timeoutnumberNo30Maximum time to wait in seconds
verify_sslbooleanNoTrueVerify SSL certificates

Output:

FieldTypeDescription
okbooleanWhether all pages were fetched successfully
itemsarrayAll collected items across all pages
total_itemsnumberTotal number of items collected
pages_fetchednumberNumber of pages fetched
duration_msnumberTotal duration in milliseconds

Example: Offset pagination (REST API)

yaml
url: https://api.example.com/users
strategy: offset
data_path: data
page_size: 100

Example: Page number pagination

yaml
url: https://api.example.com/products
strategy: page
data_path: results
page_param: page
page_size: 50
start_page: 1

Example: Cursor pagination (Slack, Notion)

yaml
url: https://api.notion.com/v1/databases/{db_id}/query
method: POST
strategy: cursor
data_path: results
cursor_path: next_cursor
cursor_param: start_cursor
auth: {"type": "bearer", "token": "${env.NOTION_TOKEN}"}

Example: Link header pagination (GitHub)

yaml
url: https://api.github.com/repos/octocat/hello-world/issues
strategy: link_header
page_size: 100
auth: {"type": "bearer", "token": "${env.GITHUB_TOKEN}"}

HTTP Request

http.request

Send HTTP request and receive response

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-URL to navigate to
methodselect (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS)NoGETHTTP request method
headersobjectNo{}HTTP request headers as key-value pairs
bodyanyNo-HTTP request body content (JSON, text, or form data)
queryobjectNo{}URL query string parameters as key-value pairs
content_typeselect (application/json, application/x-www-form-urlencoded, multipart/form-data, text/plain, text/html, application/xml)Noapplication/jsonContent type of the request body
authobjectNo-Authentication credentials for the HTTP request
timeoutnumberNo30Maximum time to wait in seconds
follow_redirectsbooleanNoTrueAutomatically follow HTTP redirects
verify_sslbooleanNoTrueVerify SSL certificates
response_typeselect (auto, json, text, binary)NoautoHow to parse the response body
retry_countnumberNo0Number of retries on failure or 429/503 status
retry_backoffstringNoexponentialBackoff strategy between retries
retry_delaynumberNo1Initial delay between retries in seconds

Output:

FieldTypeDescription
okbooleanWhether request was successful (2xx status)
statusnumberWhether request was successful (2xx status)
status_textstringWhether request was successful (2xx status)
headersobjectHTTP status code
bodyanyHTTP status text
urlstringResponse headers
duration_msnumberResponse body (parsed JSON or text)
content_typestringFinal URL (after redirects)
content_lengthnumberResponse Content-Type

Example: Simple GET request

yaml
url: https://api.example.com/users
method: GET

Example: POST with JSON body

yaml
url: https://api.example.com/users
method: POST
body: {"name": "John", "email": "john@example.com"}

Example: Request with Bearer auth

yaml
url: https://api.example.com/protected
method: GET
auth: {"type": "bearer", "token": "${env.API_TOKEN}"}

Example: Request with query params

yaml
url: https://api.example.com/search
method: GET
query: {"q": "flyto", "limit": 10}

Assert HTTP Response

http.response_assert

Assert and validate HTTP response properties

Parameters:

NameTypeRequiredDefaultDescription
responseobjectYes-HTTP response object from http.request
statusanyNo-Expected status code (number, array of numbers, or range string "200-299")
body_containsanyNo-String or array of strings that body should contain
body_not_containsanyNo-String or array of strings that body should NOT contain
body_matchesstringYes-Regular expression pattern
json_pathobjectNo-Object mapping JSON paths to expected values (e.g., {"data.id": 123})
json_path_existsarrayNo-Array of JSON paths that should exist
header_containsobjectNo-Object mapping header names to expected values
content_typeselect (application/json, application/x-www-form-urlencoded, multipart/form-data, text/plain, text/html, application/xml)No-Content type of the request body
max_duration_msnumberNo-Maximum allowed response time in milliseconds
schemaobjectNo-JSON Schema to validate response body against
fail_fastbooleanNoFalseStop on first assertion failure

Output:

FieldTypeDescription
okbooleanWhether all assertions passed
passednumberWhether all assertions passed
failednumberWhether all assertions passed
totalnumberNumber of passed assertions
assertionsarrayNumber of failed assertions
errorsarrayDetailed assertion results

Example: Assert status 200

yaml
response: ${http_request.result}
status: 200

Example: Assert JSON structure

yaml
response: ${http_request.result}
status: 200
json_path: {"data.id": "${expected_id}", "data.name": "John"}
json_path_exists: ["data.created_at", "data.email"]

Example: Assert API response

yaml
response: ${api_result}
status: [200, 201]
content_type: application/json
max_duration_ms: 1000
json_path: {"success": true}

HTTP Session

http.session

Send a sequence of HTTP requests with persistent cookies (login → action → logout)

Parameters:

NameTypeRequiredDefaultDescription
requestsarrayYes-Ordered list of HTTP requests to execute with shared cookies
authobjectNo-Authentication applied to all requests in the session
stop_on_errorbooleanNoTrueStop executing remaining requests if one fails (non-2xx)
timeoutnumberNo30Maximum time per individual request
verify_sslbooleanNoTrueVerify SSL certificates

Output:

FieldTypeDescription
okbooleanWhether all requests succeeded
resultsarrayResults from each request in order
cookiesobjectFinal session cookies as key-value pairs
duration_msnumberTotal duration in milliseconds

Example: Login and fetch data

yaml
requests: [{"label": "Login", "url": "https://example.com/api/login", "method": "POST", "body": {"username": "${env.USER}", "password": "${env.PASS}"}}, {"label": "Get Profile", "url": "https://example.com/api/profile", "method": "GET"}]
stop_on_error: true

Example: CSRF token flow

yaml
requests: [{"label": "Get CSRF Token", "url": "https://example.com/csrf-token", "method": "GET"}, {"label": "Submit Form", "url": "https://example.com/api/submit", "method": "POST", "body": {"data": "value"}}]

Webhook Wait

http.webhook_wait

Start a temporary server and wait for an incoming webhook callback

Parameters:

NameTypeRequiredDefaultDescription
pathstringNo/webhookURL path to listen on (e.g. /webhook, /callback)
portnumberNo0Port to listen on (0 = auto-assign)
timeoutnumberNo300Maximum time to wait for the webhook callback
use_ngrokbooleanNoFalseCreate an ngrok tunnel for public access (requires pyngrok)
ngrok_tokenstringNo-ngrok authentication token (free at ngrok.com)
expected_methodstringNoPOSTOnly accept this HTTP method (empty = accept any)
response_statusnumberNo200HTTP status code to respond with when webhook is received
response_bodystringNo{"ok": true}Response body to send back to the webhook caller

Output:

FieldTypeDescription
okbooleanWhether webhook was received before timeout
webhook_urlstringThe URL to send webhooks to (public if ngrok enabled)
methodstringHTTP method of the received webhook
headersobjectHeaders from the received webhook
bodyanyBody from the received webhook (parsed JSON or raw text)
queryobjectQuery parameters from the received webhook
duration_msnumberTime waited for the webhook in milliseconds

Example: Wait for Stripe webhook (local)

yaml
path: /webhook/stripe
port: 8765
timeout: 120
use_ngrok: false

Example: Wait for webhook with ngrok tunnel

yaml
path: /webhook
timeout: 300
use_ngrok: true
ngrok_token: ${env.NGROK_AUTH_TOKEN}

LLM Chat

llm.chat

Interact with LLM APIs for intelligent operations

Parameters:

NameTypeRequiredDefaultDescription
promptstringYes-The prompt or question to send to the AI model
system_promptstringNo-System instructions to set AI behavior and context
contextobjectNo-Additional context data to include
messagesarrayNo-Previous messages for multi-turn conversation
providerselect (openai, anthropic, ollama)NoopenaiAI model provider
modelstringNogpt-4oSpecific model to use
temperaturenumberNo0.7Creativity level (0=deterministic, 1=creative)
max_tokensnumberNo2000Maximum tokens in response
response_formatselect (text, json, code, markdown)NotextExpected format of the AI response
api_keystringNo-API key (defaults to provider env var)
base_urlstringNo-Custom API base URL (for Ollama or proxies)

Output:

FieldTypeDescription
okbooleanWhether the request succeeded
responsestringWhether the request succeeded
parsedanyWhether the request succeeded
modelstringThe LLM response text
tokens_usednumberParsed response (if JSON format requested)
finish_reasonstringModel used

Example: Code Review

yaml
prompt: Review this code for bugs and improvements:

${code}
system_prompt: You are an expert code reviewer. Be specific and actionable.
model: gpt-4o

Example: Generate Fix

yaml
prompt: The UI evaluation found these issues: ${issues}

Generate code fixes.
system_prompt: You are a frontend developer. Return only valid code.
response_format: code

Example: Decision Making

yaml
prompt: Based on these test results, should we deploy? ${test_results}
system_prompt: You are a DevOps engineer. Return JSON: {"decision": "yes/no", "reason": "..."}
response_format: json

AI Code Fix

llm.code_fix

Automatically generate code fixes based on issues

Parameters:

NameTypeRequiredDefaultDescription
issuesarrayYes-List of issues to fix (from ui.evaluate, test results, etc.)
source_filesarrayYes-Files to analyze and potentially fix
fix_modeselect (suggest, apply, dry_run)NosuggestHow to handle the suggested fixes
backupbooleanNoTrueCreate .bak backup before modifying files
contextstringNo-Text content to process
modelstringNogpt-4oSpecific model to use
api_keystringNo-API key (defaults to provider env var)

Output:

FieldTypeDescription
okbooleanWhether operation succeeded
fixesarrayWhether operation succeeded
appliedarrayWhether operation succeeded
failedarrayList of generated fixes
summarystringList of applied fixes (if fix_mode is apply)

Example: Fix UI Issues

yaml
issues: ${ui_evaluation.issues}
source_files: ["./src/components/Footer.tsx", "./src/styles/footer.css"]
fix_mode: suggest
context: React + Tailwind CSS project

Example: Auto-fix and Apply

yaml
issues: ${test_results.failures}
source_files: ["./src/App.tsx"]
fix_mode: apply
backup: true

Calculate

math.calculate

Perform basic mathematical operations

Parameters:

NameTypeRequiredDefaultDescription
operationselect (add, subtract, multiply, divide, power, modulo, sqrt, abs)Yes-Operation to perform
anumberYes-First operand
bnumberNo-Second operand (not required for sqrt and abs)
precisionnumberNo2Number of decimal places

Output:

FieldTypeDescription
resultnumberCalculation result
operationstringCalculation result
expressionstringCalculation result

Example: Add two numbers

yaml
operation: add
a: 10
b: 5

Example: Calculate power

yaml
operation: power
a: 2
b: 8

HTTP Health Check

monitor.http_check

HTTP health check / uptime monitor

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-URL to check
methodselect (GET, HEAD, POST)NoGETHTTP method
expected_statusnumberNo200Expected HTTP status code
timeout_msnumberNo10000Request timeout in milliseconds
headersobjectNo-Custom request headers
bodystringNo-Request body (for POST)
check_sslbooleanNoTrueCheck SSL certificate validity and expiry
containsstringNo-Response body must contain this string
follow_redirectsbooleanNoTrueFollow HTTP redirects

Output:

FieldTypeDescription
okbooleanWhether check completed
dataobject

Example: Basic health check

yaml
url: https://api.example.com/health
expected_status: 200

Example: Check with content validation

yaml
url: https://api.example.com/health
contains: "status":"ok"
timeout_ms: 5000

Check Port

port.check

Check if network port(s) are open or closed

Parameters:

NameTypeRequiredDefaultDescription
portanyYes-Port number or array of ports to check
hoststringNolocalhostPort number or array of ports to check
connect_timeoutnumberNo2Host to connect to
expect_openbooleanNo-Timeout for each connection attempt

Output:

FieldTypeDescription
okbooleanSet to true to assert ports are open, false for closed
resultsarrayWhether all checks passed (if expect_open is set)
open_portsarrayWhether all checks passed (if expect_open is set)
closed_portsarrayArray of port check results
summaryobjectList of open ports

Example: Check single port

yaml
port: 3000

Example: Check multiple ports

yaml
port: [3000, 8080, 5432]
host: localhost

Example: Assert ports are open

yaml
port: [80, 443]
host: example.com
expect_open: true

Wait for Port

port.wait

Wait for a network port to become available

Parameters:

NameTypeRequiredDefaultDescription
portnumberYes-Port number to wait for
hoststringNolocalhostHost to connect to
timeoutnumberNo60Host to connect to
intervalnumberNo500Maximum time to wait
expect_closedbooleanNoFalseTime between connection attempts in milliseconds

Output:

FieldTypeDescription
okbooleanWait for port to become unavailable instead
availablebooleanWhether port is in expected state
hoststringWhether port is in expected state
portnumberWhether port is currently available
wait_time_msnumberHost that was checked
attemptsnumberPort that was checked

Example: Wait for dev server

yaml
port: 3000
timeout: 30

Example: Wait for database

yaml
port: 5432
host: localhost
timeout: 60

Example: Wait for port to close

yaml
port: 8080
expect_closed: true
timeout: 10

List Processes

process.list

List all running background processes

Parameters:

NameTypeRequiredDefaultDescription
filter_namestringNo-Filter processes by name (substring match)
include_statusbooleanNoTrueInclude running/stopped status check for each process

Output:

FieldTypeDescription
okbooleanOperation success
processesarrayOperation success
countnumberOperation success
runningnumberList of process information
stoppednumberTotal number of processes

Example: List all processes

yaml

Example: Filter by name

yaml
filter_name: dev

Start Background Process

process.start

Start a background process (server, service, etc.)

Parameters:

NameTypeRequiredDefaultDescription
commandstringYes-Shell command to execute
cwdstringNo-Directory to execute command in
envobjectNo-Additional environment variables to set
namestringNo-Friendly name to identify the process
wait_for_outputstringNo-String to wait for in stdout before returning
wait_timeoutnumberNo60Maximum time to wait in seconds
capture_outputbooleanNoTrueCapture stdout/stderr output from the process
log_filestringNo-File path to write process output to
auto_restartbooleanNoFalseAutomatically restart the process if it exits

Output:

FieldTypeDescription
okbooleanWhether process started successfully
pidnumberWhether process started successfully
process_idstringWhether process started successfully
namestringProcess ID
commandstringInternal process identifier for process.stop
cwdstringProcess name
started_atstringThe executed command
initial_outputstringISO timestamp when process started

Example: Start dev server

yaml
command: npm run dev
cwd: ./frontend
name: frontend-dev
wait_for_output: ready on
wait_timeout: 30

Example: Start Python HTTP server

yaml
command: python -m http.server 8000
name: static-server

Example: Start with environment

yaml
command: node server.js
env: {"PORT": "3000", "NODE_ENV": "test"}
name: api-server
wait_for_output: listening

Stop Process

process.stop

Stop a running background process

Parameters:

NameTypeRequiredDefaultDescription
process_idstringNo-Internal process identifier (from process.start)
namestringNo-Friendly name to identify the process
pidnumberNo-System process ID (PID) of the process
signalselect (SIGTERM, SIGKILL, SIGINT)NoSIGTERMSignal to send to the process
timeoutnumberNo10Maximum time to wait in seconds
forcebooleanNoFalseForce kill the process immediately with SIGKILL
stop_allbooleanNoFalseStop all tracked processes

Output:

FieldTypeDescription
okbooleanWhether all processes were stopped successfully
stoppedarrayWhether all processes were stopped successfully
failedarrayList of stopped process info
countnumberList of stopped process info

Example: Stop by process ID

yaml
process_id: ${start_result.process_id}

Example: Stop by name

yaml
name: dev-server

Example: Force kill by PID

yaml
pid: 12345
force: true

Example: Stop all processes

yaml
stop_all: true

Execute Shell Command

shell.exec

Execute a shell command and capture output

Parameters:

NameTypeRequiredDefaultDescription
commandstringYes-Shell command to execute
cwdstringNo-Directory to execute command in
envobjectNo-Additional environment variables to set
timeoutnumberNo300Maximum time to wait in seconds
shellbooleanNoFalseExecute command through shell (enables pipes, redirects)
capture_stderrbooleanNoTrueCapture stderr separately from stdout
encodingselect (utf-8, ascii, latin-1, utf-16, gbk, big5)Noutf-8Character encoding for the file
raise_on_errorbooleanNoFalseRaise exception if command returns non-zero exit code

Output:

FieldTypeDescription
okbooleanWhether command executed successfully (exit code 0)
exit_codenumberWhether command executed successfully (exit code 0)
stdoutstringWhether command executed successfully (exit code 0)
stderrstringCommand exit code
commandstringStandard output
cwdstringStandard error output
duration_msnumberThe executed command

Example: Run npm install

yaml
command: npm install
cwd: ./my-project

Example: Run tests with pytest

yaml
command: python -m pytest tests/ -v
timeout: 120

Example: Git status

yaml
command: git status --porcelain

Example: Build project

yaml
command: npm run build
cwd: ./frontend
env: {"NODE_ENV": "production"}

SSH Execute

ssh.exec

Execute command on remote server via SSH

Parameters:

NameTypeRequiredDefaultDescription
hoststringYes-SSH server hostname or IP
portnumberNo22SSH port
usernamestringYes-SSH username
passwordstringNo-SSH password
private_keystringNo-PEM-format private key
commandstringYes-Command to execute on remote server
timeoutnumberNo30Command timeout in seconds

Output:

FieldTypeDescription
okbooleanWhether command succeeded
dataobject

Example: List files on remote server

yaml
host: 192.168.1.100
username: deploy
command: ls -la /var/www

Example: Restart service

yaml
host: 10.0.0.5
username: root
command: systemctl restart nginx

SFTP Download

ssh.sftp_download

Download file from remote server via SFTP

Parameters:

NameTypeRequiredDefaultDescription
hoststringYes-SSH server hostname or IP
portnumberNo22SSH port
usernamestringYes-SSH username
passwordstringNo-SSH password
private_keystringNo-PEM-format private key
remote_pathstringYes-Path to file on remote server
local_pathstringYes-Destination path on local machine

Output:

FieldTypeDescription
okbooleanWhether download succeeded
dataobject

Example: Download server log

yaml
host: 10.0.0.5
username: deploy
remote_path: /var/log/nginx/access.log
local_path: /tmp/access.log

SFTP Upload

ssh.sftp_upload

Upload file to remote server via SFTP

Parameters:

NameTypeRequiredDefaultDescription
hoststringYes-SSH server hostname or IP
portnumberNo22SSH port
usernamestringYes-SSH username
passwordstringNo-SSH password
private_keystringNo-PEM-format private key
local_pathstringYes-Path to local file to upload
remote_pathstringYes-Destination path on remote server
overwritebooleanNoTrueOverwrite existing remote file

Output:

FieldTypeDescription
okbooleanWhether upload succeeded
dataobject

Example: Upload deployment archive

yaml
host: 10.0.0.5
username: deploy
local_path: /tmp/app.tar.gz
remote_path: /opt/releases/app.tar.gz

Run E2E Steps

testing.e2e.run_steps

Execute end-to-end test steps sequentially

Parameters:

NameTypeRequiredDefaultDescription
stepsarrayYes-Array of test step definitions
stop_on_failurebooleanNoTrueWhether to stop on failure
timeout_per_stepnumberNo30000Timeout Per Step value

Output:

FieldTypeDescription
okbooleanWhether the operation succeeded
passednumberWhether the operation succeeded
failednumberWhether the operation succeeded
resultsarrayNumber of tests passed

Quality Gate

testing.gate.evaluate

Evaluate quality metrics against defined thresholds

Parameters:

NameTypeRequiredDefaultDescription
metricsobjectYes-Metrics to evaluate
thresholdsobjectYes-Metrics to evaluate
fail_on_breachbooleanNoTrueWhether to fail on breach

Output:

FieldTypeDescription
okbooleanThreshold values for each metric
passedbooleanWhether the operation succeeded
resultsarrayWhether the operation succeeded
summarystringNumber of tests passed

Run HTTP Tests

testing.http.run_suite

Execute HTTP API test suite

Parameters:

NameTypeRequiredDefaultDescription
testsarrayYes-Array of HTTP test definitions
base_urlstringNo-Base URL for API requests
headersobjectNo{}HTTP request headers

Output:

FieldTypeDescription
okbooleanWhether the operation succeeded
passednumberWhether the operation succeeded
failednumberWhether the operation succeeded
resultsarrayNumber of tests passed

Run Linter

testing.lint.run

Run linting checks on source code

Parameters:

NameTypeRequiredDefaultDescription
pathsarrayYes-Files or directories to lint
linterstringNoautoLinter
fixbooleanNoFalseWhether to fix

Output:

FieldTypeDescription
okbooleanWhether the operation succeeded
errorsnumberWhether the operation succeeded
warningsnumberWhether the operation succeeded
issuesarrayNumber of errors encountered

Generate Report

testing.report.generate

Generate test execution report

Parameters:

NameTypeRequiredDefaultDescription
resultsobjectYes-Results data
formatstringNojsonFormat
titlestringNoTest ReportTitle

Output:

FieldTypeDescription
okbooleanWhether the operation succeeded
reportstringWhether the operation succeeded
formatstringWhether the operation succeeded
summaryobjectThe report

Run Scenario

testing.scenario.run

Execute scenario-based test (BDD style)

Parameters:

NameTypeRequiredDefaultDescription
scenarioobjectYes-Scenario definition with given/when/then
contextobjectNo{}Additional context data

Output:

FieldTypeDescription
okbooleanScenario definition with given/when/then
passedbooleanWhether the operation succeeded
stepsarrayWhether the operation succeeded

Security Scan

testing.security.scan

Scan for security vulnerabilities

Parameters:

NameTypeRequiredDefaultDescription
targetsarrayYes-Files, URLs, or paths to scan
scan_typestringNoallScan Type
severity_thresholdstringNomediumSeverity Threshold

Output:

FieldTypeDescription
okbooleanWhether the operation succeeded
vulnerabilitiesarrayWhether the operation succeeded
summaryobjectWhether the operation succeeded

Run Test Suite

testing.suite.run

Execute a collection of tests

Parameters:

NameTypeRequiredDefaultDescription
testsarrayYes-Array of test definitions
parallelbooleanNoFalseWhether to parallel
max_failuresnumberNo0Array of test definitions

Output:

FieldTypeDescription
okboolean0 = no limit
passednumber0 = no limit
failednumberWhether the operation succeeded
skippednumberNumber of tests passed
resultsarrayNumber of tests failed

Run Unit Tests

testing.unit.run

Execute unit tests

Parameters:

NameTypeRequiredDefaultDescription
pathsarrayYes-Paths to test files or directories
patternstringNotest_*.pyPattern
verbosebooleanNoFalseWhether to verbose

Output:

FieldTypeDescription
okbooleanWhether the operation succeeded
passednumberWhether the operation succeeded
failednumberWhether the operation succeeded
errorsnumberNumber of tests passed
resultsarrayNumber of tests failed

Visual Compare

testing.visual.compare

Compare visual outputs for differences

Parameters:

NameTypeRequiredDefaultDescription
actualstringYes-Path or base64 of actual image
expectedstringYes-Path or base64 of actual image
thresholdnumberNo0.1Path or base64 of expected image
output_diffbooleanNoTrueWhether to output diff

Output:

FieldTypeDescription
okbooleanMax allowed difference (0-1)
matchbooleanWhether the operation succeeded
differencenumberWhether the operation succeeded
diff_imagestringThe match

Evaluate UI Quality

ui.evaluate

Comprehensive UI quality evaluation with multi-dimensional scoring

Parameters:

NameTypeRequiredDefaultDescription
screenshotstringYes-Screenshot path or URL to evaluate
app_typestringNoweb_appScreenshot path or URL to evaluate
page_typestringNo-Type of page being evaluated
evaluation_criteriaarrayNo['visual_design', 'usability', 'accessibility', 'consistency', 'responsiveness']Specific criteria to evaluate (defaults to all)
target_audiencestringNo-Description of target users
brand_guidelinesstringNo-Brief brand guidelines to check against
min_scorenumberNo70Minimum overall score to pass (0-100)
api_keystringNo-OpenAI API key (defaults to OPENAI_API_KEY env var)

Output:

FieldTypeDescription
okbooleanOpenAI API key (defaults to OPENAI_API_KEY env var)
passedbooleanWhether evaluation succeeded
overall_scorenumberWhether evaluation succeeded
scoresobjectOverall UI quality score (0-100)
strengthsarrayOverall UI quality score (0-100)
issuesarrayScores by evaluation criteria
recommendationsarrayList of UI strengths
summarystringSpecific improvement recommendations

Example: Evaluate Dashboard

yaml
screenshot: ./screenshots/dashboard.png
app_type: dashboard
page_type: analytics dashboard
target_audience: business analysts
min_score: 75

Example: E-commerce Page Review

yaml
screenshot: ./screenshots/product.png
app_type: e_commerce
page_type: product detail
evaluation_criteria: ["usability", "cta_effectiveness", "visual_design"]

Analyze Image with AI

vision.analyze

Analyze images using OpenAI Vision API (GPT-4V)

Parameters:

NameTypeRequiredDefaultDescription
imagestringYes-Image file path, URL, or base64 data
promptstringYes-What to analyze in the image
analysis_typeselect (general, ui_review, accessibility, bug_detection, comparison, data_extraction)NogeneralType of analysis to perform
contextstringNo-Additional context about the image
output_formatselect (text, structured, json, checklist)NostructuredFormat of the analysis output
modelstringNogpt-4oSpecific model to use
max_tokensnumberNo1000Maximum tokens in response
api_keystringYes-API key for authentication
header_namestringNoX-API-KeyHTTP header name
detailselect (low, high, auto)NohighLevel of detail for image analysis

Output:

FieldTypeDescription
okbooleanWhether analysis succeeded
analysisstringWhether analysis succeeded
structuredobjectThe AI analysis result
modelstringStructured analysis data (if output_format is structured/json)
tokens_usednumberModel used for analysis

Example: UI Review

yaml
image: ./screenshots/dashboard.png
prompt: Review this dashboard UI. Evaluate: 1) Visual hierarchy 2) Color contrast 3) Button visibility 4) Overall usability. Suggest specific improvements.
analysis_type: ui_review
output_format: structured

Example: Bug Detection

yaml
image: ./screenshots/form.png
prompt: Find any visual bugs, layout issues, or broken elements in this form
analysis_type: bug_detection

Example: Accessibility Check

yaml
image: ./screenshots/page.png
prompt: Evaluate accessibility: color contrast, text readability, button sizes, clear labels
analysis_type: accessibility

Compare Images

vision.compare

Compare two images and identify visual differences

Parameters:

NameTypeRequiredDefaultDescription
image_beforestringYes-Path to baseline/before image
image_afterstringYes-Path to current/after image
comparison_typeselect (visual_regression, layout_diff, content_diff, full_analysis)Novisual_regressionType of comparison to perform
thresholdnumberNo5Acceptable difference percentage
focus_areasarrayNo-Specific areas to focus on
ignore_areasarrayNo-Areas to ignore (dynamic content, ads, etc.)
modelstringNogpt-4oSpecific model to use
api_keystringYes-API key for authentication
header_namestringNoX-API-KeyHTTP header name

Output:

FieldTypeDescription
okbooleanWhether comparison succeeded
has_differencesbooleanWhether comparison succeeded
similarity_scorenumberWhether significant differences were found
differencesarraySimilarity percentage (0-100)
summarystringList of identified differences
recommendationstringSummary of comparison results

Example: Visual Regression Test

yaml
image_before: ./screenshots/baseline/home.png
image_after: ./screenshots/current/home.png
comparison_type: visual_regression
threshold: 5

Example: Layout Comparison

yaml
image_before: ./design/mockup.png
image_after: ./screenshots/implementation.png
comparison_type: layout_diff
focus_areas: ["header", "main content"]

Released under the Apache 2.0 License.