Skip to main content
Glama

read_notebook

Read Jupyter notebook cells to analyze structure, view content, and identify cells for operations like deletion or insertion using brief or detailed formats.

Instructions

Read a notebook and return index, source content, type, execution count of each cell.

Using brief format to get a quick overview of the notebook structure and it's useful for locating specific cells for operations like delete or insert. Using detailed format to get detailed information of the notebook and it's useful for debugging and analysis. It is recommended to use brief format with larger limit to get a overview of the notebook structure, then use detailed format with exact index and limit to get the detailed information of some specific cells.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notebook_nameYesNotebook identifier to read
response_formatNoResponse format: 'brief' will return first line and lines number, 'detailed' will return full cell sourcebrief
start_indexNoStarting index for pagination (0-based)
limitNoMaximum number of items to return (0 means no limit)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/datalayer/jupyter-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server