# list_media

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

> List the workspace's media library, newest first: images and finished videos with their status (uploading, processing, ready, failed), dimensions, duration, alt text, public URL, cover frames, and fitsPlatforms (the platforms whose formats take the file as is, from the capability matrix). Filter by kind, status, a platform the file must fit (fitsPlatform) or a file-name search (query); page with nextCursor as cursor. Pass `mediaAssetId` for one asset in full: poll it after an upload until status is 'ready' or 'failed'; it adds probe data, `fit` for every platform and format (which checks fail and why), `usedIn` (drafts and posts, with their state) and `deletable` (false while a post that will still go out uses it).

List the workspace's media library, newest first: images and finished videos with their status (uploading, processing, ready, failed), dimensions, duration, alt text, public URL, cover frames, and fitsPlatforms (the platforms whose formats take the file as is, from the capability matrix). Filter by kind, status, a platform the file must fit (fitsPlatform) or a file-name search (query); page with nextCursor as cursor. Pass `mediaAssetId` for one asset in full: poll it after an upload until status is 'ready' or 'failed'; it adds probe data, `fit` for every platform and format (which checks fail and why), `usedIn` (drafts and posts, with their state) and `deletable` (false while a post that will still go out uses it).

## Access and cost

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

## Input schema

```json
{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "kind": {
      "enum": [
        "image",
        "video"
      ],
      "type": "string"
    },
    "status": {
      "enum": [
        "uploading",
        "processing",
        "ready",
        "failed"
      ],
      "type": "string"
    },
    "fitsPlatform": {
      "enum": [
        "x",
        "linkedin",
        "threads",
        "bluesky",
        "instagram",
        "facebook",
        "tiktok",
        "youtube",
        "sandbox"
      ],
      "type": "string"
    },
    "query": {
      "maxLength": 200,
      "type": "string"
    },
    "limit": {
      "default": 60,
      "maximum": 200,
      "minimum": 1,
      "type": "integer"
    },
    "cursor": {
      "maxLength": 200,
      "type": "string"
    },
    "mediaAssetId": {
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "workspaceId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "mediaAssets": {
      "items": {
        "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"
      },
      "type": "array"
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "storage": {
      "additionalProperties": false,
      "properties": {
        "videos": {
          "enum": [
            "r2",
            "supabase"
          ],
          "type": "string"
        },
        "videoStandIn": {
          "type": "boolean"
        }
      },
      "required": [
        "videos",
        "videoStandIn"
      ],
      "type": "object"
    },
    "fit": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "platform": {
            "enum": [
              "x",
              "linkedin",
              "threads",
              "bluesky",
              "instagram",
              "facebook",
              "tiktok",
              "youtube",
              "sandbox"
            ],
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "fits": {
            "type": "boolean"
          },
          "summary": {
            "type": "string"
          },
          "formats": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "format": {
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "fits": {
                  "type": "boolean"
                },
                "errors": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "code": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "warnings": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "code": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "format",
                "label",
                "fits",
                "errors",
                "warnings"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "platform",
          "label",
          "fits",
          "summary",
          "formats"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "usedIn": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "pieceId": {
            "format": "uuid",
            "type": "string"
          },
          "pieceTitle": {
            "type": "string"
          },
          "postId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "channelAccountId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "platform": {
            "anyOf": [
              {
                "enum": [
                  "x",
                  "linkedin",
                  "threads",
                  "bluesky",
                  "instagram",
                  "facebook",
                  "tiktok",
                  "youtube",
                  "sandbox"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "anyOf": [
              {
                "enum": [
                  "draft",
                  "ready",
                  "awaiting_confirmation",
                  "scheduled",
                  "publishing",
                  "published",
                  "failed_retrying",
                  "needs_attention",
                  "failed",
                  "manual",
                  "removed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "scheduledAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "pieceId",
          "pieceTitle",
          "postId",
          "channelAccountId",
          "platform",
          "state",
          "scheduledAt"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "deletable": {
      "type": "boolean"
    }
  },
  "required": [
    "mediaAssets",
    "nextCursor",
    "storage"
  ],
  "type": "object"
}
```

## Errors

```json
[]
```

## Annotations

```json
{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true,
  "title": "List media"
}
```
