outline

package
v0.0.0-...-8b3e11c Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package outline implements the file outlining tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutline

func GetOutline(file string) (string, []string, []error, error)

GetOutline loads a file and returns its outline, list of imports, and build errors.

func Handler

func Handler(ctx context.Context, _ *mcp.CallToolRequest, args Params) (*mcp.CallToolResult, any, error)

func Register

func Register(server *mcp.Server)

Register registers the code_outline tool with the server.

Types

type Params

type Params struct {
	Filename string `json:"filename" jsonschema:"Absolute path to the Go file to outline"`
}

Params defines the input parameters.

Jump to

Keyboard shortcuts

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