Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 v0.1.0 Jun 22, 2026 Changes in this version + const DefaultHeadLimit + const MaxHeadLimit + const SearchHint + const ToolDescription + const ToolName + func ValidatePattern(pattern string) error + type OutputMode string + const OutputModeContent + const OutputModeCount + const OutputModeFilesWithMatches + type Tool struct + func NewGrepTool(workingDir string) *Tool + func (g *Tool) BackfillInput(ctx context.Context, input map[string]any) map[string]any + func (g *Tool) Call(ctx context.Context, input tool.CallInput, permissionCheck types.CanUseToolFn) (tool.CallResult, error) + func (g *Tool) CheckPermissions(ctx context.Context, input map[string]any, toolCtx tool.ToolUseContext) types.PermissionResult + func (g *Tool) Definition() tool.Definition + func (g *Tool) Description(ctx context.Context) (string, error) + func (g *Tool) FormatResult(data any) string + func (g *Tool) GetWorkingDir() string + func (g *Tool) IsConcurrencySafe(input map[string]any) bool + func (g *Tool) IsEnabled() bool + func (g *Tool) IsReadOnly(input map[string]any) bool + func (g *Tool) SetWorkingDir(dir string) + func (g *Tool) ValidateInput(ctx context.Context, input map[string]any) (map[string]any, error)