Skip to content

Atomic

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

44 modules

ModuleDescription
Filtrar ArrayFiltrar elementos do array por condicao
Ordenar ArrayOrdenar elementos do array em ordem crescente ou decrescente
Array UnicoRemover valores duplicados do array
OAuth2 Token ExchangeExchange authorization code, refresh token, or client credentials for an access token
Consulta DNSConsulta DNS para registros de domínio
Diferença de TextoGerar diferença entre duas strings de texto
Editar ArquivoSubstituir texto em um arquivo usando correspondência exata de string
Verificar Se Arquivo ExisteVerificar se arquivo ou diretorio existe
Ler ArquivoLer conteudo de arquivo
Escrever ArquivoEscrever conteudo em arquivo
Git CloneClonar um repositório git
Git CommitCriar um commit git
Git DiffObter diff do git
HTTP PaginateAutomatically iterate through paginated API endpoints and collect all results
Requisicao HTTPEnviar requisicao HTTP e receber resposta
Afirmar Resposta HTTPAfirmar e validar propriedades de resposta HTTP
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
Chat LLMInteragir com APIs de LLM para operacoes inteligentes
Correcao de Codigo IAGerar automaticamente correcoes de codigo baseadas em problemas
CalcularExecutar operacoes matematicas basicas
Verificação de Saúde HTTPVerificação de saúde HTTP / monitor de uptime
Verificar PortaVerificar se porta(s) de rede estao abertas ou fechadas
Aguardar PortaAguardar porta de rede ficar disponivel
Listar ProcessosListar todos os processos em segundo plano em execucao
Iniciar Processo em Segundo PlanoIniciar processo em segundo plano (servidor, servico, etc.)
Parar ProcessoParar processo em segundo plano em execucao
Executar Comando ShellExecutar comando shell e capturar saida
Executar SSHExecutar comando no servidor remoto via SSH
Download SFTPBaixar arquivo do servidor remoto via SFTP
Upload SFTPEnviar arquivo para servidor remoto via SFTP
Executar Passos E2EExecutar passos de teste end-to-end sequencialmente
Quality GateAvaliar metricas de qualidade contra limites definidos
Executar Testes HTTPExecutar suite de testes de API HTTP
Executar LinterExecutar verificacoes de lint no codigo fonte
Gerar RelatorioGerar relatorio de execucao de testes
Executar CenarioExecutar teste baseado em cenario (estilo BDD)
Scan de SegurancaEscanear vulnerabilidades de seguranca
Executar Suite de TestesExecutar colecao de testes
Executar Testes UnitariosExecutar testes unitarios
Comparacao VisualComparar saidas visuais por diferencas
Avaliar Qualidade de UIAvaliacao abrangente de qualidade de UI com pontuacao multidimensional
Analisar Imagem com IAAnalisar imagens usando OpenAI Vision API (GPT-4V)
Comparar ImagensComparar duas imagens e identificar diferencas visuais

Modules

Filtrar Array

array.filter

Filtrar elementos do array por condicao

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
filteredarrayArray filtrado
countnumberArray filtrado

Example: Filter numbers greater than 5

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

Ordenar Array

array.sort

Ordenar elementos do array em ordem crescente ou decrescente

Parameters:

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

Output:

FieldTypeDescription
sortedarrayArray ordenado
countnumberArray ordenado

Example: Sort numbers ascending

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

Array Unico

array.unique

Remover valores duplicados do array

Parameters:

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

Output:

FieldTypeDescription
uniquearrayArray com valores unicos
countnumberArray com valores unicos
duplicates_removednumberArray com valores unicos

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...

Consulta DNS

dns.lookup

Consulta DNS para registros de domínio

Parameters:

NameTypeRequiredDefaultDescription
domainstringYes-Nome do domínio para consulta
record_typeselect (A, AAAA, CNAME, MX, NS, TXT, SOA, SRV)NoATipo de registro DNS para consulta
timeoutnumberNo10Tempo limite da consulta em segundos

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

Diferença de Texto

file.diff

Gerar diferença entre duas strings de texto

Parameters:

NameTypeRequiredDefaultDescription
originalstringYes-Texto original
modifiedstringYes-Texto modificado
context_linesnumberNo3Número de linhas de contexto ao redor das mudanças
filenamestringNofileNome do arquivo para usar no cabeçalho da diferença

Output:

