MCPcopy Create free account

hub / github.com/cloudflare/agentic-inbox / functions

Functions217 in github.com/cloudflare/agentic-inbox

↓ 16 callersMethodgetEmail
(id: string)
workers/durableObject/index.ts:439
↓ 15 callersFunctiongetMailboxStub
( env: Env, mailboxId: string, )
workers/lib/email-helpers.ts:23
↓ 12 callersFunctionmcpText
Wrap a plain result object into MCP content format.
workers/mcp/index.ts:27
↓ 11 callersMethodcreateEmail
( folder: string, email: EmailData, attachments: AttachmentData[], )
workers/durableObject/index.ts:821
↓ 11 callersFunctionget
(url: string, opts?: { params?: Record<string, string>; responseType?: string; signal?: AbortSignal })
app/services/api.ts:60
↓ 9 callersFunctiondefineTool
(def: { description: string; parameters: z.ZodType<any>; execute: (...args: any[]) => Promise<any>; })
workers/agent/index.ts:37
↓ 8 callersFunctionpost
(url: string, body?: unknown, opts?: { signal?: AbortSignal })
app/services/api.ts:69
↓ 8 callersFunctionsplitEmailList
(value?: string | null)
app/lib/utils.ts:39
↓ 7 callersFunctionstripHtmlToText
(html: string)
workers/lib/email-helpers.ts:182
↓ 7 callersFunctiontxn
* Wrap SQL in a transaction so multi-statement migrations are atomic. * * Without this, a migration like `1_initial_setup` (CREATE + INSERT + * CRE
workers/durableObject/migrations.ts:77
↓ 6 callersMethoddeleteEmail
(id: string)
workers/durableObject/index.ts:537
↓ 6 callersFunctionescapeHtml
(text: string)
app/lib/utils.ts:122
↓ 6 callersFunctionmcpResult
* Wrap a result that may contain an `error` field into MCP format, * automatically setting isError when appropriate.
workers/mcp/index.ts:47
↓ 6 callersFunctiontoEmailListValue
(addresses: string[])
app/lib/utils.ts:49
↓ 6 callersFunctionuseInvalidateEmailData
Invalidate both the email list and folder counts after any email mutation.
app/queries/emails.ts:97
↓ 6 callersFunctionverifyDraft
(ai: Ai, body: string)
workers/lib/ai.ts:122
↓ 5 callersMethodcheckSendRateLimit
* Check if the mailbox has exceeded the send rate limit. * Limits: 20 emails per hour, 100 per day per mailbox. * Returns null if under limit, or
workers/durableObject/index.ts:793
↓ 5 callersFunctiongenerateMessageId
(fromDomain: string)
workers/lib/email-helpers.ts:85
↓ 5 callersFunctionsendEmail
( binding: SendEmail, params: SendEmailParams, )
workers/email-sender.ts:40
↓ 5 callersFunctionuseMailbox
(mailboxId: string | undefined)
app/queries/mailboxes.ts:17
↓ 4 callersFunctionboolQuery
(c: AppContext, key: string)
workers/index.ts:60
↓ 4 callersFunctionescapeHtml
(text: string)
workers/lib/email-helpers.ts:156
↓ 4 callersMethodgetEmails
(options: GetEmailsOptions = {})
workers/durableObject/index.ts:114
↓ 4 callersFunctionhasUnread
(email: Email)
app/routes/email-list.tsx:234
↓ 4 callersFunctionintQuery
(c: AppContext, key: string)
workers/index.ts:53
↓ 4 callersFunctionrequest
( url: string, options: RequestInit = {}, )
app/services/api.ts:21
↓ 4 callersFunctionsafeParse
Parse safely — returns null on invalid dates instead of NaN-date.
shared/dates.ts:14
↓ 4 callersFunctiontextToHtml
(text: string)
workers/lib/email-helpers.ts:171
↓ 3 callersFunctionbuildThreadingHeaders
( originalMsgId: string, references: string[], )
workers/lib/email-helpers.ts:121
↓ 3 callersFunctiondel
(url: string)
app/services/api.ts:84
↓ 3 callersFunctiongetPrefixedSubject
(subject: string, prefix: "Re" | "Fwd")
app/hooks/useComposeForm.ts:55
↓ 3 callersFunctionhandleSend
()
app/components/AgentPanel.tsx:324
↓ 3 callersFunctionhighlightTerms
(text: string, query: string)
app/routes/search-results.tsx:16
↓ 3 callersMethodmarkThreadRead
(threadId: string)
workers/durableObject/index.ts:529
↓ 3 callersMethodmoveEmail
(id: string, folderId: string)
workers/durableObject/index.ts:634
↓ 3 callersFunctionput
(url: string, body?: unknown)
app/services/api.ts:77
↓ 3 callersMethodsearchEmails
(options: SearchFilterOptions & { page?: number; limit?: number })
workers/durableObject/index.ts:697
↓ 3 callersFunctionstoreAttachments
( bucket: Env["BUCKET"], emailId: string, attachments?: { content: string; filename: string; type: st
workers/lib/attachments.ts:24
↓ 3 callersFunctionstripHtml
(html: string)
app/lib/utils.ts:77
↓ 3 callersMethodupdateEmail
( id: string, { read, starred }: { read?: boolean; starred?: boolean }, )
workers/durableObject/index.ts:504
↓ 3 callersFunctionuseDeleteEmail
()
app/queries/emails.ts:207
↓ 3 callersFunctionuseFolders
(mailboxId: string | undefined)
app/queries/folders.ts:10
↓ 3 callersFunctionuseUpdateEmail
()
app/queries/emails.ts:119
↓ 3 callersFunctionvalidateSender
( to: string | string[], from: string | { email: string; name: string }, mailboxId: string, )
workers/lib/email-helpers.ts:53
↓ 2 callersMethod#buildSearchConditions
* Build WHERE conditions and params for search queries. * Shared between searchEmails and countSearchResults.
workers/durableObject/index.ts:658
↓ 2 callersFunctionappendUniqueAddress
( addresses: string[], seen: Set<string>, address: string, exclude?: string, )
app/hooks/useComposeForm.ts:21
↓ 2 callersFunctionbuildQuotedReplyBlock
( dateStr: string | undefined, sender: string, body: string, )
app/lib/utils.ts:154
↓ 2 callersFunctionbuildQuotedReplyBlock
(original: { date?: string; sender?: string; body?: string; })
workers/lib/email-helpers.ts:201
↓ 2 callersFunctionbuildReferencesChain
(original: EmailFull)
workers/lib/email-helpers.ts:99
↓ 2 callersFunctioncreateEmailTools
(env: Env, mailboxId: string)
workers/agent/index.ts:110
↓ 2 callersMethodcreateFolder
(id: string, name: string, is_deletable: number = 1)
workers/durableObject/index.ts:589
↓ 2 callersMethoddeleteFolder
(id: string)
workers/durableObject/index.ts:615
↓ 2 callersFunctionextractMsgId
(s: string)
workers/index.ts:383
↓ 2 callersFunctionformatBytes
(bytes: number, decimals = 1)
app/lib/utils.ts:27
↓ 2 callersFunctionformatDetailDate
(dateStr: string)
shared/dates.ts:58
↓ 2 callersFunctionformatListDate
(dateStr: string)
shared/dates.ts:30
↓ 2 callersMethodgetFolders
()
workers/durableObject/index.ts:575
↓ 2 callersFunctiongetSnippetText
( snippet?: string | null, maxLength = 100, )
app/lib/utils.ts:98
↓ 2 callersFunctiongetSystemPrompt
* Fetch the custom system prompt for a mailbox from its R2 settings. * Falls back to DEFAULT_SYSTEM_PROMPT if none is configured.
workers/agent/index.ts:94
↓ 2 callersMethodgetThreadEmails
* Fetch all emails in a thread with full bodies and attachments in * two queries (one for emails, one for attachments) instead of * N+1 individual
workers/durableObject/index.ts:467
↓ 2 callersFunctiongetToolNameFromPart
(part: UIMessage["parts"][number])
app/components/AgentPanel.tsx:100
↓ 2 callersFunctionhandleEditDraft
(draftMsg?: Email)
app/components/EmailPanel.tsx:94
↓ 2 callersFunctionhandleRowClick
(email: Email)
app/routes/search-results.tsx:67
↓ 2 callersFunctionhandleRowClick
(email: Email)
app/routes/email-list.tsx:241
↓ 2 callersFunctionhandleSendDraft
(draftMsg?: Email)
app/components/EmailPanel.tsx:109
↓ 2 callersFunctionisPromptInjection
(ai: Ai, bodyHtml: string | null | undefined)
workers/lib/ai.ts:24
↓ 2 callersFunctionlistMailboxes
( bucket: R2Bucket, )
workers/lib/email-helpers.ts:37
↓ 2 callersFunctionmakeQueryClient
()
app/root.tsx:28
↓ 2 callersFunctionnormalizeDate
* Normalize a date string to ISO format. Accepts YYYY-MM-DD or various * Date-parseable strings.
app/lib/search-parser.ts:117
↓ 2 callersFunctionnormalizeWhitespace
(s: string)
workers/lib/ai.ts:191
↓ 2 callersFunctionresolveOriginalEmail
( stub: DurableObjectStub<MailboxDO>, email: EmailFull, )
workers/lib/email-helpers.ts:139
↓ 2 callersFunctionrewriteInlineImages
( body: string, mailboxId: string, emailId: string, attachments?: { id: string; content_id?: string | null
app/lib/utils.ts:178
↓ 2 callersFunctiontoolDraftEmail
( env: Env, mailboxId: string, params: { to: string; subject: string; body: string; isPlainText?: b
workers/lib/tools.ts:198
↓ 2 callersFunctiontoolDraftReply
( env: Env, mailboxId: string, params: { originalEmailId: string; to: string; subject: string; body
workers/lib/tools.ts:119
↓ 2 callersFunctiontoolGetEmail
( env: Env, mailboxId: string, emailId: string, )
workers/lib/tools.ts:71
↓ 2 callersFunctiontoolGetThread
( env: Env, mailboxId: string, threadId: string, )
workers/lib/tools.ts:84
↓ 2 callersFunctiontoolListEmails
( env: Env, mailboxId: string, params: { folder: string; limit: number; page: number }, )
workers/lib/tools.ts:54
↓ 2 callersFunctiontoolMarkEmailRead
( env: Env, mailboxId: string, emailId: string, read: boolean, )
workers/lib/tools.ts:330
↓ 2 callersFunctiontoolMoveEmail
( env: Env, mailboxId: string, emailId: string, folderId: string, )
workers/lib/tools.ts:343
↓ 2 callersFunctiontoolSearchEmails
( env: Env, mailboxId: string, params: { query: string; folder?: string }, )
workers/lib/tools.ts:95
↓ 2 callersMethodupdateFolder
(id: string, name: string)
workers/durableObject/index.ts:605
↓ 2 callersFunctionuseComposeForm
(mailboxId?: string, _folder?: string)
app/hooks/useComposeForm.ts:165
↓ 2 callersFunctionuseReplyToEmail
()
app/queries/emails.ts:255
↓ 2 callersFunctionuseSendEmail
()
app/queries/emails.ts:107
↓ 1 callersFunctionapplyMigrations
( sql: SqlStorage, migrations: Migration[], storage?: DurableObjectStorage, )
workers/durableObject/migrations.ts:17
↓ 1 callersFunctionbuildForwardBody
( original: NonNullable<ReturnType<typeof useUIStore.getState>["composeOptions"]["originalEmail"]>, sigBlock
app/hooks/useComposeForm.ts:62
↓ 1 callersFunctionbuildInitialComposeFields
( composeOptions: ReturnType<typeof useUIStore.getState>["composeOptions"], mailboxEmail: string | undefined
app/hooks/useComposeForm.ts:107
↓ 1 callersFunctionbuildReplyAllFields
( original: NonNullable<ReturnType<typeof useUIStore.getState>["composeOptions"]["originalEmail"]>, selfAddr
app/hooks/useComposeForm.ts:73
↓ 1 callersFunctionclearSearch
()
app/components/Header.tsx:36
↓ 1 callersMethodcountEmails
* Count total emails matching the given filters (for pagination).
workers/durableObject/index.ts:182
↓ 1 callersMethodcountSearchResults
* Count total search results matching the given filters (for pagination).
workers/durableObject/index.ts:728
↓ 1 callersMethodcountThreadedEmails
* Count threaded conversations in a folder (for pagination). * Returns the number of conversation groups, not individual emails.
workers/durableObject/index.ts:392
↓ 1 callersFunctiondecodeHtmlEntities
(text: string)
app/lib/utils.ts:81
↓ 1 callersFunctiondownloadFile
(url: string, filename: string)
app/lib/utils.ts:211
↓ 1 callersMethodfindThreadBySubject
(subject: string, senderAddress?: string)
workers/durableObject/index.ts:742
↓ 1 callersFunctionfolderDisplayName
(name: string | null | undefined)
app/routes/search-results.tsx:68
↓ 1 callersFunctionformatParticipants
(email: Email)
app/routes/email-list.tsx:259
↓ 1 callersFunctionformatShortDate
(dateStr: string)
shared/dates.ts:75
↓ 1 callersFunctiongetAccessUrls
(teamDomain: string)
workers/app.ts:31
↓ 1 callersMethodgetAttachment
(id: string)
workers/durableObject/index.ts:563
next →1–100 of 217, ranked by callers