apollo-code / tools/src / GrepTool
Class: GrepTool
Implements
Tool<{path?:string;pattern:string; }>
Constructors
Constructor
new GrepTool():
GrepTool
Returns
GrepTool
Properties
description
readonlydescription:"Search text in files"='Search text in files'
Implementation of
inputSchema
readonlyinputSchema:never
Implementation of
name
readonlyname:"Grep"='Grep'
Implementation of
readonly
readonlyreadonly:true=true
Implementation of
Methods
invoke()
invoke(
i,c):Promise<ToolResult>
Parameters
i
path?
string
pattern
string
c
Returns
Promise<ToolResult>
Implementation of
permissionSpec()
permissionSpec(
i):PermissionSpec
Parameters
i
path?
string