All tools

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

FieldTypeDescription
code *stringPython code to execute.
filesarrayfileIds of user-attached files to load into the sandbox at /home/user/<fileName> before execution (max 5).
descriptionstringOne-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":"…"} })