# set_cover

Source: https://heyeveryone.ai/docs/mcp/set_cover

> Choose the cover frame of a ready video: the still platforms show before it plays (YouTube thumbnail, Reel and TikTok cover where the platform allows choosing one). Give atMs, a time in the video in milliseconds. list_media with `mediaAssetId` lists the candidate frames heyeveryone already extracted (coverFrames); picking one of those takes effect at once. Any other time is extracted in the background (pending: true); the new frame becomes the cover within a minute. The chosen cover is always coverFrames[0].

Choose the cover frame of a ready video: the still platforms show before it plays (YouTube thumbnail, Reel and TikTok cover where the platform allows choosing one). Give atMs, a time in the video in milliseconds. list_media with `mediaAssetId` lists the candidate frames heyeveryone already extracted (coverFrames); picking one of those takes effect at once. Any other time is extracted in the background (pending: true); the new frame becomes the cover within a minute. The chosen cover is always coverFrames[0].

## Access and cost

- Kind: mutation
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false

## Input schema

```json
{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "mediaAssetId": {
      "format": "uuid",
      "type": "string"
    },
    "atMs": {
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "workspaceId",
    "mediaAssetId",
    "atMs"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "mediaAsset": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "workspaceId": {
          "format": "uuid",
          "type": "string"
        },
        "kind": {
          "enum": [
            "image",
            "video"
          ],
          "type": "string"
        },
        "status": {
          "enum": [
            "uploading",
            "processing",
            "ready",
            "failed"
          ],
          "type": "string"
        },
        "storageProvider": {
          "enum": [
            "supabase",
            "r2"
          ],
          "type": "string"
        },
        "storageBucket": {
          "type": "string"
        },
        "storageKey": {
          "type": "string"
        },
        "publicUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "filename": {
          "type": "string"
        },
        "mimeType": {
          "type": "string"
        },
        "sizeBytes": {
          "type": [
            "string",
            "null"
          ]
        },
        "width": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "height": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "durationMs": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "probe": {
          "type": "object"
        },
        "probeError": {
          "type": [
            "string",
            "null"
          ]
        },
        "covers": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "storageKey": {
                "type": "string"
              },
              "width": {
                "type": "integer"
              },
              "height": {
                "type": "integer"
              },
              "atMs": {
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "storageKey",
              "width",
              "height",
              "atMs"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "altText": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdByAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAgentClientId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        },
        "updatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "previewUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "coverFrames": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "atMs": {
                "minimum": 0,
                "type": "integer"
              },
              "width": {
                "type": "integer"
              },
              "height": {
                "type": "integer"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "atMs",
              "width",
              "height",
              "url"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "fitsPlatforms": {
          "items": {
            "enum": [
              "x",
              "linkedin",
              "threads",
              "bluesky",
              "instagram",
              "facebook",
              "tiktok",
              "youtube",
              "sandbox"
            ],
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "id",
        "workspaceId",
        "kind",
        "status",
        "storageProvider",
        "storageBucket",
        "storageKey",
        "publicUrl",
        "filename",
        "mimeType",
        "sizeBytes",
        "width",
        "height",
        "durationMs",
        "probe",
        "probeError",
        "covers",
        "altText",
        "createdByAccountId",
        "createdByAgentClientId",
        "createdAt",
        "updatedAt",
        "previewUrl",
        "coverFrames",
        "fitsPlatforms"
      ],
      "type": "object"
    },
    "pending": {
      "type": "boolean"
    }
  },
  "required": [
    "mediaAsset",
    "pending"
  ],
  "type": "object"
}
```

## Errors

```json
[
  "not_a_video",
  "not_ready"
]
```

## Annotations

```json
{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Set a video's cover"
}
```
