Documents & code · generate_document
Generate a file
Real Excel, PowerPoint, Word or PDF file.
- 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 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. |
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":"generate_document","input":{"code":"…","fileName":"…","outputPath":"…","description":"…"}}'$
run({ "tool": "generate_document", "input": {"code":"…","fileName":"…","outputPath":"…","description":"…"} })