Add the ‘Convert a spreadsheet to JSON’ Tool step to your Tool
- Creating a new Tool, then searching for the ‘Convert a spreadsheet to JSON’ Tool step
- Click ‘Expand’ to see the full Tool step
- Add the CSV or XLSX file you want to convert to JSON
- Click ‘Run step’ to run the Tool step
- Your output will be formatted - click ‘Formatted’ to see the JSON output if needed
Using the Tool output
The output is a dictionary with a keyrows.
spreadsheet_to_json[rows]is a list containing as many rows as included in the uploaded file.- Each row is a dictionary representing one row of data (i.e. keys are column headers in the uploaded spreadsheet).
spreadsheet_to_json is used.
Common errors
Unsupported file type
Unsupported file type
The error message similar to the one below indicates that a non-spreadsheet file was uploaded to the Tool step. Only CSV and XLSX files are supported.
Unsupported file type: pdfCSV files added to an agent’s Context are displayed as scrollable tables in the builder, so you can verify the data before running the agent. For structured processing, this tool step converts the file to JSON that your tools can use.

