excel_to_json
Extract data from Excel sheets and convert to structured JSON with headers and typed rows. Specify sheet index and header presence for precise data extraction.
Instructions
Extract data from an Excel sheet and return structured JSON.
Returns headers (if present) and typed data rows.
Args: excel_base64: Base64-encoded Excel file. sheet_index: Sheet index to extract (0-based, default: 0). has_header: Whether the first row is a header (default: true).
Returns: JSON with sheetName, totalRows, headers, and data array.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"excel_base64": "<excel_base64>"
},
"name": "excel_to_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| excel_base64 | Yes | ||
| sheet_index | No | ||
| has_header | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |