Install
openclaw skills install image-to-excelExtract table content from images, retrieve row/column data, correct recognition errors, and generate a well-formatted Excel file.
openclaw skills install image-to-excelExtract tables from images and generate .xlsx files.
Use when users upload images containing tables and request "convert to table", "extract table", or "generate Excel".
Use the image tool to load the user-uploaded image, with a prompt requesting row-by-row, column-by-column table data extraction:
Extract all table data from the image row by row and column by column, returning it as a JSON array.
Format: [[row1col1, row1col2, ...], [row2col1, row2col2, ...], ...]
Notes:
- The first row may be a header; keep it as-is
- Split merged cells into individual cells and fill with the same value
- Preserve original formatting for amounts and numbers
- Use empty string "" for missing cells
After receiving the JSON data from the image model, check and correct:
Store the corrected data in the variable rows.
Call the generation script with the corrected data:
python3 scripts/gen_excel.py <output_path> '<json_data>'
output_path: Output path, e.g., /root/.openclaw/workspace/table_extracted.xlsxjson_data: Corrected 2D array as a JSON stringInform the user of the file save location and display a preview of the first 5 rows for confirmation.