man

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateManPageSchema

func CreateManPageSchema() *jsonschema.Schema

func GetManPage

func GetManPage(ctx context.Context, req *mcp.CallToolRequest, params *GetManPageParams) (*mcp.CallToolResult, any, error)

Types

type GetManPageParams

type GetManPageParams struct {
	Name     string   `json:"name" jsonschema:"Name of the man page"`
	Section  string   `json:"section,omitempty" jsonschema:"Section of the man page (default 1)"`
	Offset   int      `json:"offset,omitempty" jsonschema:"Line offset for pagination"`
	Limit    int      `json:"limit,omitempty" jsonschema:"Maximum number of lines to return (default 500)"`
	Chapters []string `json:"chapters,omitempty" jsonschema:"List of chapters to retrieve (e.g. ['NAME', 'SYNOPSIS'])"`
}

type ManPageResult

type ManPageResult struct {
	Content    string   `json:"content"`
	Chapters   []string `json:"chapters"`
	TotalLines int      `json:"total_lines"`
}

Jump to

Keyboard shortcuts

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