# Upsert file chunk embeddings

Tool: `veryfront__upsert_file_chunk_embeddings`

Upsert embeddings. Requires project.knowledge.write.

## Arguments

| Name                | Type                     | Required | Description                                                                                   |
| ------------------- | ------------------------ | -------- | --------------------------------------------------------------------------------------------- |
| `project_reference` | string                   |          | Project identifier or slug that scopes the tool call.                                         |
| `chunk_ids`         | array of string · uuid   | Yes      | Chunk IDs to upsert embeddings for.                                                           |
| `vectors`           | array of array of number | Yes      | Embedding vectors aligned by index with `chunk_ids`.                                          |
| `model`             | object                   | Yes      | Embedding model that produced these vectors. Not an agent chat model; model listings omit it. |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
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__upsert_file_chunk_embeddings",
    "arguments": {
      "chunk_ids": [],
      "vectors": [],
      "model": {
        "name": "string",
        "provider": "string",
        "dimension": 0
      }
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"embeddings\":[{\"id\":\"string\",\"model\":\"string\",\"status\":\"ready\",\"created_at\":\"string\"}],\"created\":0,\"updated\":0}"
      }
    ],
    "structuredContent": {
      "embeddings": [
        {
          "id": "string",
          "model": "string",
          "status": "ready",
          "created_at": "string"
        }
      ],
      "created": 0,
      "updated": 0
    }
  }
}
```
