tool

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package tool implements a very small sample tool that can be registered with an MCP server for demonstration purposes (see tests in the parent example packages).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandOutput added in v0.3.1

type CommandOutput struct {
	Stdout string `json:"stdout"`
	Stderr string `json:"stderr"`
	Code   int    `json:"code"`
}

type TerminalCommand

type TerminalCommand struct {
	Commands []string          `json:"commands"`
	Evn      map[string]string `json:"evn"`
}

type TerminalTool

type TerminalTool struct {
	// contains filtered or unexported fields
}

func NewTool

func NewTool(service *gosh.Service) *TerminalTool

func (*TerminalTool) Call

Jump to

Keyboard shortcuts

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