ck_fs_grep
Search file contents inside a project root using grep-style pattern matching. Returns matching lines with file paths and line numbers. Supports regex or literal strings, case-insensitivity, and scoped paths.
Instructions
Search file contents inside the bound project root using grep-style pattern matching. Read-only — no files are modified. query is a regex pattern by default; set fixed_strings: true to match literal text without regex. Scope the search with path (a relative directory or glob); omit to search the entire project. Returns matching lines with file path and line numbers. limit caps results (default 50). Use ck_fs_grep to find code patterns or strings inside files. Use ck_fs_find to locate files by name fragment. Use ck_fs_read to read a specific file by path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixed_strings | No | ||
| ignore_case | No | When true, perform case-insensitive matching. | |
| limit | No | Maximum number of results to return. | |
| path | No | File or directory path relative to the project root. | |
| project_root | No | Absolute path to the project root directory on the local filesystem. | |
| query | Yes | Search query string for filtering or full-text search. | |
| session_id | No | Unique session identifier for correlating findings, proofs, budget, and audit trail. |