Molab Notebooks
v0.1.0Manage Molab notebooks, request GPUs, and pair agents with live marimo kernels.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
molab_open
Open the Molab dashboard or a notebook URL. Complete sign-in in the browser window.
| Parameter | Type | Description |
|---|---|---|
url |
molab_tabs
List tabs, including editor popups, in the dedicated Molab browser.
molab_list_notebooks
List saved notebooks in the signed-in workspace, including those without a running editor. Pass a dashboard tab or omit tab_id. Optionally filter by name with query. Use the returned IDs with molab_init_notebook or molab_terminate_notebook.
| Parameter | Type | Description |
|---|---|---|
query | ||
tab_id |
molab_snapshot
Read visible controls and frames. Refresh after navigation or changes to a menu.
| Parameter | Type | Description |
|---|---|---|
tab_id * | string |
molab_action
Interact with a visible Molab control, editor, file dialog or canvas using its frame and target.
| Parameter | Type | Description |
|---|---|---|
action * | ||
tab_id * | string |
molab_screenshot
Capture the notebook UI for visual controls and coordinate-based actions.
| Parameter | Type | Description |
|---|---|---|
tab_id * | string |
molab_close_tab
Close the selected browser tab. This may disconnect its live editor session.
| Parameter | Type | Description |
|---|---|---|
tab_id * | string |
molab_attach_gpu
Select GPU compute and apply the Molab restart. Inspect notebook_gpu_status after pairing.
| Parameter | Type | Description |
|---|---|---|
tab_id * | string |
molab_pair_agent
Obtain the editor's Pair credential. Returns a private connection file and its local ID.
| Parameter | Type | Description |
|---|---|---|
tab_id * | string |
molab_terminate_notebook
Stop the target notebook's cloud runtime. Its in-memory state will be lost. Select an open notebook tab or pass its nb_ ID or Molab URL. The saved notebook can be initialized again with molab_init_notebook.
| Parameter | Type | Description |
|---|---|---|
notebook | ||
tab_id |
molab_init_notebook
Start an existing notebook by Molab URL, nb_ ID or notebook tab, or create one from the dashboard. With notebook set, only that existing notebook may be started or paired. GPU and Pair are enabled by default. GPU selection can restart the kernel. On partial completion reuse the returned tab_id and the indicated next tool.
| Parameter | Type | Description |
|---|---|---|
gpu | boolean | |
notebook | ||
pair | boolean | |
tab_id |
notebook_sessions
List active sessions accessible through this Pair connection.
| Parameter | Type | Description |
|---|---|---|
connection_id |
notebook_execute
Run Python in the live scratchpad. Use notebook_cell to persist code in the notebook.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
connection_id | ||
session_id |
notebook_cells
Inspect cells, current source and state before editing.
| Parameter | Type | Description |
|---|---|---|
connection_id | ||
session_id |
notebook_cell
Create, edit, run or delete a cell. Pass expected_code to guard edits against stale reads.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
cell_id | ||
code | ||
connection_id | ||
expected_code | ||
run | boolean | |
session_id |
notebook_widget
Change a named marimo UI widget's value through the running notebook.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
value * | ||
connection_id | ||
session_id |
notebook_package
List requirements, add a package requirement, or remove a dependency in the notebook.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
connection_id | ||
requirement | ||
session_id |
notebook_gpu_status
Ask the live kernel for GPU device names and memory using nvidia-smi.
| Parameter | Type | Description |
|---|---|---|
connection_id | ||
session_id |