Search file contents
grep_filesSearch file contents by regex recursively to find matches in notes and documents on your everkeep server, with line numbers for follow-up reads or edits.
Instructions
Search file CONTENTS by regex, recursively. Per file returns path, rev, line count, then matching line numbers with their text. Long lines are clipped around the match (max_line_length, default 200). Line numbers and rev feed straight into read_text_file offset/limit and edit_file line edits. Documents (PDF, Word, spreadsheets…) are searched in their extracted text: matches as L (p.N / slide N / sheet Name), no rev; documents:false skips them. Other binaries and symlinks are skipped; output is capped and flags truncation when incomplete. To find files by name use search_files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or directory (recursive) | |
| context | No | ±N lines around each match (default 0) | |
| exclude | No | Glob to skip | |
| include | No | Filename glob, comma-separated: "*.md,*.yaml" | |
| pattern | Yes | JavaScript regex | |
| documents | No | false skips documents. Default true | |
| ignore_case | No | ||
| max_results | No | Default 50 | |
| max_line_length | No | Default 200 |