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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_variables"
}
}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 | |||