list_media
Lists WhatsApp media attachments such as images, videos, audio, documents, and PDFs; verifies local file existence and returns sizes, captions, and MIME types.
Instructions
List media attachments (images, PDFs, documents, audio clips, videos) from WhatsApp storage. Verifies whether the media files exist locally on disk and returns sizes, captions, and MIME types.
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 |
|---|---|---|---|
| limit | No | Maximum number of media items to return (default 50, max 200). | |
| offset | No | Number of records to skip for pagination. | |
| chat_id | No | Filter media attachments to a specific chat by JID, phone number, or contact name. | |
| media_type | No | Filter media type: 'image', 'video', 'audio', 'document', or 'any_media'. |