Versions in this module Expand all Collapse all v1 v1.0.0 Apr 19, 2026 Changes in this version + var ErrInvalidArguments = errors.New("invalid arguments") + type ExecutableTool interface + Execute func(ctx context.Context, rawArgs json.RawMessage) (any, error) + func NewToolWithDefinition[In any, Out any](def model.ToolDefinition, handler ToolHandler[In, Out]) ExecutableTool + func NewTool[In any, Out any](name, description string, handler ToolHandler[In, Out]) ExecutableTool + func Wrap(inner ExecutableTool, middleware ToolMiddleware) ExecutableTool + type ExecuteFunc func(ctx context.Context, rawArgs json.RawMessage) (any, error) + type ToolHandler func(ctx context.Context, in In) (Out, error) + type ToolMiddleware func(ctx context.Context, rawArgs json.RawMessage, next ExecuteFunc) (any, error) Other modules containing this package github.com/v8tix/mcp-toolkit/v2