Skip to Content
Runbase

runs

The runs.* tools of the Runbase MCP server, generated from their definitions.

runs.cancel

Cancels an unfinished run (status canceled): its steps stop and the record can start a run again. false if it is already finished.

NameTypeRequiredDescription
idstringyesRun id
workspacestringnoWorkspace id or name (default: active workspace)

runs.cancel_bulk

Cancels all unfinished runs of a workflow and/or a status (at least one filter). confirm: true required. Returns the number of cancelled runs.

NameTypeRequiredDescription
workflowIdstringno
statusstringnoOne of: running, waiting, paused_budget, paused.
confirmbooleanno
workspacestringnoWorkspace id or name (default: active workspace)

runs.decide

Approves or rejects a paused run (human.approve): it resumes on the approved or rejected branch. not_found error (unknown run) or not_waiting (run or path not waiting, with the reason).

NameTypeRequiredDescription
idstringyesRun id
approvedbooleanyes
pathstringnoWaiting path to decide (default: the first)
workspacestringnoWorkspace id or name (default: active workspace)

runs.get

Reads a run and its steps: path taken (branch; path = parallel execution branch, "0", "1", "0.1"…), input, output (AI reasons included; loop: per-iteration details), function logs fn.* (logs), startedAt, attempts, duration, cost, error. paths gives the state of each path.

NameTypeRequiredDescription
idstringyesRun id
workspacestringnoWorkspace id or name (default: active workspace)

runs.list

Lists the workspace runs, most recent first, with their cost. Filters: status, workflow, record, period (from/to ISO). Returns { items, hasMore, nextCursor }: pass nextCursor back as cursor for the next page.

NameTypeRequiredDescription
statusstringnoOne of: running, waiting, succeeded, failed, paused_budget, paused, canceled.
workflowIdstringno
recordIdstringno
fromstringno
tostringno
cursorstringno
limitintegernoDefault 50
workspacestringnoWorkspace id or name (default: active workspace)

runs.pause

Pauses a run (status paused): the current step finishes, the next ones wait for runs.resume. false if the run is not running.

NameTypeRequiredDescription
idstringyesRun id
workspacestringnoWorkspace id or name (default: active workspace)

runs.replay

Replays a run: new run of the same workflow version, same record and same input (event included). Returns the new run.

NameTypeRequiredDescription
idstringyesRun id
workspacestringnoWorkspace id or name (default: active workspace)

runs.resume

Resumes a run paused by runs.pause.

NameTypeRequiredDescription
idstringyesRun id
workspacestringnoWorkspace id or name (default: active workspace)

runs.retry_from

Retries a finished run (succeeded, failed or cancelled) from a step: that step and the rest of its path are cleared and re-run, earlier steps are kept. Refused if another run is active on the same record.

NameTypeRequiredDescription
idstringyesRun id
stepIdstringyesId of the step to resume from
workspacestringnoWorkspace id or name (default: active workspace)

runs.start

Starts a run of a workflow's current version, on an optional record, with an optional event payload (event, read by {{event.…}} as if the event had triggered the run). Refused if a run of the same workflow is already active on that record. test: true: test run, deleted by workspace.purge_test.

NameTypeRequiredDescription
idstringyesWorkflow id
recordIdstringno
eventanyno
testbooleannoTest data: deleted by workspace.purge_test
workspacestringnoWorkspace id or name (default: active workspace)

runs.waiting

Lists runs paused on a human.approve block, waiting for a decision.

NameTypeRequiredDescription
workspacestringnoWorkspace id or name (default: active workspace)

On this page