woopcode docs
v1.0.0 GitHub

grep

Searches recursively for text in project files. Read-only: it never changes the workspace and never asks for approval.

Parameters#

Parameter Type Required Description
pattern string Yes text to search for
path string No directory to search, default process.cwd()

Example#

grep({ pattern: "…" })

Approval#

Runs without asking. Reads only; never changes the workspace.

See also#

  • Tools — every tool, and which of them can change your files
  • Approval modes — what gates the tools that change things

Added in woopcode@0.6.0