ecm_list_pieces
View summaries of mail pieces in an inbox, with options to filter unread items and paginate results for manageable review.
Instructions
List mail pieces in an inbox. Returns a summary of each piece (use ecm_get_piece for full details including media URLs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default: 1) | |
| inbox_id | Yes | The inbox ID to list pieces from | |
| per_page | No | Items per page (default: 10, max: 50 to avoid token limits) | |
| unread_only | No | Only return unread pieces |