glob

package
v0.0.0-beta Latest Latest
Warning

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

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

Documentation

Overview

Package glob provides file pattern matching using doublestar glob.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inputs

type Inputs struct {
	Pattern string `` /* 130-byte string literal not displayed */
	Path    string `json:"path,omitempty" jsonschema:"description=Directory to search in (default: current directory)"`
}

Inputs defines the parameters for the Glob tool.

type Tool

type Tool struct {
	tool.Base
}

Tool implements file pattern matching using doublestar glob.

func New

func New() *Tool

New creates a new Glob tool with documentation.

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, args map[string]any) (string, error)

Execute runs the glob pattern matching.

func (*Tool) Name

func (t *Tool) Name() string

Name returns the tool's identifier.

func (*Tool) Schema

func (t *Tool) Schema() tool.Schema

Schema returns the provider-agnostic tool definition.

Jump to

Keyboard shortcuts

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