Skip to content

Commit 0bd480c

Browse files
Adam GoughAdam Gough
authored andcommitted
improvement: added draft operation
1 parent 1afdeed commit 0bd480c

File tree

1 file changed

+13
-25
lines changed

1 file changed

+13
-25
lines changed

apps/docs/content/docs/tools/gmail.mdx

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -79,50 +79,38 @@ Send emails using Gmail
7979
| `threadId` | string |
8080
| `labelIds` | string |
8181

82-
### `gmail_read`
82+
### `gmail_draft`
8383

84-
Read emails from Gmail
84+
Draft emails using Gmail
8585

8686
#### Input
8787

8888
| Parameter | Type | Required | Description |
8989
| --------- | ---- | -------- | ----------- |
9090
| `accessToken` | string | Yes | Access token for Gmail API |
91-
| `messageId` | string | No | ID of the message to read |
92-
| `folder` | string | No | Folder/label to read emails from |
93-
| `unreadOnly` | boolean | No | Only retrieve unread messages |
94-
| `maxResults` | number | No | Maximum number of messages to retrieve \(default: 1, max: 10\) |
91+
| `to` | string | Yes | Recipient email address |
92+
| `subject` | string | Yes | Email subject |
93+
| `body` | string | Yes | Email body content |
9594

9695
#### Output
9796

9897
| Parameter | Type |
9998
| --------- | ---- |
10099
| `content` | string |
101100
| `metadata` | string |
102-
103-
### `gmail_search`
104-
105-
Search emails in Gmail
106-
107-
#### Input
108-
109-
| Parameter | Type | Required | Description |
110-
| --------- | ---- | -------- | ----------- |
111-
| `accessToken` | string | Yes | Access token for Gmail API |
112-
| `query` | string | Yes | Search query for emails |
113-
| `maxResults` | number | No | Maximum number of results to return |
114-
115-
#### Output
116-
117-
| Parameter | Type |
118-
| --------- | ---- |
119-
| `content` | string |
101+
| `message` | string |
102+
| `threadId` | string |
103+
| `labelIds` | string |
120104

121105

122106

123107
## Block Configuration
124108

125-
No configuration parameters required.
109+
### Input
110+
111+
| Parameter | Type | Required | Description |
112+
| --------- | ---- | -------- | ----------- |
113+
| `operation` | string | Yes | Operation |
126114

127115

128116

0 commit comments

Comments
 (0)