You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0ea25f4
Browse filesBrowse the repository at this point in the historyBrowse files
* fix(integrations): sweep2 v3 — read the mapper operation from the tool-call context and validate integrations against vendor specs
* chore: regenerate tool metadata, docs and ratchet baselines
* refactor: simplify and clean up the sweep changes
* fix(integrations): address v3 review findings
- twilio: trim account SID and From number once, mark sender/recipient outputs nullable, make From optional on the block when a Messaging Service is used
- discord: truncate fractional limits, reject more than one message cursor, mark nullable outputs
- telegram: only keep spoiler spans, drop NUL so input cannot alias a protected segment, mark optional animation fields, fall back to model poll options when the stored field is blank
- resend: clamp list limit to 1-100, sentence covers segment or audience, nullable broadcast outputs
- mailgun: clamp events limit to 300
- twilio voice: nextPageToken nullable
- fix test-types errors in twilio and whatsapp tests
* fix(integrations): clamp twilio voice page size, mark discord user avatar nullable
* fix(discord): match get_user output nullability to the User object
* chore: regenerate tool metadata and mapper-operation baseline after rebase
Copy file name to clipboardExpand all lines: apps/docs/content/docs/integrations/discord.mdx
+31-27Lines changed: 31 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,14 +40,14 @@ Send a message to a Discord channel
40
40
| --------- | ---- | -------- | ----------- |
41
41
|`channelId`| string | Yes | The Discord channel ID to send the message to, e.g., 123456789012345678 |
42
42
|`content`| string | No | The text content of the message |
43
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
43
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
44
44
|`files`| file[]| No | Files to attach to the message |
45
45
46
46
#### Output
47
47
48
48
| Parameter | Type | Description |
49
49
| --------- | ---- | ----------- |
50
-
|`message`| string |Success or error message |
50
+
|`message`| string |Content of the sent message |
51
51
|`files`| file[]| Files attached to the message |
52
52
|`data`| object | Discord message data |
53
53
| ↳ `id`| string | Message ID |
@@ -80,6 +80,9 @@ Retrieve messages from a Discord channel
80
80
| --------- | ---- | -------- | ----------- |
81
81
|`channelId`| string | Yes | The Discord channel ID to retrieve messages from, e.g., 123456789012345678 |
82
82
|`limit`| number | No | Maximum number of messages to retrieve \(default: 10, max: 100\)|
83
+
|`before`| string | No | Return messages before this message ID, to page back through history. Use only one of before, after, or around. |
84
+
|`after`| string | No | Return messages after this message ID, e.g. to read only messages newer than the last one seen |
85
+
|`around`| string | No | Return messages around this message ID |
83
86
84
87
#### Output
85
88
@@ -157,11 +160,12 @@ Retrieve information about a Discord user
157
160
| ↳ `id`| string | User ID |
158
161
| ↳ `username`| string | Username |
159
162
| ↳ `discriminator`| string | User discriminator \(4-digit number\)|
163
+
| ↳ `global_name`| string | User display name, if set |
160
164
| ↳ `avatar`| string | User avatar hash |
161
165
| ↳ `bot`| boolean | Whether user is a bot |
162
166
| ↳ `system`| boolean | Whether user is a system user |
163
-
| ↳ `email`| string | User email\(if available\)|
164
-
| ↳ `verified`| boolean | Whether user email is verified |
167
+
| ↳ `email`| string | User email. Not returned for a user looked up by ID|
168
+
| ↳ `verified`| boolean | Whether the user email is verified. Not returned for a user looked up by ID|
165
169
166
170
</ReferenceDetails>
167
171
@@ -178,7 +182,7 @@ Edit an existing message in a Discord channel
178
182
|`channelId`| string | Yes | The Discord channel ID containing the message, e.g., 123456789012345678 |
179
183
|`messageId`| string | Yes | The ID of the message to edit, e.g., 123456789012345678 |
180
184
|`content`| string | No | The new text content for the message |
181
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
185
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
182
186
183
187
#### Output
184
188
@@ -205,7 +209,7 @@ Delete a message from a Discord channel
205
209
| --------- | ---- | -------- | ----------- |
206
210
|`channelId`| string | Yes | The Discord channel ID containing the message, e.g., 123456789012345678 |
207
211
|`messageId`| string | Yes | The ID of the message to delete, e.g., 123456789012345678 |
208
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
212
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
209
213
210
214
#### Output
211
215
@@ -227,7 +231,7 @@ Delete 2-100 messages from a Discord channel in a single request
227
231
| --------- | ---- | -------- | ----------- |
228
232
|`channelId`| string | Yes | The Discord channel ID to delete messages from, e.g., 123456789012345678 |
229
233
|`messageIds`| json | Yes | Array of 2-100 message IDs to delete. Messages older than 2 weeks cannot be bulk deleted. |
230
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
234
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
231
235
232
236
#### Output
233
237
@@ -250,7 +254,7 @@ Add a reaction emoji to a Discord message
250
254
|`channelId`| string | Yes | The Discord channel ID containing the message, e.g., 123456789012345678 |
251
255
|`messageId`| string | Yes | The ID of the message to react to, e.g., 123456789012345678 |
252
256
|`emoji`| string | Yes | The emoji to react with \(unicode emoji or custom emoji in name:id format\)|
253
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
257
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
254
258
255
259
#### Output
256
260
@@ -274,7 +278,7 @@ Remove a reaction from a Discord message
274
278
|`messageId`| string | Yes | The ID of the message with the reaction, e.g., 123456789012345678 |
275
279
|`emoji`| string | Yes | The emoji to remove \(unicode emoji or custom emoji in name:id format\)|
276
280
|`userId`| string | No | The user ID whose reaction to remove \(omit to remove bot's own reaction\), e.g., 123456789012345678 |
277
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
281
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
278
282
279
283
#### Output
280
284
@@ -296,7 +300,7 @@ Pin a message in a Discord channel
296
300
| --------- | ---- | -------- | ----------- |
297
301
|`channelId`| string | Yes | The Discord channel ID containing the message, e.g., 123456789012345678 |
298
302
|`messageId`| string | Yes | The ID of the message to pin, e.g., 123456789012345678 |
299
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
303
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
300
304
301
305
#### Output
302
306
@@ -318,7 +322,7 @@ Unpin a message in a Discord channel
318
322
| --------- | ---- | -------- | ----------- |
319
323
|`channelId`| string | Yes | The Discord channel ID containing the message, e.g., 123456789012345678 |
320
324
|`messageId`| string | Yes | The ID of the message to unpin, e.g., 123456789012345678 |
321
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
325
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
322
326
323
327
#### Output
324
328
@@ -375,7 +379,7 @@ Create a thread in a Discord channel
375
379
|`messageId`| string | No | The message ID to create a thread from \(if creating from existing message\), e.g., 123456789012345678 |
376
380
|`autoArchiveDuration`| number | No | Duration in minutes to auto-archive the thread \(60, 1440, 4320, 10080\)|
377
381
|`isPublic`| boolean | No | Whether the standalone thread is public \(visible to everyone in the channel\) or private. Ignored when creating a thread from an existing message, which always inherits the parent channel visibility. Defaults to public if omitted. |
378
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
382
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
379
383
380
384
#### Output
381
385
@@ -402,7 +406,7 @@ Join a thread in Discord
402
406
| Parameter | Type | Required | Description |
403
407
| --------- | ---- | -------- | ----------- |
404
408
|`threadId`| string | Yes | The thread ID to join, e.g., 123456789012345678 |
405
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
409
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
406
410
407
411
#### Output
408
412
@@ -423,7 +427,7 @@ Leave a thread in Discord
423
427
| Parameter | Type | Required | Description |
424
428
| --------- | ---- | -------- | ----------- |
425
429
|`threadId`| string | Yes | The thread ID to leave, e.g., 123456789012345678 |
426
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
430
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
427
431
428
432
#### Output
429
433
@@ -445,7 +449,7 @@ Archive or unarchive a thread in Discord
445
449
| --------- | ---- | -------- | ----------- |
446
450
|`threadId`| string | Yes | The thread ID to archive/unarchive, e.g., 123456789012345678 |
447
451
|`archived`| boolean | Yes | Whether to archive \(true\) or unarchive \(false\) the thread |
448
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
452
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
449
453
450
454
#### Output
451
455
@@ -470,8 +474,8 @@ Create a new channel in a Discord server
470
474
| --------- | ---- | -------- | ----------- |
471
475
|`serverId`| string | Yes | The Discord server ID \(guild ID\), e.g., 123456789012345678 |
472
476
|`name`| string | Yes | The name of the channel \(1-100 characters\)|
473
-
|`type`| number | No | Channel type \(0=text, 2=voice, 4=category, 5=announcement, 13=stage\)|
474
-
|`topic`| string | No | Channel topic \(0-1024 characters\)|
477
+
|`type`| number | No | Channel type \(0=text, 2=voice, 4=category, 5=announcement, 13=stage, 15=forum\)|
478
+
|`topic`| string | No | Channel topic \(up to 1024 characters for text channels, 4096 for forum channels\)|
475
479
|`parentId`| string | No | Parent category ID for the channel, e.g., 123456789012345678 |
476
480
477
481
#### Output
@@ -500,7 +504,7 @@ Update a Discord channel
500
504
|`channelId`| string | Yes | The Discord channel ID to update, e.g., 123456789012345678 |
501
505
|`name`| string | No | The new name for the channel |
502
506
|`topic`| string | No | The new topic for the channel |
503
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
507
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
504
508
505
509
#### Output
506
510
@@ -526,7 +530,7 @@ Delete a Discord channel
526
530
| Parameter | Type | Required | Description |
527
531
| --------- | ---- | -------- | ----------- |
528
532
|`channelId`| string | Yes | The Discord channel ID to delete, e.g., 123456789012345678 |
529
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
533
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
530
534
531
535
#### Output
532
536
@@ -552,7 +556,7 @@ Get information about a Discord channel
552
556
| Parameter | Type | Required | Description |
553
557
| --------- | ---- | -------- | ----------- |
554
558
|`channelId`| string | Yes | The Discord channel ID to retrieve, e.g., 123456789012345678 |
555
-
|`serverId`| string |Yes| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
559
+
|`serverId`| string |No| The Discord server ID \(guild ID\), e.g., 123456789012345678 |
556
560
557
561
#### Output
558
562
@@ -884,7 +888,7 @@ Create an invite link for a Discord channel
884
888
|`maxAge`| number | No | Duration of invite in seconds \(0 = never expires, default 86400\)|
885
889
|`maxUses`| number | No | Max number of uses \(0 = unlimited, default 0\)|
Copy file name to clipboardExpand all lines: apps/docs/content/docs/integrations/sendgrid.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -331,15 +331,15 @@ Get a specific template by ID from SendGrid
331
331
332
332
### SendGrid List Templates
333
333
334
-
Get all email templates from SendGrid
334
+
List email templates from SendGrid. Returns legacy templates only unless generations includes dynamic
335
335
336
336
<ReferenceDetails>
337
337
338
338
#### Input
339
339
340
340
| Parameter | Type | Required | Description |
341
341
| --------- | ---- | -------- | ----------- |
342
-
|`generations`| string | No |Filter by generation \(legacy, dynamic, or both\)|
342
+
|`generations`| string | No |Template generations to return: legacy, dynamic, or legacy,dynamic \(default when omitted: legacy only\)|
343
343
|`pageSize`| number | No | Number of templates to return per page \(default: 20, max: 200\). When paginating with pageToken, pass the same pageSize used on the first request to keep page boundaries consistent. |
344
344
|`pageToken`| string | No | Page token from a previous response \(nextPageToken\) to fetch the next page |
0 commit comments