builtintools

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ServerID = "__systool__"

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, name string, params any, meta op.Meta, notifier NotifyFunc) (*op.CallToolResult, error)

func HandleEdit

func HandleEdit(ctx context.Context, req *op.CallToolRequest, input editInput) (*op.CallToolResult, any, error)

func HandleRead

func HandleRead(ctx context.Context, req *op.CallToolRequest, input readInput) (*op.CallToolResult, any, error)

func HandleShell

func HandleShell(ctx context.Context, req *op.CallToolRequest, input shellInput) (*op.CallToolResult, any, error)

func HandleWrite

func HandleWrite(ctx context.Context, req *op.CallToolRequest, input writeInput) (*op.CallToolResult, any, error)

func IsBuiltinName

func IsBuiltinName(name string) bool

func IsOSToolName

func IsOSToolName(name string) bool

func OSToolSpec

func OSToolSpec(name string) (*op.ToolSpec, bool)

func ShellToolDescription

func ShellToolDescription() string

Types

type NotifyFunc

type NotifyFunc func(context.Context, *op.InfoNotificationParams)

Jump to

Keyboard shortcuts

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