read

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package read implements the code reading and symbol extraction tool with unconditional type enrichment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(server *mcp.Server)

Register registers the smart_read tool with the server.

Types

type Params

type Params struct {
	Filenames []string `json:"filenames,omitempty" jsonschema:"The absolute paths to the Go files to read."`
	Filename  string   `json:"filename,omitempty" jsonschema:"Deprecated: use filenames instead"`
	Outline   bool     `json:"outline,omitempty" jsonschema:"Optional: if true, returns the structure (AST) only"`
	StartLine int      `json:"start_line,omitempty" jsonschema:"Optional: start reading from this line number"`
	EndLine   int      `json:"end_line,omitempty" jsonschema:"Optional: stop reading at this line number"`
}

Params defines the input parameters for the smart_read tool.

Jump to

Keyboard shortcuts

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