get_messages
Retrieve messages from Smartschool mailboxes with filters for inbox, sent, drafts, or trash. Search by keywords or sender, and control pagination and body content.
Instructions
Retrieve messages from the specified mailbox with filtering options.
Args: limit: Maximum number of messages to return (default: 15) offset: Number of messages to skip from the beginning (default: 0) box_type: Type of mailbox - "INBOX", "SENT", "DRAFT", "SCHEDULED", "TRASH" (default: "INBOX") search_query: Search in subject and body content (case-insensitive) sender_filter: Filter messages by sender name (partial match, case-insensitive) include_body: Whether to include full message body (default: False for performance)
Returns: Dictionary with messages list and pagination info.
Examples: - get_messages() -> First 15 inbox messages (headers only) - get_messages(search_query="homework") -> Messages containing "homework" - get_messages(sender_filter="teacher") -> Messages from senders containing "teacher" - get_messages(include_body=True) -> Full messages with body content
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| box_type | No | INBOX | |
| include_body | No | ||
| search_query | No | ||
| sender_filter | No |