Plan a visualization before building it. MUST be called before generateSandboxedUi, pieChart, or barChart. Outlines the approach, technology choice, and key elements. Args: approach: One sentence describing the visualization strategy. technology: The primary technology (
(
approach: str, technology: str, key_elements: list[str]
)
| 5 | |
| 6 | @tool |
| 7 | def plan_visualization( |
| 8 | approach: str, technology: str, key_elements: list[str] |
| 9 | ) -> str: |
| 10 | """Plan a visualization before building it. MUST be called before |
| 11 | generateSandboxedUi, pieChart, or barChart. Outlines the approach, |
| 12 | technology choice, and key elements. |
| 13 | |
| 14 | Args: |
| 15 | approach: One sentence describing the visualization strategy. |
| 16 | technology: The primary technology (e.g. "inline SVG", "Chart.js", |
| 17 | "HTML + Canvas", "Three.js", "Mermaid", "D3.js"). |
| 18 | key_elements: 2-4 concise bullet points describing what will be built. |
| 19 | """ |
| 20 | elements = "\n".join(f" - {e}" for e in key_elements) |
| 21 | return f"Plan: {approach}\nTech: {technology}\n{elements}" |
nothing calls this directly
no outgoing calls
no test coverage detected