set_cell_layout
Positions a QuestDB notebook cell in grid mode with x, y, and width values (max 12 columns), returning the applied layout and cell view/mode. Use it to place cells precisely in dashboard layouts.
Instructions
Position a single cell in grid mode. x/y/w are integers in the react-grid-layout grid; width is limited to 12 columns. Cell height is derived from its semantic pane dimensions. The response includes the applied grid position plus the cell's presented view and mode; editor-only and markdown cells report mode null, and markdown also reports view null. Use set_cell_dimensions to resize a cell or change its view.
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>",
"x": "<x>",
"y": "<y>",
"w": "<w>"
},
"name": "set_cell_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| w | Yes | ||
| x | Yes | ||
| y | Yes | ||
| cell_id | Yes | ||
| buffer_id | Yes |