LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsindexBaseSandboxgrepRaw
Method●Since v1.4

grepRaw

Search for a literal text pattern in files using grep.

Copy
grepRaw(
  pattern: string,
  path: string = "/",
  glob: string | null = null
): Promise<string | GrepMatch[]>

Parameters

NameTypeDescription
pattern*string

Literal string to search for (NOT regex).

pathstring
Default:"/"

Directory or file path to search in.

globstring | null
Default:null

Optional glob pattern to filter which files to search.

View source on GitHub