Get Variables
get_variablesRetrieve variables and DataFrame information from a live marimo notebook session. Filter by specific names or get all session variables, excluding scaffolding.
Instructions
Get tables and variables information in the session.
Returns information about kernel variables and DataFrames. If variable_names is empty, returns all variables — meaning the notebook's own session names, with the inspection template's scaffolding (its imports and helpers) excluded, since the scratchpad shares the kernel namespace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_url | No | Optional server URL override. | |
| session_id | No | Session ID from list_active_notebooks. Optional if an active session is bound. | |
| variable_names | No | Specific variables to inspect. Empty = all. Accepts a single name, a native array, or a JSON-encoded array — a harness may deliver either of the latter two as a string. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||