get_recent_context
Retrieve recent chat messages for a group or friend. Returns buffered message objects with sender info, content, timestamps, and image URLs for reading context without side effects.
Instructions
Retrieve recent messages for one group or friend from the in-memory buffer.
Returns buffered messages (backfill from history + real-time via WebSocket) as raw message objects with sender info, content, timestamps, and image URLs. This is the primary tool for reading chat context. For multiple targets at once, use batch_get_recent_context instead (fewer API calls). To archive old messages and free buffer space, use compress_context.
Messages older than the buffer window are lost. Call compress_context periodically to preserve important conversations.
Read-only. No side effects on the chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| target_type | No | group | |
| limit | No |