Skip to main content

create_run

Start a coding agent on a prompt in a fresh sandbox. Returns the run right away, while it is still preparing; check on it with get_run. Runs start only while the organization’s balance is above $0.

get_run

Show a run and where it stands: preparing, working, idle or ended.

send_prompt

Ask the agent of an idle run to continue where its last prompt stopped.

list_prompts

List a run’s prompts in order. To get the next page, pass the index of the last prompt received as after.

list_frames

List the agent’s output, line by line, in order. To get the next page, pass the seq of the last line received as after.

list_events

List what the agent did, in order: each prompt, then its messages, reasoning, tool calls and subagents, then a stop. To get the next page, pass the seq of the last event received as after.

get_run_usage

Show what a run has consumed so far, per model and in sandbox time, and what it cost.

end_run

End a run once its current prompt finishes, then destroy its sandbox.

cancel_run

Stop a run right away, even mid-prompt, then destroy its sandbox.

connect_mcp_server

Connect to an MCP server that needs the user’s account on the MCP server, such as Linear or Sentry, so runs can use it as the user. Show the returned consent_url to the user and ask them to open it, sign in, approve, then give you the code the page shows. Call confirm_connection with that code. Not needed for an MCP server without an account: it is refused, saying so.

confirm_connection

Finish a connection with the code the user got after approving on the MCP server, within 10 minutes. The connection is then active: list its MCP server’s URL in create_run’s environment.mcp_servers and the run’s agent uses it as the user.

list_connections

List the connections to MCP servers, to find which ones are active.

list_experiments

List the experiments, each with its scenarios, agents, variants and run settings.

get_experiment

Show an experiment: its scenarios and their evaluations, agents, variants and run settings.

create_experiment

Create an experiment: scenarios given to several agents in several variants, each run judged on the scenario’s evaluations. Pick repositories, skills, MCP servers and command-line tools by their ids from get_library. Launch it with launch_experiment.

update_experiment

Replace a whole experiment: send it complete, as get_experiment returns it. Executions already launched keep the experiment as it was.

delete_experiment

Delete an experiment. Its executions, their runs and results stay.

launch_experiment

Launch an experiment as it is now: a run for every scenario, variant, agent and repetition, started in the background and judged once ended. Returns the execution; check on it with get_execution until it is no longer pending, then read each run’s verdict with list_slots. If refused as incomplete, fix what the error lists with update_experiment.

list_executions

List an experiment’s executions, the latest launched first, with their status and pass rate.

get_execution

Show an execution: whether runs are still pending, and its pass rate.

list_slots

List every run an execution plans, its scenario, variant and agent, its run_id once started, its outcome and its verdict once judged. Read what a run’s agent did with list_events.

cancel_execution

Cancel an execution: start none of its runs left and cancel those started.

get_library

List the repositories, skills, MCP servers and command-line tools an experiment can pick, with the ids to pick them by.