docs

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: 7 Imported by: 0

Documentation

Overview

Package read_docs implements the documentation retrieval tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

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

Handler handles the read_docs tool execution.

func Register

func Register(server *mcp.Server)

Register registers the tool with the server.

Types

type Params

type Params struct {
	ImportPath string `json:"import_path" jsonschema:"Import path of the package (e.g. 'fmt')"`
	SymbolName string `json:"symbol_name,omitempty" jsonschema:"Optional symbol name to lookup"`
	Format     string `json:"format,omitempty" jsonschema:"Output format: 'markdown' (default) or 'json'"`
}

Params defines the input parameters for the read_docs tool.

Jump to

Keyboard shortcuts

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