Basic Execution
Error Handling
With Code Context
Preserve variables across multiplerun_code calls:
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
runtime_id | string | Yes | Runtime identifier |
code | string | Yes | Python source code to execute |
context_id | string | No | Reuse a persistent code context |
environment | object | No | Per-execution environment variables |
timeout | integer | No | Execution timeout in seconds |
Response
| Field | Type | Description |
|---|---|---|
text | string | Combined stdout output |
success | boolean | True if no execution error |
error | object | Error details (name, value, traceback) |
results | list | Structured execution results |
logs | object | stdout and stderr as lists of strings |

