# veryfront__search_file_text

Search file text. Requires project.files.read.

Risk: read\_only.

## Arguments

| Name                | Type    | Required | Description                                                                                   |
| ------------------- | ------- | -------- | --------------------------------------------------------------------------------------------- |
| `ref`               | string  |          | Content to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main.   |
| `query`             | string  | Yes      | Literal text to find, or a regular expression when is\_regex is true.                         |
| `pattern`           | string  |          | File path pattern, for example *.tsx or pages/*.                                              |
| `is_regex`          | boolean |          | Read query as a regular expression (default false).                                           |
| `case_sensitive`    | boolean |          | Match letter case exactly (default false).                                                    |
| `limit`             | integer |          | Largest number of matching files, 1 to 100 (default 50). It limits files, not matching lines. |
| `project_reference` | string  |          | Project ID or slug (defaults to the current project)                                          |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__search_file_text",
    "arguments": {
      "query": "<query>"
    }
  }
}
```
