Run code (paid, x402)
executePAID: run Python or JavaScript code (python3, node) in an isolated, network-less sandbox; returns stdout, stderr and exit code. Price scales with limits. Unpaid, it returns the price; pay with x402 (USDC on Base, Solana, Polygon, Arbitrum, Avalanche, Sei or X Layer) in _meta['x402/payment'] and call again. Feedback: POST /feedback (free). Read daily; no individual reply.
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": {
"runtime": "<runtime>",
"source": "<source>"
},
"name": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional extra files, as POST /execute takes them. | |
| stdin | No | Optional standard input. | |
| limits | No | Optional limits (timeoutMs, memoryMb, ...); they set the price. | |
| source | Yes | The program to run. | |
| runtime | Yes | One of python3, node. |