notebookedittool

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package notebookedittool implements the NotebookEdit tool — reads and edits Jupyter notebook (.ipynb) cell source code.

Mirrors src/tools/NotebookEditTool/NotebookEditTool.ts. Supports three edit modes: replace (default), insert (after cell_id), and delete.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	NotebookPath string `json:"notebook_path"`
	CellID       string `json:"cell_id"`
	NewSource    string `json:"new_source"`
	CellType     string `json:"cell_type"`
	EditMode     string `json:"edit_mode"`
}

Input is the typed view of the JSON input.

type Tool

type Tool struct{}

Tool implements the NotebookEdit tool.

func New

func New() *Tool

New returns a fresh NotebookEdit tool.

func (*Tool) Description

func (*Tool) Description() string

func (*Tool) Execute

func (*Tool) Execute(_ context.Context, raw json.RawMessage) (tool.Result, error)

Execute edits a Jupyter notebook cell.

func (*Tool) InputSchema

func (*Tool) InputSchema() json.RawMessage

func (*Tool) IsConcurrencySafe

func (*Tool) IsConcurrencySafe(json.RawMessage) bool

func (*Tool) IsReadOnly

func (*Tool) IsReadOnly(json.RawMessage) bool

func (*Tool) Name

func (*Tool) Name() string

Jump to

Keyboard shortcuts

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