List the media library
list_mediaThe media library (the Gallery page's files), newest first, one item per file: id, type (image or video), url and thumbnailUrl (signed links that expire in an hour; url is null once a published video was cleaned up), imageUrls for a carousel, fileName, size in bytes when known, caption, createdAt and the posts that use it (id, platform, status). Returns { items, nextCursor }: while nextCursor is not null, pass it back as cursor.
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 |
|---|---|---|---|
| type | No | Only this kind of file. | |
| limit | No | Posts to read per page, up to 100. Default 40. | |
| cursor | No | nextCursor from the previous page. | |
| organizationId | No | Which organization to act in: an id from list_organizations. Leave out for this connection's default organization. |