get_notebook_state
Get a full structural snapshot of a notebook to inspect layout, cell previews, types, and run statuses, including live refresh and error indicators.
Instructions
Full structural snapshot of a notebook (layout, cells with previews, kind via type, last-run statuses). Three fields are LIVE-ONLY — present only while the notebook is open in the console, so absence never means "not refreshing" or "not blocked": refreshing: true while a refresh is in flight (the visible rows are still the previous round's), last_refresh_error when the last round left a failure, and auto_refresh_blocked: "contains_write" on cells auto-refresh will not run. last_run_status is unrelated to these: it stays the outcome of the last completed RUN, and a refresh never changes it. 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 |