Tous les outils

Documents et code · run_code

Exécuter du code Python

Scripts Python dans un bac à sable (pandas, numpy, matplotlib).

Prix
1 crédit / appel
0,078 € · 0,085 $US
Prérequis
Aucun connecteur
fonctionne sur les clés plateforme
Validation humaine
Non
lecture ou écriture interne

Entrée

ChampTypeDescription
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).

Appeler cet outil

Via l'API HTTP, ou depuis le serveur MCP avec le méta-outil run.

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":"…"} })