tenki_run_code
Run shell, Python, or JavaScript snippets in a throwaway microVM and return stdout, stderr, and exit code before destroying the sandbox.
Instructions
Boot a throwaway microVM, run a snippet (shell/python/javascript), return its stdout/stderr/exit code, and tear the sandbox down. Cost-guarded and self-terminating. Use this for one-shot execution when you don't need a persistent sandbox. Output over ~64KB per stream is truncated head+tail — and the sandbox is gone, so for large output use tenki_create_sandbox + tenki_exec and page through the retained file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables as a key→value object. | |
| code | Yes | The code to run. | |
| language | Yes | Interpreter for the snippet. | |
| timeout_seconds | No | Max seconds for the run (default 30). |