Skip to content

Commit 8802be8

Browse files
committed
fix(gmail): correct legacy block access list and docs heading for edit_draft_v2
1 parent b4b3a13 commit 8802be8

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Draft emails using Gmail. Returns API-aligned fields only.
9090
| `threadId` | string | Gmail thread ID |
9191
| `labelIds` | array | Email labels |
9292

93-
### `gmail_edit_draft`
93+
### `gmail_edit_draft_v2`
9494

9595
Update an existing Gmail draft in place without deleting and recreating it.
9696

apps/sim/blocks/blocks/gmail.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function selectGmailToolId(params: Record<string, any>): string {
1717
case 'draft_gmail':
1818
return 'gmail_draft'
1919
case 'edit_draft_gmail':
20-
return 'gmail_edit_draft'
20+
return 'gmail_edit_draft_v2'
2121
case 'search_gmail':
2222
return 'gmail_search'
2323
case 'read_gmail':
@@ -432,6 +432,7 @@ Return ONLY the search query - no explanations, no extra text.`,
432432
'gmail_delete',
433433
'gmail_add_label',
434434
'gmail_remove_label',
435+
'gmail_edit_draft_v2',
435436
],
436437
config: {
437438
tool: selectGmailToolId,

apps/sim/tools/gmail/update_label.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import { GMAIL_API_BASE } from '@/tools/gmail/utils'
22
import type { ToolConfig } from '@/tools/types'
33

4+
/**
5+
* Tool-only (not exposed in the Gmail block UI). Mirrors the existing
6+
* `gmail_create_label_v2` / `gmail_delete_label_v2` / `gmail_list_labels_v2`
7+
* pattern — these are programmatic/agent-facing tools used by Mothership
8+
* and MCP, not visual workflow operations.
9+
*/
10+
411
interface GmailUpdateLabelParams {
512
accessToken: string
613
labelId: string

0 commit comments

Comments
 (0)