Documentation
¶
Overview ¶
Package globtool implements the Glob tool — finds files matching a glob pattern. Mirrors src/tools/GlobTool/GlobTool.ts.
M2 scope: standard doublestar glob via github.com/bmatcuk/doublestar/v4, 100-result cap, relative-path output, optional base directory. Permissions integration and plugin-cache exclusions land in M5.
Index ¶
Constants ¶
const MaxResults = 100
MaxResults caps the number of returned paths to keep tool_result blocks under context budgets. Matches the real tool's limit of 100.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tool ¶
type Tool struct{}
Tool implements the Glob tool.
func (*Tool) Description ¶
Description is the prompt text the model sees.
func (*Tool) InputSchema ¶
func (*Tool) InputSchema() json.RawMessage
InputSchema is the JSON Schema sent to the model.
func (*Tool) IsConcurrencySafe ¶
func (*Tool) IsConcurrencySafe(json.RawMessage) bool
IsConcurrencySafe: glob is safe to run concurrently.
func (*Tool) IsReadOnly ¶
func (*Tool) IsReadOnly(json.RawMessage) bool
IsReadOnly: glob only reads the filesystem.