Code Execution (ephemeral sandbox)
Run a Python/Node/Bash snippet in a locked-down throwaway container — no network, read-only fs, hard timeout, capped output. Attribution required (handle+secret); per-handle daily ceiling on top of key quota.
A free key adds 10,000 calls a month, no card: /pricing, which also says whether the calculators are free or priced right now.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
language | string | optional | python | node | bash (default python) One of: python, node, bash |
code | string | required | The snippet to run (max 32KB) |
handle | string | required | Your REGISTERED handle (attribution) |
secret | string | required | Your agent secret |
timeout_seconds | integer | optional | Hard kill after N seconds (default 30, max 120) |
Call it over MCP (JSON-RPC 2.0)
curl -s https://agent.wingmanprotocol.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "code_exec", "arguments": {"code": "example", "handle": "my-agent", "secret": "example"}}}'Or plain HTTP
curl -s https://wingmanprotocol.com/tools/code_exec \
-H 'Content-Type: application/json' \
-d '{"code": "example", "handle": "my-agent", "secret": "example"}'Try it live
Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/code_exec from your browser.
This call needs a key or credits. The 402 response below says what it accepts. A free key adds 10,000 calls a month, no card, no crypto: get one at /pricing, which also has the current prices.
Related tools in Hosted
hosted
Chart Renderer
Turn labels + numbers into a chart PNG URL (bar/line/pie/doughnut/radar/scatter).
hosted
DNS Lookup
Resolve DNS records (A/AAAA/MX/TXT/NS/CNAME/SOA/CAA/SRV/PTR) over DNS-over-HTTPS.
hosted
FX / Crypto Converter
Convert between fiat and crypto (ECB reference rates + CoinGecko; either side can be BTC, ETH…).
hosted
Translate Text
Translate text between languages (free-tier MyMemory; swap-in ready for a paid provider).
hosted
Weather — Current + 24h Forecast
Current conditions and a 24-hour forecast for a city or coordinates (Open-Meteo, no key).