render_chart
Render an INTERACTIVE chart inline (line/area/bar with a type-switcher, hover tooltips, a footer metadata strip, and an "Open in Quattr" deep-link) from a prior verb's result rows. A sibling of build_chart_spec — pass the rows you already have; no re-query. Optionally pass deep_link to point the "Open in Quattr" link at the right destination + dates (Growth Trends, Competitive Trends, or AI Visibility). For AI-answer coverage-gap or cited-URL charts, use the AI Visibility destination (tab=prompts or tab=citedUrls) — never organic Growth Trends. DO NOT re-chart a verb result that already rendered a chart card — trend results (e.g. search_performance with granularity) auto-render a card that carries its own Open-in-Quattr link, so calling this again just duplicates the visual. Use this for rows that did NOT render (e.g. the advanced analytics query tool) or when the user explicitly asks for a different chart.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rows": "<rows>"
},
"name": "render_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| mark | No | line | |
| rows | Yes | The rows array from a previous query result | |
| adhoc | No | Adds an "Open in Adhoc Analysis" link that reopens the exact saved analytics query behind these rows in QWA's Adhoc Analysis section — echo queryExplore + queryQid from the verb result that produced the rows. Complements deep_link (which targets the trends pages); pass both when available. | |
| title | No | ||
| deep_link | No | Where "Open in Quattr" should land (page + dates). Use ai-visibility for AI-answer charts (coverage gaps → tab=prompts; cited URLs → tab=citedUrls) — never growth-trends for those rows. Pass metric/granularity/filters too for a full-fidelity Growth / Competitive page. Omit for a generic growth-trends link. Keep the link CONSISTENT with the chart: date_range = the rows' effective window (see date_range), and title the chart by that same window. |