Documents & code · run_code
Run Python code
Python scripts in a sandbox (pandas, numpy, matplotlib).
- Price
- 1 credit / call
- ≈ €0.078 · $0.085
- Requirements
- No connector
- runs on platform keys
- Human approval
- No
- read or internal write
Input
| Field | Type | Description |
|---|---|---|
| code * | string | Python code to execute. |
| files | array | fileIds of user-attached files to load into the sandbox at /home/user/<fileName> before execution (max 5). |
| description | string | One-line description of what this code does (shown to the user). |
Call this tool
Through the HTTP API, or from the MCP server with the run meta-tool.
curl https://api.ezyagents.fr/gateway/v1/run \
-H "Authorization: Bearer ezk_…" -H "Content-Type: application/json" \
-d '{"tool":"run_code","input":{"code":"…","files":[],"description":"…"}}'$
run({ "tool": "run_code", "input": {"code":"…","files":[],"description":"…"} })