notebook_run
Execute a SQL, Python, or SAS notebook cell in its kernel, returning a run ID to poll; SQL results become DataFrames and data-changing statements may require confirmation.
Instructions
Run one notebook cell in its kernel; returns a run id to poll with notebook_poll.
cell_type "sql": a SingleStore statement whose result becomes a DataFrame
(``df``, and ``name`` if given). Statements that change data or schema
come back with ``needs_confirmation`` unless ``confirmed``.
cell_type "python": Python code, run as-is.
cell_type "sas": SAS code through saspy in the kernel's own SAS session (kept for older callers; the app runs
SAS cells with notebook_sas_cell in the Workspace's SAS session).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"notebook_id": "<notebook_id>",
"cell_type": "<cell_type>",
"source": "<source>"
},
"name": "notebook_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| source | Yes | ||
| database | No | ||
| cell_type | Yes | ||
| confirmed | No | ||
| notebook_id | Yes |