handle_click
Analyzes a clicked data point on a chart and returns insights, enabling users to interact with visualizations and receive explanations from the AI.
Instructions
Process a click event on a chart and return AI-friendly insights.
When a user clicks on a data point in a visualization, this tool analyzes the clicked point in context and returns insights about it. This enables bidirectional communication: the AI creates a chart, the user clicks a point, and the AI explains what that point means.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plot_id | Yes | ID of the plot that was clicked | |
| x_value | No | X-axis value of the clicked point | |
| y_value | No | Y-axis value of the clicked point | |
| point_index | No | Index of the clicked data point in the source dataset |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |