set_cell_dimensions
Resize a QuestDB notebook cell's editor and result panes with CSS pixel heights and set its view, preserving or resetting dimensions as needed.
Instructions
Resize a cell using semantic pane dimensions in CSS pixels and choose its pane view. Every input field is required by strict tool calling: pass null to preserve the current setting. Pass "auto" for a height to restore automatic sizing, or a number to pin it. For SQL/draw cells, view accepts editor, result, or editor_result. view "editor" is DESTRUCTIVE: it discards the cell's result and snapshot and clears its presented mode — the same gesture as toggling off the table or chart in the UI; the response then carries mode:null and result_discarded:true. The stored result/editor_result arrangement is kept for the next result. A cell with nothing to show reports view "editor" and mode null. Markdown has no pane-view state: it reports view, mode, and result_height as null; editor_height sizes its rendered content, while result_height and view are ignored — keep them null. Use 86px for a polished markdown title. Chart result_height must be at least 296px; table results at least 100px. No pane may exceed 2400px.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | Yes | The cell's pane view. Null preserves. result and editor_result store the arrangement. editor DISCARDS the cell's result and snapshot, clears its presented mode, and hides the result pane (the toggle-off gesture); on a cell with nothing to show it is a no-op. | |
| cell_id | Yes | ||
| buffer_id | Yes | ||
| editor_height | Yes | Editor pane height in CSS pixels; for markdown, rendered content height. Null preserves, "auto" restores content-driven sizing. SQL editors are at least 72px, markdown at least 56px, and every pane at most 2400px. Use 86px for a polished markdown title. | |
| result_height | Yes | Result/chart pane height in CSS pixels. Null preserves, "auto" restores result-driven sizing. Maximum 2400px. |