Documentation
¶
Overview ¶
Package grep provides tools for finding files and searching their content.
Index ¶
- type Request
- type Tool
- func (t *Tool) Info(_ context.Context) (*schema.ToolInfo, error)
- func (t *Tool) InvokableRun(ctx context.Context, argumentsInJSON string, _ ...einotool.Option) (string, error)
- func (t *Tool) IsConcurrentSafe() bool
- func (t *Tool) PreflightValidate(input *compose.ToolInput) error
- func (t *Tool) Preview(input *compose.ToolInput) domain.ToolDisplay
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
Pattern string `json:"pattern"`
Path string `json:"path"`
Glob string `json:"glob,omitempty"`
OutputMode string `json:"output_mode,omitempty"`
ContextLines *int `json:"context,omitempty"`
ContextC *int `json:"-C,omitempty"`
ContextB *int `json:"-B,omitempty"`
ContextA *int `json:"-A,omitempty"`
ShowLineNumbers *bool `json:"-n,omitempty"`
I *bool `json:"-i,omitempty"`
CaseInsensitive *bool `json:"case_insensitive,omitempty"`
Multiline *bool `json:"multiline,omitempty"`
Type string `json:"type,omitempty"`
}
Request matches Claude Code's input schema.
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
Tool handles content searching operations.
func NewTool ¶
func NewTool( fs fileSystem, commandExecutor commandExecutor, pathResolver pathResolver, ) *Tool
NewTool creates a new Tool with injected dependencies.
func (*Tool) InvokableRun ¶
func (*Tool) IsConcurrentSafe ¶
IsConcurrentSafe indicates if the grep tool can be run concurrently.
Click to show internal directories.
Click to hide internal directories.