← All toolsFiles & Documentsxlsx_handlerAll editions

Format Xlsx

Applies professional formatting: freeze header, bold header, auto-width, borders, highlight negatives in red, stripe alternate rows.

Parameters

NameTypeRequiredDescription
pathstringyesAbsolute path to the .xlsx file
freeze_top_rowboolean-Freeze the header row (default true)
bold_headerboolean-Bold the header row (default true)
auto_widthboolean-Auto-adjust column widths (default true)
highlight_negativesboolean-Highlight negative numbers red (default true)
stripe_rowsboolean-Alternate row background color (default false)
add_bordersboolean-Add thin borders to all cells (default false)

How to use it

You normally trigger this by describing what you want in chat; the agent selects FORMAT_XLSX automatically. For example:

Try saying
“use xlsx handler to format …”

In a workflow

As a step in a multi-step workflow DAG:

json
{
  "id": "s1",
  "agent": "xlsx_handler",
  "action": "FORMAT_XLSX",
  "args": {
    "path": "/Users/me/Documents/file.txt"
  },
  "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":"FORMAT_XLSX","args":{"path":"/Users/me/Documents/file.txt"}}'

Part of the xlsx_handler plugin. Browse the full Plugin & Tool Catalog or the relevant feature guide.