Documents et code · generate_document
Générer un fichier
Vrai fichier Excel, PowerPoint, Word ou PDF.
- 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
| Champ | Type | Description |
|---|---|---|
| code * | string | Python code that WRITES the file to /home/user/<fileName> (or outputPath) and prints a one-line confirmation. |
| fileName * | string | Final file name with extension, e.g. "rapport-q3.xlsx", "pitch-clients.pptx". No path separators. |
| outputPath | string | Where the code writes the file inside the sandbox. Default: /home/user/<fileName>. |
| description | string | One-line description of the document (shown to the user). |
| files | array | fileIds of user-attached files to load into the sandbox at /home/user/<fileName> before execution (max 5), e.g. the workbook to clean or the deck to update. |
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":"generate_document","input":{"code":"…","fileName":"…","outputPath":"…","description":"…"}}'$
run({ "tool": "generate_document", "input": {"code":"…","fileName":"…","outputPath":"…","description":"…"} })