run_submit
Submit code for background execution and receive a run ID immediately. Poll the run to check results or cancel it, keeping your current call free.
Instructions
Submit code for BACKGROUND execution; returns a run_id immediately.
Same request shape as execute_code (minus session_id: a run is a standalone process, not a session workspace). The work proceeds on a background worker; poll it with run_inspect(run_id) and, if needed, stop it early with run_cancel(run_id).
Use this instead of execute_code when you would rather not hold an MCP
call open for the whole computation. timeout is still the WORK's own
deadline (same 120s ceiling as execute_code) — it bounds the run, not how
long you wait to collect it.
Admission is capped (CODECALC_MAX_ACTIVE_RUNS, default 64): past that many runs still running/cancelling at once, this returns a resource_exhausted error rather than growing without bound — call run_inspect/run_cancel to make room, or wait for one to finish.
Retention: see run_inspect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| stdin | No | ||
| no_net | No | ||
| max_cpu | No | ||
| timeout | No | ||
| language | Yes | ||
| provider | No | ||
| max_memory_mb | No | ||
| max_output_kb | No |