ADD_SHEET_XLSX
Adds a NEW sheet with data to an EXISTING Excel workbook. Does NOT overwrite other sheets. Use WRITE_XLSX to create the file first, then ADD_SHEET_XLSX for each additional sheet. Perfect for multi-sheet reports.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
path | string | yes | Absolute path to the existing .xlsx file |
sheet_name | string | yes | Name for the new sheet |
data | array | yes | List of dictionaries representing rows for the new sheet |
How to use it
You normally trigger this by describing what you want in chat — the agent selects ADD_SHEET_XLSX automatically. For example:
Try saying
“use xlsx handler to add …”
In a workflow
As a step in a multi-step workflow DAG:
json
{
"id": "s1",
"agent": "xlsx_handler",
"action": "ADD_SHEET_XLSX",
"args": {
"path": "/Users/me/Documents/file.txt",
"sheet_name": "…",
"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":"ADD_SHEET_XLSX","args":{"path":"/Users/me/Documents/file.txt","sheet_name":"…","data":[]}}'Part of the xlsx_handler plugin. Browse the full Plugin & Tool Catalog or the relevant feature guide.