FieldTypeDescription
diffstringSaída de diferença unificada
changedbooleanSe há alguma mudança
additionsnumberNúmero de linhas adicionadas
deletionsnumberNúmero de linhas excluídas

Example: Diff two strings

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

Editar Arquivo

file.edit

Substituir texto em um arquivo usando correspondência exata de string

Parameters:

NameTypeRequiredDefaultDescription
pathstringYes-Caminho para o arquivo a ser editado
old_stringstringYes-Texto para encontrar e substituir
new_stringstringYes-Texto de substituição
replace_allbooleanNoFalseSubstituir todas as ocorrências em vez de apenas a primeira
encodingselect (utf-8, ascii, latin-1, utf-16, gbk, big5)Noutf-8Codificação do arquivo

Output:

FieldTypeDescription
pathstringCaminho do arquivo editado
replacementsnumberNúmero de substituições feitas
diffstringDiferença mostrando o que mudou

Example: Replace string in file

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

Verificar Se Arquivo Existe

file.exists

Verificar se arquivo ou diretorio existe

Parameters:

NameTypeRequiredDefaultDescription
pathstringYes-Path to the file

Output:

FieldTypeDescription
existsbooleanSe o caminho existe
is_filebooleanSe o caminho existe
is_directorybooleanSe o caminho existe

Example: Check file exists

yaml
path: /tmp/data.txt

Ler Arquivo

file.read

Ler conteudo de arquivo

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
contentstringConteudo do arquivo
sizenumberConteudo do arquivo

Example: Read text file

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

Escrever Arquivo

file.write

Escrever conteudo em arquivo

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
pathstringCaminho do arquivo
bytes_writtennumberCaminho do arquivo

Example: Write text file

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

Git Clone

git.clone

Clonar um repositório git

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-URL do repositório Git (HTTPS ou SSH)
destinationstringYes-Caminho local para clonar
branchstringNo-Branch para fazer checkout após clonar
depthnumberNo-Profundidade do clone superficial (omitir para clone completo)
tokenstringNo-Token de acesso pessoal para repositórios privados

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

Criar um commit git

Parameters:

NameTypeRequiredDefaultDescription
repo_pathstringYes-Caminho para o repositório git
messagestringYes-Mensagem do commit
add_allbooleanNoFalseAdicionar todas as mudanças antes de commitar (git add -A)
filesarrayNo-Arquivos específicos para adicionar antes de commitar
author_namestringNo-Substituir nome do autor do commit
author_emailstringNo-Substituir email do autor do commit

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

Obter diff do git

Parameters:

NameTypeRequiredDefaultDescription
repo_pathstringYes-Caminho para o repositório git
ref1stringNoHEADPrimeira referência (commit, branch, tag)
ref2stringNo-Segunda referência para comparar
stagedbooleanNoFalseMostrar apenas mudanças preparadas (--cached)
stat_onlybooleanNoFalseMostrar apenas estatísticas de arquivos (--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}"}

Requisicao HTTP

http.request

Enviar requisicao HTTP e receber resposta

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
okbooleanSe a requisicao foi bem sucedida (status 2xx)
statusnumberSe a requisicao foi bem sucedida (status 2xx)
status_textstringSe a requisicao foi bem sucedida (status 2xx)
headersobjectCodigo de status HTTP
bodyanyTexto de status HTTP
urlstringCabecalhos da resposta
duration_msnumberCorpo da resposta (JSON parseado ou texto)
content_typestringURL final (apos redirecionamentos)
content_lengthnumberContent-Type da resposta

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}

Afirmar Resposta HTTP

http.response_assert

Afirmar e validar propriedades de resposta HTTP

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
okbooleanSe todas as afirmacoes passaram
passednumberSe todas as afirmacoes passaram
failednumberSe todas as afirmacoes passaram
totalnumberNumero de afirmacoes que passaram
assertionsarrayNumero de afirmacoes que falharam
errorsarrayResultados detalhados das afirmacoes

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}

Chat LLM

llm.chat

Interagir com APIs de LLM para operacoes inteligentes

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
okbooleanSe a requisicao teve sucesso
responsestringSe a requisicao teve sucesso
parsedanySe a requisicao teve sucesso
modelstringO texto de resposta do LLM
tokens_usednumberResposta parseada (se formato JSON solicitado)
finish_reasonstringModelo usado

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

Correcao de Codigo IA

llm.code_fix

