This commit is contained in:
2026-07-09 16:40:00 +03:00
parent 8fce57800f
commit 33da3cba1a
3 changed files with 75 additions and 166 deletions
+4 -13
View File
@@ -56,7 +56,8 @@ Clear stored credentials. No parameters.
#### `get_emails`
Get emails from a folder.
Get emails from a folder. Supports optional text search via
`query`/`queryScope`.
| Parameter | Type | Default | Description |
| ------------- | ------- | --------- | ----------------------------------------------------------------------------------- |
@@ -66,6 +67,8 @@ Get emails from a folder.
| `includeBody` | boolean | `false` | If `true`, fetches full email body |
| `unreadOnly` | boolean | `false` | Only unread emails |
| `idsOnly` | boolean | `false` | Return only IDs + dates + subjects (faster, higher limit) |
| `query` | string | — | Text to search for within the folder |
| `queryScope` | enum | `"all"` | Scope: `all`, `subject`, `body`, `from` (only when `query` is set) |
#### `get_email`
@@ -75,18 +78,6 @@ Get a single email with full body and details.
| --------- | ------ | -------- | ---------------------------- |
| `itemId` | string | yes | Exchange ItemId of the email |
#### `search_emails`
Search emails by text.
| Parameter | Type | Default | Description |
| ------------- | ------ | -------- | ------------------------------------------- |
| `query` | string | — | Text to search for |
| `folderId` | string | optional | Folder ID to limit search; omitted = all |
| `limit` | number | `10` | Max emails (max 50) |
| `offset` | number | `0` | Pagination offset |
| `searchScope` | enum | `"all"` | Scope: `all`, `subject`, `body`, `from` |
#### `mark_email_read`
Mark emails as read or unread.