List media files
list_mediaList the organization's media library, newest first. It holds images and videos, which posts publish, and audio files and PDF documents, which are there for chat (inbox replies and flow steps) and which a post refuses. Check each file's mimetype, and use the id of an image or a video as a mediaId when creating or updating a post.
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 |
|---|---|---|---|
| page | No | Page number, 1-based (default 1) | |
| limit | No | Page size (max 100, default 50) | |
| organizationId | No | Organization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| files | No | ||
| limit | No | ||
| total | No | ||
| totalPages | No | ||
| storageUsed | No | Bytes | |
| storageQuota | No | Bytes |