get_attachments
Fetch attachments from a conversation, filter by mime type, and receive file paths to read or save.
Instructions
Get attachments (images, files, links) from a conversation. Filter by mime type (e.g. 'image' for photos, 'application/pdf' for PDFs). Returns file paths that can be read or saved.
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": "get_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max attachments to return (default 20) | |
| contact | No | Contact name, phone number, or email | |
| chat_guid | No | Chat GUID for direct lookup | |
| mime_filter | No | Filter by mime type prefix: 'image' for photos, 'video' for videos, 'application/pdf' for PDFs |