Why
We frequently want to generate simple charts (bar/line/pie/comparison) as images for use in WordPress posts, social, or as sellable assets. Today this lives in external automation (Sweatpants), which limits composability for in-plugin agents.
Proposal
Add a general tool (AI Tool / ability) that can generate chart images from structured data and return either:
- a local file path (for subsequent steps), and/or
- an uploaded attachment_id via existing WP media helpers.
Suggested interface (rough)
Tool name idea: generate_chart
Inputs: chart_type, title, series[], labels[], width, height, theme, format (png/webp), optional alt_text, optional post_id (attach).
Outputs: path, optional attachment_id, mime_type, width, height.
Acceptance criteria
- Deterministic chart rendering (no AI image generation)
- Produces optimized PNG/WebP
- Works in background jobs (no UI requirement)
- Clear errors + remediation hints
Notes
Recipes plugin can wrap this for higher-level “content briefing” style workflows.
Why
We frequently want to generate simple charts (bar/line/pie/comparison) as images for use in WordPress posts, social, or as sellable assets. Today this lives in external automation (Sweatpants), which limits composability for in-plugin agents.
Proposal
Add a general tool (AI Tool / ability) that can generate chart images from structured data and return either:
Suggested interface (rough)
Tool name idea:
generate_chartInputs:
chart_type,title,series[],labels[],width,height,theme,format(png/webp), optionalalt_text, optionalpost_id(attach).Outputs:
path, optionalattachment_id,mime_type,width,height.Acceptance criteria
Notes
Recipes plugin can wrap this for higher-level “content briefing” style workflows.