set_cell_mode
Switch a SQL cell between run (table output) and draw (chart output). Draw mode enables multi-series charts by merging multiple SELECT statements on a shared time axis.
Instructions
Switch a SQL cell between run (table output) and draw (chart output). Draw cells auto-execute — do not call run_cell afterwards. MULTI-SERIES TIP: a draw-mode cell can hold multiple SELECT statements separated by ;. The first query's timestamp column is the chart's x-axis (the 'anchor'); every additional query contributes its numeric columns as extra series merged on the time axis. Use this to overlay metrics that come from different tables or different aggregations on a single 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": {
"buffer_id": "<buffer_id>",
"cell_id": "<cell_id>",
"mode": "<mode>"
},
"name": "set_cell_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| cell_id | Yes | ||
| buffer_id | Yes |