notebook

package
v0.2.9-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package notebook hosts the NotebookEdit tool.

Index

Constants

This section is empty.

Variables

View Source
var Edit tools.Tool = tools.NewStub(
	tools.NOTEBOOK_EDIT,
	"Replace, insert, or delete a cell in a Jupyter notebook (.ipynb). "+
		"The notebook_path must be absolute. Cells are 0-indexed. "+
		"Use edit_mode=insert to add a new cell after the index/cell_id; "+
		"edit_mode=delete to remove the cell at that index.",
	`{
		"type":"object",
		"additionalProperties":false,
		"required":["notebook_path","new_source"],
		"properties":{
			"notebook_path":{"type":"string","description":"The absolute path to the Jupyter notebook file (must be absolute, not relative)"},
			"new_source":{"type":"string","description":"The new source for the cell"},
			"cell_id":{"type":"string","description":"The ID of the cell to edit. When inserting, the new cell goes after this ID, or at the beginning if not specified."},
			"cell_type":{"type":"string","enum":["code","markdown"],"description":"Cell type. Defaults to current cell type. Required when edit_mode=insert."},
			"edit_mode":{"type":"string","enum":["replace","insert","delete"],"description":"The type of edit. Defaults to replace."}
		}
	}`,
)

Functions

func Names

func Names() []tools.ToolName

Names lists every tool name this package contributes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL