veryfront__search_files
Requires project.knowledge.read.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Read-only.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
project_reference | string | No | Project ID or slug whose indexed file chunks should be searched. |
model | object | No | AI model id or alias. Call list_models for the ids this deployment serves; never invent a version suffix. |
query_vector | number[] | Yes | Embedding vector for the search query, generated with a compatible embedding model. |
dimension | string | Yes | Embedding dimension that matches the supplied query vector. Values: "768", "1024", "1536", "3072", "4096". |
mode | string | No | Search mode. Only SEMANTIC (the default) is supported; KEYWORD and HYBRID are refused. Values: "SEMANTIC", "KEYWORD", "HYBRID". |
environment | string | No | Index to search: the preview branch, the production deployment or a release. Values: "PREVIEW", "PRODUCTION", "RELEASE". |
branch_id | string or null | No | Preview branch ID to search. Use null for the main branch. |
release_id | string | No | Release ID to search instead of the current branch or mainline index. Format: uuid. |
release_version | string | No | Release version to search when you do not have the release ID. |
limit | number | No | Maximum number of ranked chunk matches to return, as an integer from 1 to 100. Minimum: 1. Maximum: 100. |
cursor | string | No | Opaque pagination cursor from a previous response. |
options | object | No | 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. |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__search_files",7 "arguments": {8 "query_vector": [],9 "dimension": "768"10 }11 }12}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
data | object[] | Yes | Ranked semantic matches for the supplied query vector. |
page_info | object | Yes | Pagination cursors for traversing semantic search results. |
total_matches | number | Yes | Total number of chunk matches that met the similarity threshold. |
search_time_ms | number | Yes | Server-side search execution time in milliseconds. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project ID or slug whose indexed file chunks should be searched."7 },8 "model": {9 "type": "object",10 "properties": {11 "name": {12 "type": "string",13 "minLength": 1,14 "description": "Human-readable name for the target record."15 },16 "provider": {17 "type": "string",18 "minLength": 1,19 "description": "Provide the provider."20 }21 },22 "required": [23 "name",24 "provider"25 ],26 "additionalProperties": false,27 "description": "AI model id or alias. Call list_models for the ids this deployment serves; never invent a version suffix."28 },29 "query_vector": {30 "type": "array",31 "items": {32 "type": "number",33 "description": "One query vector item supplied to the tool."34 },35 "maxItems": 4096,36 "description": "Embedding vector for the search query, generated with a compatible embedding model."37 },38 "dimension": {39 "type": "string",40 "enum": [41 "768",42 "1024",43 "1536",44 "3072",45 "4096"46 ],47 "description": "Embedding dimension that matches the supplied query vector."48 },49 "mode": {50 "type": "string",51 "enum": [52 "SEMANTIC",53 "KEYWORD",54 "HYBRID"55 ],56 "description": "Search mode. Only SEMANTIC (the default) is supported; KEYWORD and HYBRID are refused."57 },58 "environment": {59 "type": "string",60 "enum": [61 "PREVIEW",62 "PRODUCTION",63 "RELEASE"64 ],65 "description": "Index to search: the preview branch, the production deployment or a release."66 },67 "branch_id": {68 "anyOf": [69 {70 "type": "string",71 "format": "uuid",72 "description": "Branch identifier. Use null for the main branch when the tool supports it."73 },74 {75 "type": "null",76 "description": "Branch identifier. Use null for the main branch when the tool supports it."77 }78 ],79 "description": "Preview branch ID to search. Use null for the main branch."80 },81 "release_id": {82 "type": "string",83 "format": "uuid",84 "description": "Release ID to search instead of the current branch or mainline index."85 },86 "release_version": {87 "type": "string",88 "description": "Release version to search when you do not have the release ID."89 },90 "limit": {91 "type": "number",92 "minimum": 1,93 "maximum": 100,94 "description": "Maximum number of ranked chunk matches to return, as an integer from 1 to 100."95 },96 "cursor": {97 "type": "string",98 "description": "Opaque pagination cursor from a previous response."99 },100 "options": {101 "type": "object",102 "properties": {103 "similarity_threshold": {104 "type": "number",105 "minimum": 0,106 "maximum": 1,107 "description": "Minimum similarity score required for a chunk to be returned."108 },109 "include_embeddings": {110 "type": "boolean",111 "description": "Include embedding vectors in results."112 },113 "folders": {114 "type": "array",115 "items": {116 "type": "string",117 "description": "One folder item supplied to the tool."118 },119 "description": "Reserved folder filter. A non-empty list is refused until folder filtering is supported."120 },121 "file_types": {122 "type": "array",123 "items": {124 "type": "string",125 "description": "One file type item supplied to the tool."126 },127 "description": "Reserved file-type filter. A non-empty list is refused until file-type filtering is supported."128 }129 },130 "additionalProperties": false,131 "description": "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."132 }133 },134 "required": [135 "query_vector",136 "dimension"137 ],138 "additionalProperties": false,139 "description": "Arguments for semantic file search over indexed project chunks.",140 "$schema": "http://json-schema.org/draft-07/schema#"141}output-schema.json
1{2 "type": "object",3 "properties": {4 "data": {5 "type": "array",6 "items": {7 "type": "object",8 "properties": {9 "chunk": {10 "type": "object",11 "properties": {12 "id": {13 "type": "string",14 "description": "Indexed chunk identifier."15 },16 "file_path": {17 "type": "string",18 "description": "Project-relative file path that produced this chunk."19 },20 "file_id": {21 "type": "string",22 "description": "File identifier when the source file is tracked as a project file."23 },24 "file_version_id": {25 "type": "string",26 "description": "File version identifier used to generate this chunk."27 },28 "index": {29 "type": "number",30 "description": "Zero-based chunk position within the file version."31 },32 "content": {33 "type": "string",34 "description": "Chunk text content used for retrieval and inspection."35 },36 "start_offset": {37 "type": "number",38 "description": "Inclusive character offset where the chunk begins in the source file."39 },40 "end_offset": {41 "type": "number",42 "description": "Exclusive character offset where the chunk ends in the source file."43 },44 "token_count": {45 "type": "number",46 "description": "Approximate token count for the chunk content."47 },48 "embedding": {49 "anyOf": [50 {51 "type": "object",52 "properties": {53 "id": {54 "type": "string",55 "description": "Embedding record identifier for this indexed chunk."56 },57 "model": {58 "type": "string",59 "description": "Embedding model name used to create the vector."60 },61 "status": {62 "type": "string",63 "enum": [64 "ready",65 "stale",66 "missing"67 ],68 "description": "Embedding availability status for the chunk."69 }70 },71 "required": [72 "id",73 "model",74 "status"75 ],76 "additionalProperties": false,77 "description": "Embedding metadata attached to an indexed file chunk."78 },79 {80 "type": "null",81 "description": "The embedding returned by the tool."82 }83 ],84 "description": "Embedding metadata at the requested dimension. Null when embedding_included is false (embeddings were not read) or when none is stored at that dimension."85 },86 "embedding_included": {87 "type": "boolean",88 "description": "Whether embeddings were read for this response. When false, a null embedding says nothing about whether the chunk is indexed."89 }90 },91 "required": [92 "id",93 "file_path",94 "file_version_id",95 "index",96 "content",97 "start_offset",98 "end_offset",99 "token_count",100 "embedding",101 "embedding_included"102 ],103 "additionalProperties": false,104 "description": "Matched file chunk with the most useful retrieval fields for ranking and display."105 },106 "score": {107 "type": "number",108 "description": "Similarity score between the query vector and the returned chunk."109 }110 },111 "required": [112 "chunk",113 "score"114 ],115 "additionalProperties": false,116 "description": "One ranked chunk match returned by semantic file search."117 },118 "description": "Ranked semantic matches for the supplied query vector."119 },120 "page_info": {121 "type": "object",122 "properties": {123 "self": {124 "type": [125 "string",126 "null"127 ],128 "description": "Cursor representing this result page."129 },130 "first": {131 "type": "object",132 "description": "Always null because semantic search pagination is forward-only."133 },134 "next": {135 "type": [136 "string",137 "null"138 ],139 "description": "Cursor for the next page of ranked matches, or null when exhausted."140 },141 "prev": {142 "type": [143 "string",144 "null"145 ],146 "description": "Cursor for the previous page when supported by the backend, otherwise null."147 }148 },149 "required": [150 "self",151 "first",152 "next",153 "prev"154 ],155 "additionalProperties": false,156 "description": "Pagination cursors for traversing semantic search results."157 },158 "total_matches": {159 "type": "number",160 "description": "Total number of chunk matches that met the similarity threshold."161 },162 "search_time_ms": {163 "type": "number",164 "description": "Server-side search execution time in milliseconds."165 }166 },167 "required": [168 "data",169 "page_info",170 "total_matches",171 "search_time_ms"172 ],173 "additionalProperties": false,174 "description": "Semantic file search results ranked by vector similarity.",175 "$schema": "http://json-schema.org/draft-07/schema#"176}