API Reference / agent / tools / notebook /

export.py

Session -> Jupyter notebook export.

Functions

Func

execute_export_notebook

Line 25
execute_export_notebook(**kwargs) -> Dict[str, Any]

Export the current MCP session as a reproducible Jupyter notebook.

Backs the tuiml_export_notebook tool. Translates every recorded successful workflow call into paired markdown + code cells, pinning the session's random seed so the notebook reproduces the run.

Parameters

path
str = '~/tuiml_session.ipynb'
Output path for the notebook file (arrives via **kwargs, like all parameters below).
title
str, Exported Notebook' = 'TuiML Session
Title used in the notebook's header cell.

Returns

result
dict
On success: status ('success'), path (absolute), cells, workflow_calls and message. On failure: status ('error') and error (e.g. when the session has no recorded calls or the file cannot be written).