# veryfront__update_retrieval_document

Update 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.                                                                                              |
| `expected_revision`     | string | Yes      | The revision you read. A changed record is a conflict; a missing record is not\_found. Title, source, type and metadata are replaced, and the response includes the new revision. |
| `project_reference`     | string |          | Project ID or slug.                                                                                                                                                               |
| `retrieval_document_id` | string | Yes      | Retrieval document ID.                                                                                                                                                            |

## Call it

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