# veryfront__create_retrieval_document

Create retrieval document. Requires project.knowledge.write.

Risk: mutating.

## Arguments

| Name                | Type   | Required | Description                                                                                                                                                                             |
| ------------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `title`             | string | Yes      | Document title, at least one character.                                                                                                                                                 |
| `source`            | string |          | Upstream source reference, such as a file path or URL. Defaults to "".                                                                                                                  |
| `type`              | string |          | Document type label. Defaults to "".                                                                                                                                                    |
| `metadata`          | object |          | Structured metadata stored with the record: an object of string keys to JSON values.                                                                                                    |
| `id`                | string |          | Caller-chosen record ID. Omit to let the API choose one. An ID that already exists is a conflict. Create the record before writing its chunks; use update to change an existing record. |
| `project_reference` | string |          | Project ID or slug.                                                                                                                                                                     |

## Call it

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