code_sandbox
Audit and run untrusted Python code in an ephemeral sandbox, using static AST checks to block unsafe operations before execution.
Instructions
Executes untrusted Python snippets inside an ephemeral sandbox with static AST safety auditing.
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": "code_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code to audit and run |