Search files

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

Arguments

  • project_referencestring

    Project ID or slug whose indexed file chunks should be searched.

  • modelobject

    AI model id or alias. Call list_models for the ids this deployment serves; never invent a version suffix.

  • query_vectorarray of numberrequired

    Embedding vector for the search query, generated with a compatible embedding model.

  • dimensionstringrequired

    Embedding dimension that matches the supplied query vector. One of 768, 1024, 1536, 3072, 4096.

  • modestring

    Search mode. Only SEMANTIC (the default) is supported; KEYWORD and HYBRID are refused. One of SEMANTIC, KEYWORD, HYBRID.

  • environmentstring

    Index to search: the preview branch, the production deployment or a release. One of PREVIEW, PRODUCTION, RELEASE.

  • branch_idstring · uuid | null

    Preview branch ID to search. Use null for the main branch.

  • release_idstring · uuid

    Release ID to search instead of the current branch or mainline index.

  • release_versionstring

    Release version to search when you do not have the release ID.

  • limitnumber · min 1 · max 100

    Maximum number of ranked chunk matches to return, as an integer from 1 to 100.

  • cursorstring

    Opaque pagination cursor from a previous response.

  • optionsobject

    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.

Responses

curl -X POST -N "https://api.veryfront.com/mcp" \  -H "Authorization: Bearer $VERYFRONT_API_KEY" \  -H "Accept: application/json, text/event-stream" \  -H "Content-Type: application/json" \  -d '{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__search_files",    "arguments": {      "query_vector": [],      "dimension": "768"    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"data\":[{\"chunk\":{\"id\":\"string\",\"file_path\":\"string\",\"file_id\":\"string\",\"file_version_id\":\"string\",\"index\":0,\"content\":\"string\",\"start_offset\":0,\"end_offset\":0,\"token_count\":0,\"embedding\":{\"id\":\"string\",\"model\":\"string\",\"status\":\"ready\"},\"embedding_included\":false},\"score\":0}],\"page_info\":{\"self\":\"string\",\"first\":{},\"next\":\"string\",\"prev\":\"string\"},\"total_matches\":0,\"search_time_ms\":0}"      }    ],    "structuredContent": {      "data": [        {          "chunk": {            "id": "string",            "file_path": "string",            "file_id": "string",            "file_version_id": "string",            "index": 0,            "content": "string",            "start_offset": 0,            "end_offset": 0,            "token_count": 0,            "embedding": {              "id": "string",              "model": "string",              "status": "ready"            },            "embedding_included": false          },          "score": 0        }      ],      "page_info": {        "self": "string",        "first": {},        "next": "string",        "prev": "string"      },      "total_matches": 0,      "search_time_ms": 0    }  }}

The tool ran; its output is result.structuredContent.