MCP tools
These are the tools an agent sees once it is connected. The words under each tool are the ones the server gives the agent. The authoring loop says how they fit together.
The server lists only the tools your role may use. A refused call comes back as a tool error whose message says what to do next.
Projects and environments
Section titled “Projects and environments”list_projects
Section titled “list_projects”Lists projects (applications under test).
Role: Viewer and up. Changes nothing.
create_project
Section titled “create_project”Creates a project: one application under test. Returns its ID.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
name |
text | yes | The application’s name. |
update_project
Section titled “update_project”Renames a project.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
name |
text | yes | The application’s new name. |
delete_project
Section titled “delete_project”Deletes a project with its workflows and environments: they leave every list and can no longer run. Its runs stay readable (get_run). Returns how many workflows, environments, and runs it held.
Role: Member and up. Deletes something.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes |
list_environments
Section titled “list_environments”Lists a project’s environments: where its application runs.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes |
create_environment
Section titled “create_environment”Creates an environment for a project: a name (such as dev, staging, or production) and the http or https base URL of the application there. The project’s routes are appended to the base URL’s path, so a base URL may carry a path: base https://host/web/index.php with route /auth/login opens https://host/web/index.php/auth/login. Credentials are never accepted.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
name |
text | yes | |
base_url |
text | yes | Absolute http or https URL, without credentials. |
update_environment
Section titled “update_environment”Renames an environment and sets its base URL, with the checks create_environment makes. The next run against it uses the new URL.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
environment_id |
id | yes | |
name |
text | yes | |
base_url |
text | yes | Absolute http or https URL, without credentials. |
delete_environment
Section titled “delete_environment”Deletes an environment: it leaves the lists and no run can start against it. Its runs stay readable (get_run).
Role: Member and up. Deletes something.
| Argument | Type | Needed | What it is |
|---|---|---|---|
environment_id |
id | yes |
Routes and variables
Section titled “Routes and variables”list_routes
Section titled “list_routes”Lists a project’s routes: each name a step can go to (“Go to the customers page” goes to the route customers), its path under the environment’s base URL, the workflows whose saved steps use it (usedByWorkflows, usedBy), and start: true on the start page, which a run opens before a first step that does not go to a page (none marked: the base URL).
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes |
save_route
Section titled “save_route”Adds a route to a project, or changes the path of the route with that name. A route names a path of the application, shared by every workflow of the project; a step goes to it by name. A changed path reaches the next run of every workflow that uses it, without saving them again. start: true makes it the project’s start page, which a run opens before a first step that does not go to a page; start: false on the start page goes back to the environment’s base URL.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
name |
text | yes | Starts with a letter; letters, digits, ‘-’ and ‘_’, such as customers or order-history. |
path |
text | yes | Starts with ‘/’, such as /customers; the environment’s base URL goes before it. |
start |
true or false | no | true: this route is the start page. false: if it is, the base URL is again. Omitted: unchanged. |
set_start_page
Section titled “set_start_page”Chooses the project’s start page: the page a run opens before its first step when that step does not go to a page itself. Names one of the project’s existing routes (list_routes), and never adds or changes one; null goes back to the environment’s base URL. Only one route is the start page; choosing another replaces it. An unknown name is refused with the project’s routes. To start on a page with no route yet, add it with save_route first (save_route with start: true adds it and chooses it in one call).
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
route |
text | yes | The route’s name, such as shop; null for the environment’s base URL. |
delete_route
Section titled “delete_route”Removes a project’s route. Refused, naming the workflows, while a saved workflow’s steps go to it: rewrite those steps, or delete those workflows, first.
Role: Member and up. Deletes something.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
name |
text | yes |
list_variables
Section titled “list_variables”Lists a project’s variables: each name a step inserts with {{name}}; its kind (plain or secret); its project-wide default (value, null when there is none; hasDefault); each environment’s own value, which overrides the default there (environmentValues: environment id and name, value, isSet); and the workflows whose saved steps use it (usedByWorkflows, usedBy). A secret’s value is never returned, only whether it is set. A workflow’s own variable of the same name wins over the project’s, a secret’s too; ownValueIn names the workflows that give it their own value.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes |
save_variable
Section titled “save_variable”Adds a variable to a project, or sets a value of the variable with that name: the project-wide default, or with environment_id the value for that environment, which overrides the default there. Every workflow of the project can insert it with {{name}}; a workflow’s own variable of the same name (its definition’s “variables”) wins, over a secret too, and is plain. A plain value is readable by anyone who can view the project. A secret is stored encrypted, never returned, and can only be entered into a password field (“Enter {{password}} into the Password field.”); hold only a test account’s password in one. kind changes an existing variable in place; plain to secret is refused while a step uses the name outside a fill. A changed value reaches the next run of every workflow that uses it, without saving them again.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
name |
text | yes | Starts with a letter; letters, digits, ‘-’ and ‘_’, such as customerName. |
value |
text | yes | The value; any text that is not empty. |
kind |
text | no | plain or secret. A new variable is plain unless this says secret; for an existing one, a different kind changes it. |
environment_id |
id | no | The environment this value is for; omit to set the project-wide default. |
delete_variable
Section titled “delete_variable”Removes a project’s variable with its default and every environment’s value. Refused, naming the workflows, while a saved workflow’s steps use a variable of that name: rewrite those steps, or delete those workflows, first.
Role: Member and up. Deletes something.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
name |
text | yes |
Workflows
Section titled “Workflows”list_workflows
Section titled “list_workflows”Lists a project’s workflows, most recently changed first, with each one’s file id (fileId: the id its file in a repository carries), whether it is kept in a repository (inRepository: true once a pipeline’s update has saved it from its file) and whether it was saved here since (editedSinceFile: true when the next update replaces that save), its folder and tags, whether it can run (stepsNeedingChange: how many of its steps need a change before it can run; null when it was saved before steps were read on save and must be saved again to run), its last run, and who last saved it. tag and folder narrow the list (matched ignoring case; folder “” is the workflows in no folder). Routines (reusable steps) are not listed here: list_routines lists them.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
tag |
text | no | |
folder |
text | no |
get_workflow
Section titled “get_workflow”Returns a workflow’s stored definition; its fileId (the id its file in a repository carries), inRepository (true once a pipeline’s update has saved it from its file), and editedSinceFile (true when it was saved here since, a save the next update replaces); the routes (the project’s, name to path) and variables (each with its kind, its value — null for a secret, and for a variable with no project-wide default — whether it is set, and its scope: project, or workflow when the definition declares it, which wins) its next run uses; captured, the names its own steps set from the page, each with the step that sets it; and readings, how saving read its steps, which is what its runs execute: ok (every step understood, so it can run) and each step’s status and reading, as save_workflow returns them. readings is null for a workflow saved before steps were read on save; save it again to run it.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
workflow_id |
text | yes |
get_workflow_files
Section titled “get_workflow_files”A project’s workflows as files, to keep in a repository beside the code they test: one YAML file per workflow, each with its text (content) and a suggested path (path: <folder>/<fileId>.yaml, or <fileId>.yaml for a workflow in no folder). Write each file at its path, unchanged. The file holds the workflow’s id (its fileId, which is how the file finds its workflow), name, folder, tags, description, own variables, and steps, one sentence each; routes, the start page, the project’s variables, secrets, and environments stay in the project. workflow_id gives one workflow’s file; tag and folder narrow the files (matched ignoring case; folder “” is the workflows in no folder); with none, every workflow of the project. Routines (reusable steps) are files too, given with the workflows when no tag or folder narrows the files (or one by its id as workflow_id): kind: routine, its id, name, description, and steps, at routines/<fileId>.yaml, marked kind: routine in the answer. A workflow’s step that runs a routine is its sentence alone in the workflow’s file.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
workflow_id |
text | no | One workflow’s file, by its id. |
tag |
text | no | The files of the workflows with this tag. |
folder |
text | no | The files of the workflows in this folder; “” for those in none. |
save_workflow
Section titled “save_workflow”Creates a workflow, or replaces one when workflow_id is given. The definition is a JSON object: {“schemaVersion”: 1, “description”: “…”, “variables”: {“name”: “value”}, “steps”: [{“id”: “s1”, “instruction”: “Go to the cart page.”}]}. Step ids start with a letter. One action or check per step, in plain words; get_step_guide lists what a step can do, with sentences that work. {{name}} inserts a variable, which must be declared: the project’s (save_variable), or the definition’s own “variables”, which win over the project’s, or set by an earlier step. A step sets one by reading a value the page shows and ending “as {{name}}” (or “into {{name}}”, or opening “Set {{name}} to”): “Remember the ticket number in the Repair booked banner as {{ticketNumber}}.” It names where the value is shown; the steps after it use {{ticketNumber}}, and no step before it can. A name inside quoted text is filled in too: “Check that the page shows “Ticket {{ticketNumber}} booked”.” A name is set once, and cannot be a declared variable’s. A value remembered in plain words is refused with the braced sentence to write instead. Routes belong to the project (save_route, or Settings → Routes) and a step goes to one by name; a definition that carries “routes” is refused. Do not include “baseUrl” (environments own it) or a new “id” (the platform assigns it). Saving reads every step, and runs use what it read. Returns the ID, ok (every step understood, so the workflow can run), and each step’s status and reading. status is understood, or needs a change. An understood step’s reading is one sentence saying what the engine will check or do: read it to confirm the engine understood the step as you meant. A step that needs a change says what it needs (needs), why (reason), and what to write instead; the workflow is saved, but it can’t run until the step is rewritten and the workflow saved again. refusal says what kind of change: several (it does more than one thing), unsupported (not supported yet), needs_context (it points at another step), rule (it needs more detail), or private_address (it goes to an address on a private network, which Belay cannot reach; use one reachable from the internet), or route (it goes to a page the project has no route for: route is the name to give it; add it with save_route and the page’s path, or write the path itself, starting with /, then save again). replacement is the steps to write in its place, each already understood: with no note, use them as they are; a note says what they no longer check, so ask the person first. question gives two meanings to choose between, each answer with its own replacement. A schema problem, or a step that could not be read at all, saves nothing. A step that runs a routine (reusable steps; list_routines) says the routine’s name, or words that mean it: its reading says so (“Runs Admin login, 4 steps.”), and routine gives the routine’s id, name, and steps as read here. A step that might mean a routine needs a change and carries a question: an answer that runs a routine has the routine’s name as its replacement; the answer for a step on the page has none, so rewrite the step as an action or a check that names what it acts on. A routine’s id is refused here: save a routine with save_routine. folder puts the workflow in a folder (“” for none) and tags replaces its tags; omitted, each stays as it is. A name matching one of the project’s ignoring case is that folder or tag (list_tags); any other is created. Neither is part of the definition, so neither reads any step again. A workflow kept in a repository answers inRepository: true and says so in next: a pipeline’s update will replace this save unless its file is committed too, and get_workflow_files gives the file.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
name |
text | yes | The title people see in the workflow list, in plain words, such as “Checkout rejects a bad email”. Not an identifier: spaces and capitals are fine. |
definition |
JSON object | yes | The workflow definition (a JSON object). |
workflow_id |
text | no | Replace this workflow instead of creating one. |
folder |
text | no | The folder to put it in; “” for none. Omit to leave it as it is. |
tags |
list of text | no | Its tags, replacing the ones it has. Omit to leave them as they are. |
organize_workflow
Section titled “organize_workflow”Puts a workflow in a folder and/or replaces its tags, without saving its definition, so no step is read again. folder “” takes it out of its folder. A name matching one of the project’s ignoring case is that folder or tag (list_tags); any other is created. Returns its folder and tags.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
workflow_id |
text | yes | |
folder |
text | no | The folder to put it in; “” for none. Omit to leave it as it is. |
tags |
list of text | no | Its tags, replacing the ones it has. Omit to leave them as they are. |
list_tags
Section titled “list_tags”A project’s folders and tags, each with how many workflows it holds or carries. Reuse these names rather than inventing near-duplicates.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes |
validate_workflow
Section titled “validate_workflow”Reads a workflow’s steps as saving would, without saving or running it (get_step_guide lists what a step can do): each step’s status (understood, or needs a change) and operation, or what it needs and why, and how to rewrite it. Each understood step has a reading: one sentence saying what the engine will check or do. Read it to confirm the engine understood the step as you meant; if it checks less than the step says, rewrite the step. A step that needs a change carries needs, refusal, replacement, note, and question as save_workflow describes, and a step that runs a routine its routine as save_workflow gives it. For a loose check, write “mentions” instead of guessing exact text. Give workflow_id for a saved workflow or routine, or definition (with project_id or environment_id) for an unsaved workflow; a definition that carries “routes” is refused, as routes come from the project (list_routes). Never contacts the application.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
workflow_id |
text | no | |
definition |
JSON object | no | |
project_id |
id | no | |
environment_id |
id | no |
delete_workflow
Section titled “delete_workflow”Deletes a workflow: it leaves list_workflows and can no longer run, and the routes and variables only it used can then be deleted. Its runs stay readable (get_run, list_runs).
Role: Member and up. Deletes something.
| Argument | Type | Needed | What it is |
|---|---|---|---|
workflow_id |
text | yes | |
project_id |
id | yes |
Routines
Section titled “Routines”list_routines
Section titled “list_routines”Lists a project’s routines: reusable steps, such as signing in, written once and run by any workflow of the project with one step that says the routine’s name (“Log in as admin.”). Each has its id, file id, name, description, how many steps it has, stepsNeedingChange (how many of its steps need a change; a workflow that runs it can’t run until they are changed), needs (the values its steps use that the workflow must have before the step that runs it) and gives (the values it remembers for the steps after it), usedBy (the workflows that run it, each with whether it can run), health (how it did in those workflows’ latest runs, in words, such as “Passed in 310 of the last 313 runs” and “Stops at step 2”), and its last save. A routine never runs on its own; it is in no batch and no workflow list.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes |
get_routine
Section titled “get_routine”Returns a routine (reusable steps) as list_routines gives it, with its stored definition (description and steps, each step’s id and sentence) and readings: how its steps were read on its last save, each step’s status and reading or what it needs, as save_workflow returns them. sameSteps lists the project’s workflows that hold the routine’s steps written out, word for word, one after another, so they could run the routine instead: each with workflowId, workflow (its name), steps (where, such as “steps 2 to 4”), and inRepository when it is kept in a repository (the next pipeline update replaces a change made here unless its file changes too). use_routine puts the routine in their place. Left out when no workflow holds them.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
routine_id |
text | yes |
save_routine
Section titled “save_routine”Creates a routine (reusable steps), or replaces one when routine_id is given. The definition is a JSON object like a workflow’s, with no variables of its own: {“schemaVersion”: 1, “description”: “…”, “steps”: [{“id”: “s1”, “instruction”: “Click Sign in.”}]}. The name is how a workflow’s step runs it, so make it the words a step would say, such as “Log in as admin”; no two routines of a project share one (ignoring capitals and a final full stop). The description says what it does and when to use it. Make a routine for steps several workflows repeat, such as signing in or adding a test customer; a routine can’t run another routine, and a step that says another routine’s name is refused. Its steps use the values of the workflow that runs it: a value it needs must be declared in the project or that workflow, or remembered before the step that runs it; a value it remembers is known to the steps after that step, and such a routine can be run only once in a workflow. Saving reads every step, as save_workflow does, and reads every workflow that runs the routine again with it: usedBy is how many run it, and noLongerRun how many of them could run before this save and can’t now (a step of the routine that needs a change stops every workflow that runs it). A workflow’s step that runs a routine counts as one step against the plan’s steps per workflow, and a workflow with more than 200 steps once its routines’ steps are counted is refused at save. Routines don’t count against the plan’s workflows. Returns the routine’s id, ok, each step’s status and reading, usedBy, and noLongerRun.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
name |
text | yes | The routine’s name: the words a workflow’s step says to run it, such as “Log in as admin”. |
definition |
JSON object | yes | The routine’s definition (a JSON object): description and steps. |
routine_id |
text | no | Replace this routine instead of creating one. |
make_routine
Section titled “make_routine”Makes a routine (reusable steps) of a saved workflow’s steps: the steps named, next to each other, become a new routine with that name and description, and in the workflow one step that says the routine’s name takes their place, so the workflow does what it did. Their readings are kept, so nothing is read again. Other workflows can then run the routine with a step that says its name (save_workflow). Refused, changing nothing, when a step is not the workflow’s saved step, the steps are not next to each other, one of them runs a routine already, the name is another routine’s, or the workflow could run before and could not after. Returns the routine’s id, the id of the step that now runs it, the workflow’s steps as saved, and sameSteps: the project’s workflows that still hold the same steps written out, word for word (as get_routine gives them; this workflow too where it held them more than once), for use_routine; left out when none do.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
workflow_id |
text | yes | |
name |
text | yes | The new routine’s name: the words a step says to run it, such as “Log in as admin”. |
step_ids |
list of text | yes | The steps that become the routine, by id, next to each other in the saved workflow. |
description |
text | no | What the routine does and when to use it. |
use_routine
Section titled “use_routine”Puts a routine (reusable steps) in place of its steps in the workflows named: wherever a workflow holds the routine’s steps written out, word for word and one after another (get_routine’s and make_routine’s sameSteps list them), those steps become one step that says the routine’s name, so the workflow does what it did and gets every later change to the routine. Every place they are, or only the first when the routine remembers a value (such a routine can run only once in a workflow). Each workflow keeps its other steps and how they were read. Answers each workflow: changed, with steps (each step that now runs the routine, its stepId and place), and canRun false if it still can’t run; or left unchanged with reason, in words, such as when it doesn’t hold the steps, it could run before and couldn’t after, or it was saved meanwhile. One left unchanged never stops the others. inRepository marks a workflow kept in a repository: the next pipeline update replaces the change unless its file changes too. To run a routine in place of steps that are not word for word its own, write its name as a step with save_workflow instead.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
routine_id |
text | yes | The routine to put in place of its steps, by id. |
workflow_ids |
list of text | yes | The workflows to change, by id, in the routine’s project: usually the ones sameSteps lists. |
delete_routine
Section titled “delete_routine”Deletes a routine: it leaves list_routines. Refused, naming the workflows, while a workflow runs it: change the step that runs it in each of them first. The runs of the workflows that ran it stay readable.
Role: Member and up. Deletes something.
| Argument | Type | Needed | What it is |
|---|---|---|---|
routine_id |
text | yes |
start_run
Section titled “start_run”Starts a run of a saved workflow against one of its project’s environments and returns the run ID at once; the run continues on the platform host. Call get_run to follow it. Refused, with the time the next run can start, when the runs-per-hour limit is reached. stop_after_step_id runs from step 1 up to and including that step and ends there; the later steps end not_run, as the editor’s Run to here does. A run that stopped early and passed says only that the steps that ran passed.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
workflow_id |
text | yes | |
environment_id |
id | yes | |
stop_after_step_id |
text | no | Stop after this step (its id, such as s3); the later steps end not_run. Omit to run every step. |
get_run
Section titled “get_run”A run’s status, outcome, the first step that did not pass with its category, why (what the step found and where, in a user’s words: show this one to a person) and detail (the engine’s own account), per-step outcomes, why, and durations, who started it from where (source: ui, mcp, schedule, or api; startedBy is the person, or the name of the organization’s API key that started it), and AI cost. A run that was interrupted before it could finish has outcome interrupted and no result: the app and the test are not the cause, it is in no pass rate, and next says how to run it again. stopAfterStepId is set when the run was asked to stop after that step (the later steps are not_run), and draft when it ran steps that are not the saved workflow’s (the editor’s unsaved steps, or a pipeline file’s own steps); a workflow not yet saved, which never runs, has no runs. Each step shows what its action changed on the page (effect, such as content_changed or new_tab) and how many console errors and warnings, page errors, and failed requests were seen during it (browserEvents, omitted when 0); the run shows the three totals (browserEvents). get_step_evidence lists the events themselves. A step that passed despite something shows it as warning, such as HTTP 404 on a navigation whose page rendered. Each step that ran has pageUrl, the page’s address when the step looked at it, and pageUrlAfter, its address once the step finished (they differ after a step that went to another page); a run from before they were recorded has neither. A step that was not found, or not settled between elements, may carry suggestions: each a wording that, asked again on the same page, picked one element the step came close to (wording), and the step written with it in place of the phrase it was not found by (instruction, ready for save_workflow; absent when the step holds that phrase only through a variable). A run of a workflow that runs a routine (reusable steps) numbers its steps as the run page does: each step has its place (“2”, or “2.3” for the third step of the routine step 2 runs) and instruction; a step that runs a routine has call (the routine’s id, name, and how many steps it ran), and a routine’s step has routine (its name) and a step id of its own, which get_step_evidence takes. firstNonPassingStep then has place, routine, and stepWords (“step 2.3, in Admin login”); a routine’s step is changed in the routine (save_routine), for every workflow that runs it.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
run_id |
text | yes |
list_runs
Section titled “list_runs”Recent runs, newest first, with their outcome (passed, failed, unresolved, inconclusive, error, cancelled, rejected, or interrupted: the platform could not finish the run, so it has no result and running it again is right), the step each failed at (a routine’s step with its place, such as 2.3, and the routine’s name) and why (in a user’s words), who started each from where, and the batch that started it. Give workflow_id for one workflow’s history, or batch_id for one batch’s runs.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
workflow_id |
text | no | |
limit |
number | no, 20 when left out | At most this many runs (1 to 100, default 20). |
batch_id |
text | no |
get_step_evidence
Section titled “get_step_evidence”One step’s evidence from a run: the step’s reading, its outcome and detail, each target the engine chose (as the model read it, with the probability of that pick), how a self-healed step healed (recoveries, each with says: what changed since an earlier run, such as ‘The “Reserve” button now says “Book this bike”.’; and when one text changed, was and now, that text before and after, with about saying which text it is), an element found from the step’s description (adaptation, with says), and the assertion’s verdict. For an operator, it is the evidence as the engine recorded it: the step’s operation, every resolution attempt with the candidates and the probability each received, the descent (each level’s options with their probabilities and its choice), the assertion’s own evidence (for a text check: the anchor it resolved, the relation, the match rule, and the occurrences found), and the provider calls with their models and cost. It also lists console errors, page errors, and failed requests seen during the step (browserEvents), what the action changed on the page (effect, such as content_changed or new_tab, and newTab), a navigation’s wait and any browser challenge page (navigation), the step’s warning, the check of the chosen target against an outlined screenshot when the run asked for one (verification: its verdict and the image’s path), for an operator the screenshot fallback after a none when the run asked for one (the fallback on a resolution attempt: the marks offered, the mark chosen, the verdict, and the marked image’s path), and the settle time. A step has up to three images. focus: what the step acted on or read, ringed on the page (numbered marks when there are several, such as a geometry check’s two operands or a compound check’s checks), taken just before an action or when a check’s verdict held; its marks give each box in viewport pixels, and none for a navigate or a visual check. pageScreenshot: the page after a navigate, or after an action that changed something (none when effect is no_visible_change, and never after a check). screenshot: what a model judged (a visual check’s crop, a pick check’s outlined viewport), or the full page where a failed, unresolved, or errored step stopped. url is the page’s address when the step looked at it (as focus was taken, else as the step began), and urlAfter its address once the step finished; they differ after a step that went to another page. include_screenshot adds one of them as an image, chosen by image. In a run that ran a routine (reusable steps), step_id may also be a step’s place, such as 2.3, and the evidence says its place and the routine’s name.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
run_id |
text | yes | |
step_id |
text | yes | |
include_screenshot |
true or false | no | |
image |
text | no, explains when left out |
Which image include_screenshot adds. explains (default): the screenshot when the step has one, else focus, else the page after it. focus: what the step acted on or read, highlighted. after: the page after the step. |
cancel_run
Section titled “cancel_run”Cancels a run. A queued run ends cancelled without starting. A running run finishes its current step; the remaining steps end not_run.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
run_id |
text | yes |
Batches
Section titled “Batches”start_batch
Section titled “start_batch”Starts a batch: a run of every workflow with a tag, in a folder, or in the project (all: true), against one environment, and returns the batch ID at once. Give exactly one of tag, folder, or all. A workflow that can’t run (a step that needs a change, a variable with no value in the environment) does not start and is listed with why; the rest start. Refused whole, with nothing started, when the runs-per-hour limit has no room for every run. The workflows are those selected now; tagging one later does not add it. Call get_batch to follow it.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
environment_id |
id | yes | |
tag |
text | no | Run every workflow with this tag. |
folder |
text | no | Run every workflow in this folder. |
all |
true or false | no | Run every workflow of the project. |
get_batch
Section titled “get_batch”A batch’s result (running until every run finished; then failed when a run failed or ended in error, passed when every workflow ran and passed, and incomplete when nothing failed but something was not checked: no verdict, not started, cancelled, or interrupted), what it ran, its counts (passed; failed; noVerdict: not found or inconclusive; errors; cancelled; notStarted; interrupted: runs that were interrupted before they could finish, which have no result, are in no pass rate, and are not caused by the app or the test), its pass rate, its duration, and what changed since the last batch of the same selection on the same environment (sinceLastBatch: stoppedPassing, stillNotPassing, passingAgain, stillPassing, and new workflows with no earlier result; absent for the first). Each workflow comes in order with its run’s outcome (passed, failed, unresolved, inconclusive, error, rejected, cancelled, or interrupted: no result, run it again), its change, the first step that did not pass (a routine’s step with its place, such as 2.3, and the routine’s name; with why, in a user’s words, and detail, the engine’s own account), or why it did not start. An interrupted run’s why says only that it was interrupted. get_run and get_step_evidence go deeper into one run; rerun_interrupted runs the interrupted ones again in the batch.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
batch_id |
text | yes |
list_batches
Section titled “list_batches”A project’s batches, newest first, each with its result, what it ran, its environment, its counts, its pass rate, its duration, and what changed since its last batch. tag and folder narrow it to the batches of one (by name); result to those with one result (passed, failed, incomplete, or running).
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
project_id |
id | yes | |
environment_id |
id | no | |
tag |
text | no | |
folder |
text | no | |
result |
text | no | |
limit |
number | no, 20 when left out | At most this many batches (1 to 100, default 20). |
rerun_interrupted
Section titled “rerun_interrupted”Runs a batch’s interrupted runs again, in the batch: each run that was interrupted before it could finish (never a failed or no-verdict run) starts again from the same version of its workflow, and the batch’s result then comes from the new run; the interrupted run stays in the batch’s runs. Only for the newest batch of its selection on its environment. Refused, with nothing started, when no run was interrupted or the runs-per-hour limit has no room for them all. Call get_batch to follow it.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
batch_id |
text | yes |
cancel_batch
Section titled “cancel_batch”Cancels a batch’s runs that have not finished: a queued run ends at once and starts no engine; a running run finishes the step it is on and the rest end not_run. Finished runs keep their outcomes.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
batch_id |
text | yes |
get_step_guide
Section titled “get_step_guide”What a step can do, with sentences that work. Read it once before writing steps. It covers how to write a step (one thing per step, which element, quoting exact text, “is” against “shows”, where); every action (go to a page, click, type into a field, choose from a dropdown, tick and untick, hover and focus, press a key, scroll, change the window size, reload and go back, wait, close something only if it is there, remember a value); every check (text, fields, shown and hidden and other states, how many, every and only and none, colour, position and size, layout problems, what only a person could judge from a screenshot, the address and the page title, a value remembered earlier); values (variables, secrets, values remembered from the page); and what is not supported yet. topic gives one part: writing, actions, checks, values, changes (each kind of change a step can need, and how to make it), or routines (reusable steps: making one, how a step runs one, its values and rules). Without topic it gives writing, actions, checks, and values. The text is the help site’s own pages.
Role: Viewer and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
topic |
text | no | One part of the guide: writing, actions, checks, values, changes, or routines. Omit for writing, actions, checks, and values. |
start_session
Section titled “start_session”Opens a live page for a saved workflow on one of its project’s environments, so you can write steps against the page itself (perform_steps) instead of saving and running blind. The workflow’s steps before before_step_id run once and the page is held there, so that step is the next on the page; without before_step_id every step runs and the page is held after the last, ready for steps added at the end. Answers once the page is held, with where it is (position: the last step that passed on it; stoppedAt: a step that did not pass, where the page stopped). To write a new workflow, save its first step with save_workflow (and the variables its steps will use: a live page cannot add one), then start with no before_step_id: that step runs and the page is held after it. include_screenshot adds the page where it is held, to write the first step against. A person holds one live page at a time: a start while you hold one is refused with that session’s id, its workflow, and when it was last used (or, for a page open in the editor on a workflow not yet saved, with neither id); take_over closes it and opens this one (refused while it is in the middle of a step). A live page closes on its own after 10 idle minutes, and its unsaved steps go with it; end_session closes it sooner and saves or gives back the steps. A live page uses none of the month’s runs; opening one counts once among the hour’s runs where the plan limits them, and the plan may limit how many live pages the organization holds at once. A routine (reusable steps) is tried on a live page with routine_id: a routine never runs on its own, so its page starts from workflow_id, a workflow that runs it (its steps before its first step that runs the routine run first), or, without workflow_id, from the project’s start page. The session’s steps are then the routine’s own: before_step_id is one of the routine’s steps, perform_steps adds and rewrites the routine’s steps, and end_session with save: true saves the routine (and reads every workflow that runs it again, as save_routine does), never the workflow it started from.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
environment_id |
id | yes | |
workflow_id |
text | no | The workflow to open the page on; with routine_id, a workflow that runs the routine, to start from (omit to start from the project’s start page). |
before_step_id |
text | no | Hold the page before this step (its id, such as s3). Omit to run every step and hold the page after the last. |
take_over |
true or false | no | Close the live page you already hold and open this one. |
include_screenshot |
true or false | no | Add the page where it is held. |
routine_id |
text | no | Try this routine’s steps on the page instead of a workflow’s. |
perform_steps
Section titled “perform_steps”Performs steps on the live page, in order, as a run would, and stops at the first that does not pass. get_step_guide lists what a step can do, with sentences that work. Each item is a new sentence (inserted where the page is: after the last step that passed on it), an existing step’s step_id (performed as written), or a step_id with a new sentence (it replaces that step’s sentence, then is performed). A step is found from its description, as in a run: one whose words are not an element’s exact name still passes, and says what it matched (adapted), so you can confirm it is the element you meant. Each answer says how the step was read (reading), what it acted on or read and how sure the choice was (target, check), its outcome, and, for a step that did not pass, why and any suggested wordings. A sentence that needs a change is not performed and leaves the session’s steps as they were; its answer says what it needs, as save_workflow does. A new sentence joins the session’s steps only when it is performed and passes; one that does not pass, or is only previewed, is answered with no stepId and is not kept, so send it again or send a rewrite. A step already among the steps keeps its new sentence whatever its outcome. preview: true takes one step and stops before acting: an action shows what it would act on, a check is evaluated, and the page does not move. Preview a step you are unsure of, and one that changes something in the application that cannot be undone (a payment, a deletion, a sent message), before performing it; to perform a previewed new sentence, send it again without preview. include_screenshot adds one image, chosen by image. explains (the default) is the image that explains the last answer: the screenshot where a step stopped, else what it acted on or read, else the page after it, else the page’s latest image. page is the page as the steps in this call left it (its latest image: after the last step that changed it), which is what the next step will be written against. One request at a time: a call while another is answered is refused. A step that runs a routine (reusable steps) is performed whole: its answer’s routine gives each of the routine’s steps’ answers in order, each with its place (2.1, 2.2), and, when one did not pass, stoppedAt (“step 2.3, in Admin login”). Its earlier steps acted on the page, so it is never performed again on that page: rewind_session to before it first.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
session_id |
text | yes | |
steps |
list of steps | yes | The steps, in order. Each is {“sentence”: “…”} for a new step, {“step_id”: “s3”} to perform an existing one as written, or both to rewrite and perform it. |
preview |
true or false | no | Preview one step without acting. |
include_screenshot |
true or false | no | Add one image to the answer, chosen by image. |
image |
text | no, explains when left out |
Which image include_screenshot adds. explains (default): what explains the last answer, such as where a step stopped or what it acted on. page: the page as these steps left it, to write the next step against. |
rewind_session
Section titled “rewind_session”Puts the live page back before an earlier step: the page closes, a fresh one opens, and the session’s steps before before_step_id run again, so that step is the next on the page. Without before_step_id every step runs again and the page is held after the last. Use it after a step that did not pass changed the page, or to try a step again from a clean page. discard: true takes steps back: before_step_id and every step after it leave the session’s steps, and the page is held after the last step that remains. Use it for steps you performed and do not want, such as a click made only to look around; the first step cannot be discarded. Answers once the page is held again, with where it is. include_screenshot adds the page where it is held.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
session_id |
text | yes | |
before_step_id |
text | no | Hold the page before this step. Omit to run every step again. |
discard |
true or false | no | Drop before_step_id and every step after it from the session’s steps. |
include_screenshot |
true or false | no | Add the page where it is held. |
get_session
Section titled “get_session”Your live page: where it is (position, stoppedAt), whether it is ready and busy, the session’s steps so far, each done (passed on the page), stopped (did not pass), or ahead, and when it closes if left idle. Without session_id, the live page you hold, if any. include_screenshot adds the page’s latest image: where it was held, or after the last step that changed it. When the page stopped inside a step that runs a routine, stoppedInside says where (“step 2.3, in Admin login”). A routine’s page (start_session with routine_id) has routine: the routine, and the workflow it started from or the start page; stoppedBefore is that workflow’s step that did not pass before the routine’s steps were reached. A live page open in the editor on a workflow not yet saved (a draft) is not an agent’s to use: without session_id, get_session says one is open there, and get_session, perform_steps, rewind_session, and end_session refuse it by its id until it is a workflow.
Role: Member and up. Changes nothing.
| Argument | Type | Needed | What it is |
|---|---|---|---|
session_id |
text | no | |
include_screenshot |
true or false | no | Add the page’s latest image. |
end_session
Section titled “end_session”Closes the live page. save: true first saves the session’s steps to its workflow, exactly as they are in the session and as save_workflow would (every step is read, the name, folder, and tags stay), and answers with ok and each step’s status; this is the way to save what passed on the page without sending the steps again. If the save is refused, the page stays open. Without save nothing is saved: the steps come back as a definition, to change and pass to save_workflow yourself. Then start_run to see the whole workflow pass. On a routine’s page (start_session with routine_id), save: true saves the routine as save_routine does, with usedBy and noLongerRun, and never the workflow the page started from; without save, the routine’s steps come back for save_routine.
Role: Member and up.
| Argument | Type | Needed | What it is |
|---|---|---|---|
session_id |
text | yes | |
save |
true or false | no | Save the session’s steps to its workflow before closing the page. |