get_notebook_state
Return a full structural snapshot of a notebook—layout, cells, previews, pane dimensions, types, and last-run statuses—without reading cell data.
Instructions
Full structural snapshot of a notebook (layout, cells with previews, semantic pane dimensions, kind via type, last-run statuses). Cell grid contains x/y/w only; height is derived from editor_height, result_height, and view. view reports what a SQL/draw cell presents: "editor" while there is nothing to show, else the stored result or editor_result arrangement. Markdown has no pane-view state: it reports view and result_height as null. Other LIVE-ONLY fields are refreshing: true, last_refresh_error, and auto_refresh_blocked: "contains_write"; absence never means "not refreshing" or "not blocked". last_run_status is unrelated to refresh state: it stays the outcome of the last completed RUN. auto_refresh_default is omitted when the notebook has no configured default. type:"markdown" marks a prose cell; SQL cells omit type. No cell data values; no columns/rows/count. Previews are capped at 120 chars — cells cut carry preview_truncated: true + full_length; a preview is never a cell's real content to write back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buffer_id | Yes |