get_message_context
Retrieve surrounding messages from an iMessage conversation to understand context around a specific message, providing chronological order with the target marked.
Instructions
Get messages surrounding a specific message in the same conversation.
Use this to get context around a message found via search. Returns messages from the same chat/thread, ordered chronologically, with the target message marked.
Args: rowid: The rowid of the message to get context for before: Number of messages to fetch before the target (default: 5) after: Number of messages to fetch after the target (default: 5)
Returns: Dictionary with: - messages: List of messages in chronological order - target_index: Index of the target message in the list - chat_id: The chat ID for the conversation - chat_identifier: The chat identifier (phone/email/group)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rowid | Yes | ||
| before | No | ||
| after | No |