Skip to content

Function: createFsGrepToolDriver() ​

ts
function createFsGrepToolDriver<THandle>(): ToolDriver<FsGrepToolNode<THandle>, THandle>;

Defined in: fs/src/executors/fs-read-tool-drivers.ts:82

Creates the workspace-jailed ToolDriver for FsGrepToolNode (fs:grep / grep_files).

Searches workspace files matching args.glob against regular expression args.pattern and formats matching lines as path:lineNumber:lineText.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownRuntime handle type of the active isolation scope.

Returns ​

ToolDriver<FsGrepToolNode<THandle>, THandle>

Frozen fs:grep tool driver.

Released under the MIT License.