Home Explore Blog CI



zed

1st chunk of `crates/assistant_tools/src/grep_tool/description.md`
92130e0776131c7244da58b7ea40d17e69af2b267c17cf09000000010000027a
Searches the contents of files in the project with a regular expression

- Prefer this tool to path search when searching for symbols in the project, because you won't need to guess what path it's in.
- Supports full regex syntax (eg. "log.*Error", "function\\s+\\w+", etc.)
- Pass an `include_pattern` if you know how to narrow your search on the files system
- Never use this tool to search for paths. Only search file contents with this tool.
- Use this tool when you need to find files containing specific patterns
- Results are paginated with 20 matches per page. Use the optional 'offset' parameter to request subsequent pages.

Title: Project File Content Search Tool
Summary
This tool searches the content of files within a project using regular expressions. It's recommended for finding symbols or code patterns, supports full regex syntax, and allows filtering by file path using `include_pattern`. Avoid using it for path-based searches. Results are paginated, with an offset parameter for accessing subsequent pages.