count assets
assets_countCount accessible organization assets that match project, user, search text, or media type filters and exclude deleted ones; returns only the total number.
Instructions
Count the assets you can access in the current organization that match projectId, userId, searchQuery and types, the same filters as assets_list; filters combine, and deleted assets are not counted. Use it when you only need how many; use assets_list to see, pick or page through assets. Returns a bare number, not asset records. Omit sortBy, limit and cursor: they do not change the count, but they are still validated, so a limit outside 1 to 100 fails the call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | No effect on the count; omit it. If sent, it must be an integer from 1 to 100 or the call fails validation. | |
| types | No | Only these media types: VIDEO, AUDIO or IMAGE, as one value or a list; an asset of any listed type matches. | |
| cursor | No | No effect on the count; omit it. | |
| sortBy | No | No effect on the count; omit it. | |
| userId | No | Only assets created by this user: a user UUID. | |
| projectId | No | Only assets attached to this project: a project UUID from projects_list or projects_create. | |
| searchQuery | No | Case-insensitive text matched anywhere in the asset name. |