get_folder_with_messages
Retrieve a folder and its direct messages by folder ID. Returns folder details with messages at that level, excluding nested subfolders.
Instructions
Get a folder together with the messages stored directly in it.
USE WHEN: Reading a folder’s contents. Only messages at that folder’s own level are returned — nested folders are not walked.
USE INSTEAD: get_folder for structure and counts without message bodies. list_messages with folder_id when you need date filtering or paging, which this tool does not support.
FIRST: id comes from get_root_folders (field results[].id) — call it first if you don't have one.
EXAMPLE: {"id":"folder-abc"}
RETURNS: {folder: {...}, messages: [{...}]}.
NARROW: pass response_fields ["folder.id","folder.name","messages"] unless you need more — the full payload is much larger.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| response_fields | No | Dot-path allowlist to shrink the response, e.g. ["results.id","total"]. Omit for the full payload. |