Gerar automaticamente correcoes de codigo baseadas em problemas

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
okbooleanSe a operacao teve sucesso
fixesarraySe a operacao teve sucesso
appliedarraySe a operacao teve sucesso
failedarrayLista de correcoes geradas
summarystringLista de correcoes aplicadas (se fix_mode for 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

Calcular

math.calculate

Executar operacoes matematicas basicas

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
resultnumberResultado do calculo
operationstringResultado do calculo
expressionstringResultado do calculo

Example: Add two numbers

yaml
operation: add
a: 10
b: 5

Example: Calculate power

yaml
operation: power
a: 2
b: 8

Verificação de Saúde HTTP

monitor.http_check

Verificação de saúde HTTP / monitor de uptime

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-URL para verificar
methodselect (GET, HEAD, POST)NoGETMétodo HTTP
expected_statusnumberNo200Código de status HTTP esperado
timeout_msnumberNo10000Tempo limite da requisição em milissegundos
headersobjectNo-Cabeçalhos personalizados da requisição
bodystringNo-Corpo da requisição (para POST)
check_sslbooleanNoTrueVerificar validade e expiração do certificado SSL
containsstringNo-Corpo da resposta deve conter esta string
follow_redirectsbooleanNoTrueSeguir redirecionamentos HTTP

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

Verificar Porta

port.check

Verificar se porta(s) de rede estao abertas ou fechadas

Parameters:

NameTypeRequiredDefaultDescription
portanyYes-Numero da porta ou array de portas para verificar
hoststringNolocalhostNumero da porta ou array de portas para verificar
connect_timeoutnumberNo2Host para conectar
expect_openbooleanNo-Timeout para cada tentativa de conexao

Output:

FieldTypeDescription
okbooleanDefina como true para afirmar que portas estao abertas, false para fechadas
resultsarraySe todas as verificacoes passaram (se expect_open esta definido)
open_portsarraySe todas as verificacoes passaram (se expect_open esta definido)
closed_portsarrayArray de resultados de verificacao de porta
summaryobjectLista de portas abertas

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

Aguardar Porta

port.wait

Aguardar porta de rede ficar disponivel

Parameters:

NameTypeRequiredDefaultDescription
portnumberYes-Numero da porta para aguardar
hoststringNolocalhostHost para conectar
timeoutnumberNo60Host para conectar
intervalnumberNo500Tempo maximo de espera
expect_closedbooleanNoFalseTempo entre tentativas de conexao em milissegundos

Output:

FieldTypeDescription
okbooleanAguardar porta ficar indisponivel em vez disso
availablebooleanSe a porta esta no estado esperado
hoststringSe a porta esta no estado esperado
portnumberSe a porta esta atualmente disponivel
wait_time_msnumberHost que foi verificado
attemptsnumberPorta que foi verificada

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

Listar Processos

process.list

Listar todos os processos em segundo plano em execucao

Parameters:

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

Output:

FieldTypeDescription
okbooleanSucesso da operacao
processesarraySucesso da operacao
countnumberSucesso da operacao
runningnumberLista de informacoes de processos
stoppednumberNumero total de processos

Example: List all processes

yaml

Example: Filter by name

yaml
filter_name: dev

Iniciar Processo em Segundo Plano

process.start

Iniciar processo em segundo plano (servidor, servico, 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
okbooleanSe o processo iniciou com sucesso
pidnumberSe o processo iniciou com sucesso
process_idstringSe o processo iniciou com sucesso
namestringID do processo
commandstringIdentificador interno do processo para process.stop
cwdstringNome do processo
started_atstringO comando executado
initial_outputstringTimestamp ISO de quando o processo iniciou

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

Parar Processo

process.stop

Parar processo em segundo plano em execucao

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
okbooleanSe todos os processos foram parados com sucesso
stoppedarraySe todos os processos foram parados com sucesso
failedarrayLista de info de processos parados
countnumberLista de info de processos parados

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

Executar Comando Shell

shell.exec

Executar comando shell e capturar saida

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
okbooleanSe o comando executou com sucesso (codigo de saida 0)
exit_codenumberSe o comando executou com sucesso (codigo de saida 0)
stdoutstringSe o comando executou com sucesso (codigo de saida 0)
stderrstringCodigo de saida do comando
commandstringSaida padrao
cwdstringSaida de erro padrao
duration_msnumberO comando executado

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"}

Executar SSH

ssh.exec

Executar comando no servidor remoto via SSH

Parameters:

NameTypeRequiredDefaultDescription
hoststringYes-Nome do host ou IP do servidor SSH
portnumberNo22Porta SSH
usernamestringYes-Nome de usuário SSH
passwordstringNo-Senha SSH
private_keystringNo-Chave privada em formato PEM
commandstringYes-Comando para executar no servidor remoto
timeoutnumberNo30Tempo limite do comando em segundos

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

Download SFTP

ssh.sftp_download

Baixar arquivo do servidor remoto via SFTP

Parameters:

NameTypeRequiredDefaultDescription
hoststringYes-Nome do host ou IP do servidor SSH
portnumberNo22Porta SSH
usernamestringYes-Nome de usuário SSH
passwordstringNo-Senha SSH
private_keystringNo-Chave privada no formato PEM
remote_pathstringYes-Caminho para o arquivo no servidor remoto
local_pathstringYes-Caminho de destino na máquina local

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

Upload SFTP

ssh.sftp_upload

Enviar arquivo para servidor remoto via SFTP

Parameters:

NameTypeRequiredDefaultDescription
hoststringYes-Nome do host ou IP do servidor SSH
portnumberNo22Porta SSH
usernamestringYes-Nome de usuário SSH
passwordstringNo-Senha SSH
private_keystringNo-Chave privada em formato PEM
local_pathstringYes-Caminho do arquivo local para enviar
remote_pathstringYes-Caminho de destino no servidor remoto
overwritebooleanNoTrueSobrescrever arquivo remoto existente

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

Executar Passos E2E

testing.e2e.run_steps

Executar passos de teste end-to-end sequencialmente

Parameters:

NameTypeRequiredDefaultDescription
stepsarrayYes-Array de definicoes de passos de teste
stop_on_failurebooleanNoTrueWhether to stop on failure
timeout_per_stepnumberNo30000Timeout Per Step value

Output:

FieldTypeDescription
okbooleanSe a operacao teve sucesso
passednumberSe a operacao teve sucesso
failednumberSe a operacao teve sucesso
resultsarrayNumero de testes que passaram

Quality Gate

testing.gate.evaluate

Avaliar metricas de qualidade contra limites definidos

Parameters:

NameTypeRequiredDefaultDescription
metricsobjectYes-Metricas para avaliar
thresholdsobjectYes-Metricas para avaliar
fail_on_breachbooleanNoTrueWhether to fail on breach

Output:

FieldTypeDescription
okbooleanValores limite para cada metrica
passedbooleanSe a operacao teve sucesso
resultsarraySe a operacao teve sucesso
summarystringNumero de testes que passaram

Executar Testes HTTP

testing.http.run_suite

Executar suite de testes de API HTTP

Parameters:

NameTypeRequiredDefaultDescription
testsarrayYes-Array de definicoes de testes HTTP
base_urlstringNo-Base URL for API requests
headersobjectNo{}HTTP request headers

Output:

FieldTypeDescription
okbooleanSe a operacao teve sucesso
passednumberSe a operacao teve sucesso
failednumberSe a operacao teve sucesso
resultsarrayNumero de testes que passaram

Executar Linter

testing.lint.run

Executar verificacoes de lint no codigo fonte

Parameters:

NameTypeRequiredDefaultDescription
pathsarrayYes-Arquivos ou diretorios para lint
linterstringNoautoLinter
fixbooleanNoFalseWhether to fix

Output:

FieldTypeDescription
okbooleanSe a operacao teve sucesso
errorsnumberSe a operacao teve sucesso
warningsnumberSe a operacao teve sucesso
issuesarrayNumero de erros encontrados

Gerar Relatorio

testing.report.generate

Gerar relatorio de execucao de testes

Parameters:

NameTypeRequiredDefaultDescription
resultsobjectYes-Results data
formatstringNojsonFormat
titlestringNoTest ReportTitle

Output:

FieldTypeDescription
okbooleanSe a operacao teve sucesso
reportstringSe a operacao teve sucesso
formatstringSe a operacao teve sucesso
summaryobjectO relatorio

Executar Cenario

testing.scenario.run

Executar teste baseado em cenario (estilo BDD)

Parameters:

NameTypeRequiredDefaultDescription
scenarioobjectYes-Definicao do cenario com given/when/then
contextobjectNo{}Additional context data

Output:

FieldTypeDescription
okbooleanDefinicao do cenario com given/when/then
passedbooleanSe a operacao teve sucesso
stepsarraySe a operacao teve sucesso

Scan de Seguranca

testing.security.scan

Escanear vulnerabilidades de seguranca

Parameters:

NameTypeRequiredDefaultDescription
targetsarrayYes-Arquivos, URLs ou caminhos para escanear
scan_typestringNoallScan Type
severity_thresholdstringNomediumSeverity Threshold

Output:

FieldTypeDescription
okbooleanSe a operacao teve sucesso
vulnerabilitiesarraySe a operacao teve sucesso
summaryobjectSe a operacao teve sucesso

Executar Suite de Testes

testing.suite.run

Executar colecao de testes

Parameters:

NameTypeRequiredDefaultDescription
testsarrayYes-Array de definicoes de testes
parallelbooleanNoFalseWhether to parallel
max_failuresnumberNo0Array de definicoes de testes

Output:

FieldTypeDescription
okboolean0 = sem limite
passednumber0 = sem limite
failednumberSe a operacao teve sucesso
skippednumberNumero de testes que passaram
resultsarrayNumero de testes que falharam

Executar Testes Unitarios

testing.unit.run

Executar testes unitarios

Parameters:

NameTypeRequiredDefaultDescription
pathsarrayYes-Caminhos para arquivos de teste ou diretorios
patternstringNotest_*.pyPattern
verbosebooleanNoFalseWhether to verbose

Output:

FieldTypeDescription
okbooleanSe a operacao teve sucesso
passednumberSe a operacao teve sucesso
failednumberSe a operacao teve sucesso
errorsnumberNumero de testes que passaram
resultsarrayNumero de testes que falharam

Comparacao Visual

testing.visual.compare

Comparar saidas visuais por diferencas

Parameters:

NameTypeRequiredDefaultDescription
actualstringYes-Caminho ou base64 da imagem real
expectedstringYes-Caminho ou base64 da imagem real
thresholdnumberNo0.1Caminho ou base64 da imagem esperada
output_diffbooleanNoTrueWhether to output diff

Output:

FieldTypeDescription
okbooleanDiferenca maxima permitida (0-1)
matchbooleanSe a operacao teve sucesso
differencenumberSe a operacao teve sucesso
diff_imagestringA correspondencia

Avaliar Qualidade de UI

ui.evaluate

Avaliacao abrangente de qualidade de UI com pontuacao multidimensional

Parameters:

NameTypeRequiredDefaultDescription
screenshotstringYes-Caminho ou URL da captura de tela para avaliar
app_typestringNoweb_appCaminho ou URL da captura de tela para avaliar
page_typestringNo-Tipo de pagina sendo avaliada
evaluation_criteriaarrayNo['visual_design', 'usability', 'accessibility', 'consistency', 'responsiveness']Criterios especificos para avaliar (padrao para todos)
target_audiencestringNo-Descricao dos usuarios alvo
brand_guidelinesstringNo-Breves diretrizes de marca para verificar
min_scorenumberNo70Pontuacao minima geral para passar (0-100)
api_keystringNo-Chave API OpenAI (padrao para var env OPENAI_API_KEY)

Output:

FieldTypeDescription
okbooleanChave API OpenAI (padrao para var env OPENAI_API_KEY)
passedbooleanSe a avaliacao teve sucesso
overall_scorenumberSe a avaliacao teve sucesso
scoresobjectPontuacao geral de qualidade da UI (0-100)
strengthsarrayPontuacao geral de qualidade da UI (0-100)
issuesarrayPontuacoes por criterios de avaliacao
recommendationsarrayLista de pontos fortes da UI
summarystringRecomendacoes especificas de melhoria

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"]

Analisar Imagem com IA

vision.analyze

Analisar imagens usando 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
okbooleanSe a analise teve sucesso
analysisstringSe a analise teve sucesso
structuredobjectO resultado da analise de IA
modelstringDados de analise estruturados (se output_format e structured/json)
tokens_usednumberModelo usado para analise

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

Comparar Imagens

vision.compare

Comparar duas imagens e identificar diferencas visuais

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
okbooleanSe a comparacao teve sucesso
has_differencesbooleanSe a comparacao teve sucesso
similarity_scorenumberSe diferencas significativas foram encontradas
differencesarrayPorcentagem de similaridade (0-100)
summarystringLista de diferencas identificadas
recommendationstringResumo dos resultados da comparacao

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.