Read DM messages
ig_get_messagesRead recent direct messages in one Instagram DM conversation, up to 20 newest first. Use a conversation ID from the conversation list to retrieve message history.
Instructions
Read the latest messages (up to 20, Instagram's limit) in one DM conversation, newest first. Get conversation IDs from ig_list_conversations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"conversation_id": "<conversation_id>"
},
"name": "ig_get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| conversation_id | Yes | ||
| response_format | No | 'markdown' for readable text (default), 'json' for structured data | markdown |