Add entity reference
add_entity_referenceAttach an uploaded file (vg_file_...) as a reference on an entity. Images work for every entity type. Slideshow themes may also attach a PDF or PowerPoint. For a BRAND, set role BRAND_LOGO for its overlay logo or BRAND_STYLE_GUIDE for its visual generation reference. Built-in entities cannot have references added. For new PRODUCT/ACTOR entities, call this right after create_entity with isDefault: true so the entity has a usable thumbnail and generation reference.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entityId": "<entityId>",
"fileId": "<fileId>"
},
"name": "add_entity_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Purpose of the attached file. Omit for a general reference. On a BRAND, BRAND_LOGO is its overlay logo and BRAND_STYLE_GUIDE is its visual generation reference. | |
| fileId | Yes | Image file id (vg_file_...) to attach as a reference. Upload first via upload_file / create_file_upload / open_uploader. | |
| entityId | Yes | Saved reference entity to use. Obtain entityId from list_entities or create_entity. | |
| isDefault | No | When true, make this the primary reference (thumbnail). Defaults to false. | |
| description | No | Optional description of this reference image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name. | |
| entityId | Yes | Entity id (vg_enti_...). | |
| createdAt | Yes | Unix created-at timestamp. | |
| isBuiltIn | No | True for VideoGen catalog entities that cannot be modified. | |
| updatedAt | Yes | Unix updated-at timestamp. | |
| entityType | Yes | ACTOR, PRODUCT, VISUAL_STYLE, SLIDESHOW_THEME, BRAND, LOCATION, or PROP. | |
| references | Yes | Attached reference images. | |
| actorConfig | No | Voice/avatar summary for ACTOR entities; null for other types. | |
| brandConfig | No | Brand guidance for BRAND entities; null for other types. | |
| description | Yes | Description (empty when unset). |