WRITE_XLSX
Creates a new Excel file from JSON data. Automatically applies beautiful professional formatting and themes.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
path | string | yes | Absolute path to the new .xlsx file |
data | array | yes | List of dictionaries representing rows |
sheet_name | string | — | Sheet name (default: Sheet1) |
theme | blue | green | dark | light | purple | rose | orange | none | — | Color theme to apply using modern Tailwind palettes (default: blue) |
chart | object | — | Optional chart to generate beside the data |
How to use it
You normally trigger this by describing what you want in chat — the agent selects WRITE_XLSX automatically. For example:
Try saying
“use xlsx handler to write …”
In a workflow
As a step in a multi-step workflow DAG:
json
{
"id": "s1",
"agent": "xlsx_handler",
"action": "WRITE_XLSX",
"args": {
"path": "/Users/me/Documents/file.txt",
"data": []
},
"depends_on": [],
"outputs": []
}Direct call
For scripting, call it directly via POST /execute_tool. Every tool returns { success, message, data }.
bash
curl -X POST http://127.0.0.1:8000/execute_tool \
-H "Content-Type: application/json" \
-d '{"tool_name":"WRITE_XLSX","args":{"path":"/Users/me/Documents/file.txt","data":[]}}'Part of the xlsx_handler plugin. Browse the full Plugin & Tool Catalog or the relevant feature guide.