# veryfront__search_files

Search files by vector. Requires project.knowledge.read.

Risk: read\_only.

## Arguments

| Name                | Type   | Required | Description                                                                                                                                                                               |
| ------------------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string |          | Project ID or slug whose indexed file chunks should be searched.                                                                                                                          |
| `model`             | object |          | AI model id or alias. Call list\_models for the ids this deployment serves; never invent a version suffix.                                                                                |
| `query_vector`      | array  | Yes      | Embedding vector for the search query, generated with a compatible embedding model.                                                                                                       |
| `dimension`         | string | Yes      | Embedding dimension that matches the supplied query vector.                                                                                                                               |
| `mode`              | string |          | Search mode. Only SEMANTIC (the default) is supported; KEYWORD and HYBRID are refused.                                                                                                    |
| `environment`       | string |          | Index to search: the preview branch, the production deployment or a release.                                                                                                              |
| `branch_id`         |        |          | Preview branch ID to search. Use null for the main branch.                                                                                                                                |
| `release_id`        | string |          | Release ID to search instead of the current branch or mainline index.                                                                                                                     |
| `release_version`   | string |          | Release version to search when you do not have the release ID.                                                                                                                            |
| `limit`             | number |          | Maximum number of ranked chunk matches to return, as an integer from 1 to 100.                                                                                                            |
| `cursor`            | string |          | Opaque pagination cursor from a previous response.                                                                                                                                        |
| `options`           | object |          | Search options. Tool results carry no embedding vectors, so include\_embeddings has no effect here. Non-empty folders or file\_types are refused: the search does not filter by them yet. |

## Call it

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