thanaton_run_code
Execute a standalone, single-file code snippet in an ephemeral, stateless microVM sandbox that is automatically destroyed after execution, isolating code from the local machine.
Instructions
Directly run a standalone, single-file code snippet in an ephemeral, stateless microVM sandbox (automatically destroyed after execution). For stateful multi-step terminal interactions, filesystem persistence, or long-running processes, use 'thanaton_spawn_sandbox' followed by 'thanaton_exec_command' passing the 'sandbox_id'.
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": {
"language": "<language>",
"code": "<code>"
},
"name": "thanaton_run_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The complete source code snippet to compile and execute | |
| language | Yes | Programming language runtime | |
| timeout_ms | No | Timeout in milliseconds (default: 10000) |