count assets
assets_countCount accessible organization assets by project, user, search query and media type without returning records. Use it to get only the total number of matching, non-deleted assets.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "assets_count"
}
}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. | |
| audioSource | No | Keep only audio from this source: `tts` for saved text-to-speech output, `upload` for every other audio asset. Video and image assets are unaffected. | |
| searchQuery | No | Case-insensitive text matched anywhere in the asset name. |