List photos and videos
list_mediaUse this when the user refers to photos or videos they made before ("the beach photo from last week", "my latest videos"), or to pick a photo to work with. Returns finished photos and videos, newest first, with their IDs, the prompt they were made from, links and dates. Narrow it with influencer_id, type, favorites_only, or search (words from the prompt, for example "beach" or "red dress"). Up to limit items per call; pass next_cursor back as cursor for older ones. Prompts in a list are shortened (prompt_truncated); to reuse or show a prompt, call again with ids set to those items' IDs, which returns them with their whole prompts. Photos and videos still being made aren't listed: use get_generation for those.
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": "list_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Photo or video IDs from an earlier list: returns just those, with their whole prompts. The other filters are ignored. | |
| type | No | all | |
| limit | No | ||
| cursor | No | next_cursor from the previous call. | |
| search | No | Words that appear in the prompt. | |
| influencer_id | No | Only this influencer's media (an influencer_id from list_influencers). | |
| favorites_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Present only on a refusal: the summary says why, and what the user can do. | |
| items | No | ||
| summary | Yes | ||
| error_code | No | Present only on a refusal. | |
| next_cursor | No |