Skip to content

fix(skill): match generate_chart's real output - #4

Open
wonderchang wants to merge 1 commit into
mainfrom
fix/skill-chart-output
Open

wonderchang wants to merge 1 commit into
mainfrom
fix/skill-chart-output

Conversation

@wonderchang

Copy link
Copy Markdown
Contributor

Summary

  • generate_chart returns a PNG plus an ECharts or Vega-Lite spec (per wren-ui/docs/integrations/mcp-server.md in WrenAI-saas). The skill only mentioned an image or a Vega-Lite spec.
  • The server binds a ui://widget/image-viewer.html widget (openai/outputTemplate and ui.resourceUri). Hosts that render it (ChatGPT, Claude) would show the chart twice if the model also renders the spec, so the skill now says not to.

Test plan

  • Antigravity + staging: OAuth sign-in, list_projects, and a chart question. Antigravity showed the static PNG once, with no widget and no duplicate.
  • scripts/sync-hosts.sh --check, agy plugin validate --strict, claude plugin validate --strict --profile directory
  • Claude and ChatGPT: chart renders once via the widget

🤖 Generated with Claude Code

https://claude.ai/code/session_01GDozhzVwo9FaV1NTp4zEH4

generate_chart returns a PNG plus an ECharts or Vega-Lite spec. Hosts with
MCP Apps support render the chart widget themselves, so tell the model not
to render it again; otherwise show the PNG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GDozhzVwo9FaV1NTp4zEH4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant