Turn a table of numbers into a chart in one tool call
When to use: You have a small dataset and want a visual without opening a spreadsheet.
Prerequisites
- Node 18+ — nvm install 18
Flow
-
Describe the chartBar chart of weekly active users: Mon 820, Tue 905, Wed 1120, Thu 980, Fri 1340, Sat 780, Sun 610. Title it 'WAU by day'.✓ Copied→ Agent picks generate_bar_chart with correct x-axis labels and values
-
Export the PNGExport as PNG and save it to ~/charts/wau.png.✓ Copied→ File returned; png_path in tool result
Outcome: A chart you can drop into a deck or doc without leaving chat.
Pitfalls
- Asking for a pie chart on a dataset with 30+ categories — Agent should suggest bar/heatmap instead; force it with 'use bar chart, pie is unreadable'