execute_code_securely
Run Python code securely in a remote Azure sandbox with automatic x402 micropayments. Evaluate algorithms, process data, and execute custom scripts without local dependencies.
Instructions
Executes Python code in a remote, isolated Azure sandbox environment with automatic x402 payment handling.
Use this tool to safely evaluate Python algorithms, process data structures, perform math calculations, or run custom scripts.
Usage Guidelines:
Code must be standard Python 3.
Script execution is subject to a 30-second timeout limit; avoid infinite loops or blocking operations.
Ensure all required imports are included within the snippet.
x402 micropayments (USDC on Base) are automatically verified per execution call.
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": "execute_code_securely"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A complete, self-contained Python 3 code string to execute within the remote sandbox environment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |