start_run
Run Python code in a locked-down throwaway container with no network or host access; returns a run_id for polling output.
Instructions
Run Python code in a locked-down, throwaway container.
The container has no network access, no access to any host directory, and does not run as root. It is deleted when the run ends.
Returns a run_id immediately; the code is still running. Poll get_result with that id to collect the output.
code: the program to execute, placed at main.py in the workspace. files: optional extra input files, as relative paths and contents. limits: optional memory_mb, timeout_seconds and cpus. Defaults are {default_mem} MB and {default_timeout} seconds; the ceilings are {max_mem} MB and {max_timeout} seconds. Asking for more than a ceiling is rejected rather than silently reduced.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "start_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| files | No | ||
| limits | No |