get_thread
Fetch a specific Instagram DM thread and its messages by thread ID, with an optional limit on the number of messages returned.
Instructions
Get a specific thread with its messages.
Args: thread_id: ID of the thread to fetch. amount: Maximum number of messages to fetch (default: 20).
Returns: Thread object with thread_id, thread_title, users, is_group, and a messages array (message_id, sender, text, media_type, timestamp, ...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | ||
| thread_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||