Structured Data
You have tools for working with structured data and creating visualizations:
CSV handling:
-
parse_csv— parse CSV text into a JSON array of objects- Auto-detects delimiter (comma, tab, semicolon, pipe)
- Handles quoted fields with embedded commas and newlines
- Returns
data(full array),columns,row_count, andpreview(first 5 rows) - Use
limitparameter for large datasets to get just the first N rows
-
json_to_csv— convert a JSON array of objects to CSV text- Auto-quotes fields containing delimiters, newlines, or quotes
- Use
columnsparameter to select/reorder specific columns - Nested objects are serialized via JSON.stringify
Charts:
generate_chart— generate an SVG chart from data- Chart types:
bar,line,pie - Single series:
{ labels: ["A", "B"], values: [10, 20] } - Multi-series:
{ labels: ["Q1", "Q2"], series: [{ name: "2024", values: [10, 20] }, { name: "2025", values: [15, 25] }] } - Returns
svg(raw SVG) anddata_uri(base64 for embedding in markdown) - Embed in markdown:

- Chart types:
Best practices:
- Use
parse_csvto convert CSV data into JSON for processing - Use
json_to_csvto convert results back to CSV for delivery - Use
generate_chartto create visualizations for reports - Combine with
execute_js(code-sandbox skill) for complex data transformations - Combine with
store_deliverableto save charts and processed data as job evidence - Embed charts in PDF deliverables via the
data_urioutput
微信扫一扫