Yolk SDK
Integrations

Connectors catalog

Built-in connector modules, credential slots, config keys, and action ids.

Connectors are typed external API actions. Use them directly or adapt them into agent tools with @yolk-sdk/connectors/agent.

Summary

ConnectorImportCredential slotsConfig keysCapabilities
Afloat@yolk-sdk/connectors/afloatAfloatApiKeyCredentialSlotnoneafloat.mcp_auth
Dropbox@yolk-sdk/connectors/dropboxDropbox OAuth slotsnonemetadata + file-management + host download
Generic email@yolk-sdk/connectors/emailincoming and SMTP credential slotsincoming/SMTP protocol, host, port, securitylist, get, draft, send, IMAP message state
Figma@yolk-sdk/connectors/figmaFigmaOAuthCredentialSlotnonefigma.mcp_auth
Fortnox@yolk-sdk/connectors/fortnoxFortnox OAuth slotsnonecompany, customers, invoices, suppliers, articles, prices, cost centers, payments, offers, print, inbox, settings, profile
GitHub@yolk-sdk/connectors/githubGithubTokenSlot, GithubUploadTokenSlotowner, repoissue, PR, review, merge, repo context actions
Google@yolk-sdk/connectors/googleGoogle OAuth slotsnoneGmail + Calendar + Drive actions
Kie@yolk-sdk/connectors/kieKieApiKeySlotnoneimage + video generation tasks, task status
LinkedIn search@yolk-sdk/connectors/linkedin-searchExaApiKeySlot, EnrichLayerApiKeySlotnonesearch, profile, email
Microsoft@yolk-sdk/connectors/microsoftMicrosoft OAuth slotsmailboxAccessMode, oneDriveAccessMode optionalOutlook, OneDrive, SharePoint sites, and Teams through Graph
Notion@yolk-sdk/connectors/notionNotionApiTokenSlotnoneNotion workspace/content actions
Cloudflare R2@yolk-sdk/connectors/r2-storageR2AccessKeyIdSlot, R2SecretAccessKeySlotendpoint, bucket, publicUrl optionalpresigned upload URL
Telegram@yolk-sdk/connectors/telegramTelegramBotTokenSlotchatIdsend, validate
Todoist@yolk-sdk/connectors/todoistTodoistApiTokenSlotnoneproject/task/label actions

Input numbers

Number inputs are integers or finite numbers, so tool schemas never offer the non-finite values that tool arguments reject. Counts and page sizes are integers of at least 1, and some have upper bounds. For example, Gmail and Google Calendar maxResults and LinkedIn search numResults have none (Gmail and Calendar clamp larger values), Notion pageSize is at most 100, which Notion enforces, and Todoist limit is at most 200, like its comment list. Todoist priority is an integer from 1 to 4 and duration an integer of at least 1. Google Drive, Dropbox, generic email and Fortnox page sizes keep their existing bounds. A value outside an input's bounds fails as a validation error before any request.

Afloat

Use Afloat when you want to turn a host-owned Afloat API key into remote MCP connection data. The connector returns the canonical endpoint and required MCP 2026-07-28 protocol version. Keep afloat.mcp_auth server-side; hosts should discover tools through @yolk-sdk/mcp/client and own agent access, approval, and file-handling policy.

Action idWhat it does
afloat.mcp_authbuilds Afloat remote MCP server URL, protocol version, and API key

Figma

Use Figma when you want to turn host-owned Figma OAuth credentials into remote MCP auth data.

Return optional refreshToken, clientId, and clientSecret from the host's runtime OAuthCredential; never place them in persisted integration config.

Action idWhat it does
figma.mcp_authbuilds Figma remote MCP server URL, tokens, and optional MCP client info

Fortnox

FortnoxConnector exposes 102 actions (51 read, 32 write, 19 destructive). Deletes, payment bookkeeping, creating a voucher, and offer lifecycle actions are destructive because the Fortnox API cannot undo them. Sending, booking, cancelling, or crediting a customer invoice is not exposed and must remain separately approval-gated by the host. The core record actions:

Action idWhat it does
fortnox.get_company_informationread company information
fortnox.list_customers / fortnox.get_customerlist or retrieve customers
fortnox.create_customer / fortnox.update_customercreate or update customers
fortnox.list_invoices / fortnox.get_invoicelist or retrieve customer invoices and available rows
fortnox.create_invoice / fortnox.update_invoicecreate or update customer invoices
fortnox.list_suppliers / fortnox.get_supplierlist or retrieve suppliers
fortnox.list_supplier_invoices / fortnox.get_supplier_invoicelist or retrieve supplier invoices by GivenNumber
fortnox.list_supplier_invoice_fileslist archive file IDs connected to a supplier invoice

All resource-scoped OAuth slots share fortnox.oauth. Required record scope hints are companyinformation, customer, invoice, supplier, and supplierinvoice. Opt-in file slots are FortnoxConnectFileOAuthCredentialSlot (connectfile) and FortnoxArchiveOAuthCredentialSlot (archive); they are not included in FortnoxCombinedOAuthCredentialSlot. Nine more opt-in resource slots, also outside the combined slot, cover articles (article), price lists and prices (price), cost centers (costcenter), payments (payment), offers (offer), print templates (print), the inbox (inbox), company settings and registers (settings), and the token's user profile (profile), and bookkeeping covers financial years, accounts, voucher series, vouchers, and SIE files; see Read and write Fortnox records for their actions. Fortnox scopes grant read and write; action metadata distinguishes reads, writes, and destructive actions. Hosts provide HTTP and current Fortnox OAuth credentials, with no integration config keys.

List actions support page/limit, one resource-specific search pair, and global selection fields. They return runtime Chunks and normalized pagination. Resource fields retain provider spelling and monetary types. Create inputs require Name for customers or CustomerNumber for invoices; Fortnox assigns the corresponding number. Update inputs carry CustomerNumber or DocumentNumber. See Read and write Fortnox records for setup, inputs, selected fields, consent limitations, and failure handling.

Dropbox

Dropbox exports DropboxOAuthCredentialSlot, action-scoped DropboxMetadataReadOAuthCredentialSlot, DropboxContentReadOAuthCredentialSlot, and DropboxContentWriteOAuthCredentialSlot, plus DropboxCombinedOAuthCredentialSlot. Every slot uses the same dropbox.oauth binding id. Metadata actions request files.metadata.read; file-management actions request files.content.write; the host-only download helper requests files.content.read. The combined slot hints all three.

Action idWhat it does
dropbox.list_folderlist a folder or begin a recursive listing
dropbox.list_folder_continuecontinue a folder listing from its cursor
dropbox.searchsearch file and folder metadata
dropbox.search_continuecontinue a search from its cursor
dropbox.get_metadataget file, folder, or deleted-entry metadata
dropbox.create_foldercreate a folder
dropbox.movemove a file or folder
dropbox.copycopy a file or folder
dropbox.deletedelete a file or folder

Use path: '' or omit path with dropbox.list_folder to address the Dropbox API root. Continue while hasMore is true. File metadata outputs use camelCase fields and a normalized type: 'file' | 'folder' | 'deleted' discriminant.

The host owns OAuth code exchange, refresh, credential storage, consent, and Dropbox App Folder versus Full Dropbox configuration. Binary upload and download actions are not part of this module because the portable connector HTTP port carries string bodies; do not base64-encode file content through these actions. Original-byte download is a separate host helper, not an action. Host-only create/update are documented in Transfer connector files.

Host-only Dropbox original-byte download

downloadDropboxFile from @yolk-sdk/connectors/dropbox returns original file bytes. It is not registered on DropboxConnector and is never serialized by makeConnectorToolModule. It mirrors downloadOneDriveItem.

import { downloadDropboxFile } from '@yolk-sdk/connectors/dropbox'

// Fragment: host-owned integration and a file id or path from discovery.
const download = downloadDropboxFile(
  integration,
  { path: selectedFile.id },
  { maxBytes: 20 * 1024 * 1024, maxErrorBodyBytes: 16 * 1024 }
)

The budgets are trusted host configuration, not tool parameters. Provide the existing CredentialResolver and a compliant ConnectorBinaryHttpClient layer; default Dropbox actions still use only ConnectorHttpClient. path is one Dropbox /path, bare id:, folder-ID-relative path (id:folder-id/child.txt), rev:, or ns: value from discovery, never a share link. Folder-ID-relative downloads return the child's own file ID. The helper sends a single GET to the Dropbox content endpoint, rejects every redirect, takes served metadata from the Dropbox-API-Result header, and fails non-downloadable entries such as Paper docs with not_downloadable. Hosts must materialize, scan, and extract the Uint8Array; do not put raw bytes into generic model tool JSON. See Integration APIs and Troubleshooting for adapter and error details. Dropbox's official content-download protocol and path formats describe GET support, argument/result headers, and folder-ID-relative addressing.

Generic email

@yolk-sdk/connectors/email exposes portable protocol-neutral actions. Hosts provide an EmailClient Effect layer backed by their chosen IMAP, POP3, SMTP, TLS, and MIME libraries; the package does not bundle those libraries.

Action idWhat it doesAccess
email.list_messageslist normalized messages with an opaque cursorread
email.get_messagefetch one normalized messageread
email.get_attachmentretrieve one attachment; as an agent tool, a file (fileId)read
email.create_draftappend a message draft to an IMAP mailboxwrite
email.send_messagesubmit a normalized message to the SMTP serverdestructive
email.set_readmark an IMAP message read or unreadwrite
email.set_flagflag/unflag an IMAP message for follow-upwrite
email.trashmove an IMAP message to trashdestructive
email.untrashmove an IMAP message out of trashwrite
email.movemove an IMAP message to any folderwrite
email.modify_labelsadd/remove IMAP keyword labelswrite
email.batch_set_readbatch mark read/unreadwrite
email.batch_set_flagbatch flag/unflagwrite
email.batch_movebatch move to one folderwrite
email.batch_trashbatch move to trashdestructive
email.batch_untrashbatch restore from trashwrite
email.batch_modify_labelsbatch add/remove IMAP keywordswrite
email.delete_permanentlypermanently delete identified messagesdestructive

Incoming actions require incomingHost and use EmailIncomingCredentialSlot. They default to incomingProtocol: 'imap', incomingSecurity: 'tls', and port 993; POP3 with TLS defaults to 995. Optional folder works with IMAP and fails deterministically with POP3. SMTP send requires smtpHost and EmailSmtpCredentialSlot; it defaults to smtpProtocol: 'smtp', smtpSecurity: 'starttls', and port 587 (tls defaults to 465). Override ports with an integer or numeric string from 1 through 65535. Security is explicit: none, starttls, or tls.

The two slots may bind separate host credential refs or the same ref. Resolve credentials immediately before transport calls. Both slots require UsernamePasswordCredential; use the provider-specific Google or Microsoft connectors for their OAuth flows. Message list/get outputs contain normalized addresses, body text/HTML, and attachment metadata, never raw MIME. Summaries and full messages also expose optional isRead and isFlagged; omission means unknown/unavailable. List input accepts matching optional filters. Filtered requests require optional EmailClient.listMessagesFiltered and never fall back to listMessages; POP3 rejects filters before credential resolution. Successful list output is schema-validated.

When attachment metadata includes id, pass it with the parent messageId to email.get_attachment. The output repeats normalized metadata and exposes decoded file bytes—not MIME transfer-encoded text—as base64 in contentBase64; decoded size is a non-negative integer. As an agent tool the bytes become a file (fileId, ADR 0009) and the output keeps only the metadata. Existing EmailClient implementations may omit the optional getAttachment method; invoking the action then fails with a typed validation error. Successful host output is schema-validated at the connector boundary before it is returned. Hosts that implement it own MIME parsing, base64 encoding, size limits, durable storage, and content scanning. IMAP adapters should fetch the selected part without marking the message read when supported. POP3 has no standard partial-part retrieval, so adapters may fetch the whole stable UIDL-addressed message before extracting the part. POP3 rejects folder; omit it for attachment retrieval.

email.modify_labels takes { messageId, folder?, addLabels?, removeLabels? } with at least one label list. It requires IMAP and optional EmailClient.modifyLabels host support; missing support produces a typed validation error without breaking existing adapters. The incoming credential is used and folder defaults to INBOX. Labels must be ASCII IMAP keyword atoms, not system flags such as \Seen; spaces, control characters and IMAP atom specials are rejected. Hosts check PERMANENTFLAGS and apply UID STORE additions/removals while preserving unrelated keywords and system flags. Removals win on overlap. Hosts return { messageId, labels } with labels as an Effect Chunk; list/get messages may expose optional labels arrays. There is no standalone IMAP label catalog: assignment creates keyword usage, removal clears usage. POP3 and SMTP cannot persist labels. Hosts own partial-write reconciliation; the SDK has no socket adapter.

email.move takes { messageId, folder?, destinationFolder } with a required destination folder and returns the destination plus the new message ID when the host can map it. Source folder defaults to INBOX. It requires IMAP and optional EmailClient.move host support; hosts use UID MOVE when advertised, otherwise COPY plus \Deleted with a UID-scoped expunge, preserving flags and owning partial-move reconciliation. Identical source/destination folders are rejected before dispatch. Destination UIDs differ from source UIDs: use the returned ID or re-list the destination.

email.create_draft requires IMAP, accepts drafts without recipients, and uses the incoming credential. Optional folder selects the mailbox. When omitted, the host adapter discovers a mailbox advertised with \Drafts by the IMAP SPECIAL-USE extension and may fall back to Drafts. The port owns MIME generation and APPEND with the \Draft flag. Output is { saved: true, folder, draftId? }; draftId is optional because servers without UIDPLUS may not return APPENDUID. When present, it is opaque; UIDPLUS adapters must encode both UIDVALIDITY and UID, never a bare UID. POP3 rejects draft creation.

email.get_message returns required headers name/value pairs alongside the normalized body, including List-Unsubscribe when the mail carries it. Hosts fetch them via IMAP BODY.PEEK[HEADER] or POP3 TOP without marking the message read; an empty array is valid only when the server response contains no headers. Successful host output is schema-validated, so a missing headers array fails. List summaries carry no headers.

List message id values are opaque adapter identifiers that callers pass unchanged to email.get_message. POP3 adapters must use UIDL or another stable mapping rather than transient sequence numbers. An omitted IMAP folder means INBOX; POP3 uses its single mailbox. Adapters return deterministic newest-first pages. Cursors are opaque and scoped to the integration, protocol, folder, and ordering; mailbox changes may invalidate them. SMTP input needs at least one recipient across to, cc, and bcc. { accepted: true } confirms server submission acceptance only, not delivery. email.send_message also accepts optional saveToSentItems (default: save when possible) and sentFolder. When saving is requested and the incoming account uses IMAP, the connector passes IMAP Sent-copy details with the SMTP request so the host can store the same submitted bytes without resubmission; the output sentCopy reports saved | failed | skipped | unsupported. A Sent-save failure after acceptance never means the message was not sent: do not resend.

Mark read/unread and move to/from trash

These actions require IMAP and the incoming credential. POP3 is rejected before adapter calls; SMTP cannot manage mailbox state. Hosts opt in through optional EmailClient.setRead, trash, untrash, and move methods. Existing adapters remain compatible; invoking a missing method returns a typed validation error. All successful mutation outputs are schema-validated.

  • email.set_read: { messageId, isRead, folder? }. Set isRead to true for read or false for unread. The connector defaults folder to INBOX. Hosts add/remove only the \Seen flag using UID STORE, preserving all other flags, and return { messageId, isRead } after success.
  • email.set_flag: { messageId, isFlagged, folder? }. Set isFlagged to true to star for follow-up or false to unstar. Hosts add/remove only the \Flagged flag using UID STORE, preserving all other flags, check PERMANENTFLAGS first, and return { messageId, isFlagged }.
  • email.trash: { messageId, folder?, trashFolder? }. Source folder defaults to INBOX. Hosts use trashFolder or discover a \Trash SPECIAL-USE mailbox with a host-configured fallback.
  • email.untrash: { messageId, folder?, destinationFolder? }. Here folder is the source trash mailbox; if omitted, hosts discover it. destinationFolder defaults to INBOX, not the original folder. Supply an explicit destination to restore elsewhere.
  • email.move: { messageId, folder?, destinationFolder } with a required destination folder. Source folder defaults to INBOX; identical source/destination folders are rejected before dispatch. Returns the destination and the new message ID when the host can map it.

The six explicit batch actions use messageIds (1-100 unique nonempty values), one source folder, and the same payload/defaults as their single-message counterparts. Optional host methods are batchSetRead, batchSetFlag, batchMove, batchTrash, batchUntrash, and batchModifyLabels. Successful output reports every requested ID in messageIds order as succeeded, failed, unknown, or not_attempted, with an optional sanitized code and exact summary counts. Every succeeded result from email.batch_move, email.batch_trash, or email.batch_untrash must include destination folder; movedMessageId is optional and must only be supplied when the adapter knows the destination UIDVALIDITY/UID mapping (omit it and re-list the destination otherwise, never reusing a stale source UID). The connector validates successful host output; raw provider errors must not be exposed. Missing methods fail clearly while legacy adapters remain valid.

email.delete_permanently separately accepts { messageIds, folder? }, defaults the source to INBOX, and uses optional EmailClient.deletePermanently. Hosts permanently remove exactly those UID-scoped messages and never issue blanket EXPUNGE. Approval is host policy, and SDK success does not promise erasure from backups, retention, journaling, or compliance systems.

Hosts perform UID MOVE or a safe per-message copy/delete fallback. Never use blanket EXPUNGE, permanent deletion, or merely set \Deleted as a substitute for a trash move. Return a failure when trash discovery is missing/ambiguous, folders are identical, or a safe move is unavailable. Trash/untrash return { moved: true, folder, messageId? } (EmailMoveMessageOutput), where folder is the destination and optional messageId identifies the moved message there. UIDPLUS mappings must include destination UIDVALIDITY and UID. If no reliable ID mapping exists, omit it and re-list the destination. Hosts own partial-move reconciliation; never blindly reuse a source UID or retry a potentially completed copy/delete.

Google

Google exports a generic GoogleOAuthCredentialSlot, action-scoped OAuth slots, and GoogleCombinedOAuthCredentialSlot for broad-consent hosts. Every slot uses the same google.oauth binding id, so one host credential can cover selected Gmail, Calendar, and Drive actions when its consent includes those scopes.

Drive-specific slots use least-privilege consent hints:

SlotScope
GoogleDriveMetadataReadonlyOAuthCredentialSlotdrive.metadata.readonly
GoogleDriveFileOAuthCredentialSlotdrive.file
GoogleDriveReadonlyOAuthCredentialSlotdrive.readonly
GoogleCombinedOAuthCredentialSlotGmail, Calendar, and default Drive scopes
GoogleOAuthCredentialSlotnone declared

drive.metadata.readonly is a restricted scope that can read metadata across the authorized Drive. drive.file is non-sensitive and permits create/update/delete only for files the app created or that a user explicitly opened/shared with the app. GoogleDriveReadonlyOAuthCredentialSlot is host-only content consent for Drive byte helpers (contentAccess: 'readonly') and is not part of GoogleCombinedOAuthCredentialSlot. Hosts that need mutations across arbitrary existing files own broader restricted-scope consent, verification, and authorization policy. The connector never manages OAuth callbacks, token refresh, storage, or consent UI.

Gmail actions

Action idWhat it does
gmail.searchsearch Gmail messages
gmail.get_messagefetch one message
gmail.listlist messages
gmail.list_threadslist threads (id, snippet, historyId)
gmail.list_draftslist drafts
gmail.get_threadfetch normalized thread
gmail.list_labelslist labels
gmail.create_labelcreate a user label
gmail.get_labelget label details
gmail.update_labelrename/update label visibility
gmail.delete_labeldelete a user label
gmail.modify_labelsadd/remove labels
gmail.set_starredstar/unstar a message
gmail.set_readmark a message read/unread
gmail.batch_set_readbatch mark read/unread
gmail.batch_set_starredbatch star/unstar
gmail.batch_modify_labelsbatch add/remove labels
gmail.batch_trashbatch move to trash
gmail.batch_untrashbatch restore trashed messages
gmail.delete_permanentlypermanently delete messages
gmail.trashmove a message to trash
gmail.untrashrestore a trashed message
gmail.draft_composecreate a draft
gmail.draft_updateupdate a draft
gmail.draft_deletedelete a draft
gmail.draft_replycreate a reply draft
gmail.send_messagesubmit host-generated MIME for sending
gmail.list_attachmentslist attachment metadata
gmail.get_attachmentfetch one attachment; as an agent tool, a file (fileId)
gmail.list_send_aslist send-as aliases
gmail.list_accountslist accessible Gmail accounts

Label creation takes { name, messageListVisibility?, labelListVisibility? }. Get/delete take { id }; update takes { id, name?, messageListVisibility?, labelListVisibility? } with at least one changed field. Visibility values are show | hide and labelShow | labelShowIfUnread | labelHide, respectively. Reads use gmail.readonly; lifecycle mutations and message assignment reuse gmail.modify. System labels cannot be renamed or deleted. Delete returns { id, deleted: true }; it deletes the label, not messages. Assign/remove labels with gmail.modify_labels and { messageId, addLabelIds?, removeLabelIds? }. Star/unstar with gmail.set_starred and { messageId, isStarred }, which assigns the STARRED system label. Mark read/unread with gmail.set_read and { messageId, isRead }, which flips the UNREAD system label via gmail.modify consent and returns the normalized message with isRead/isFlagged derived from labelIds. gmail.search, gmail.list, and gmail.list_threads accept optional isRead/isFlagged boolean filters composed into the Gmail query (is:read/is:unread, is:starred/-is:starred) alongside any raw query. gmail.list_threads takes the gmail.list input (query, labelId, maxResults, pageToken, isRead, isFlagged) and returns decoded { threads?: [{ id, snippet?, historyId? }], nextPageToken?, resultSizeEstimate? } through the gmail.readonly slot; failures map like the other Gmail reads (gmail_list_threads_failed otherwise).

Batch actions take { messageIds, ... } with 1-100 unique nonempty path-safe IDs and return complete per-ID outcomes (succeeded, failed, unknown, not_attempted) in messageIds order, with exact summary counts and sanitized codes only. Gmail executes individually addressed requests sequentially (never the bulk endpoints, whose empty success cannot establish per-ID outcomes): gmail.batch_set_read, gmail.batch_set_starred, gmail.batch_modify_labels (removals win, labels are never created, each delta capped at 100), gmail.batch_trash, and gmail.batch_untrash. gmail.delete_permanently issues individual DELETE requests (only 204 confirms success; 404 is a definitive rejection) and requires opt-in full-mail (https://mail.google.com/) consent, which is never added to combined/default consent. It is immediate permanent deletion, not trash, and claims no backup erasure.

Gmail draft bodies

gmail.draft_compose, gmail.draft_update, and gmail.draft_reply take an optional contentType: 'text' | 'html' next to body (text when omitted, as on the Outlook draft actions). A text body is sent as 7-bit multipart/alternative: a text/plain part with the exact body (line breaks as CRLF) and a text/html part derived from it (HTML-escaped, <br> per line break, runs of spaces kept, http(s) URLs linked to themselves, inside one <div dir="ltr">), both charset=UTF-8 and quoted-printable with lines of at most 76 characters. Gmail web opens a text/plain-only draft in its plain-text composer and hard-wraps it at about 70 columns when a person sends it; the HTML alternative keeps it in rich mode, so the HTML that recipients' mail clients show keeps each paragraph unwrapped. (On send, Gmail web regenerates the text/plain alternative from the HTML and wraps it at about 76 columns, as it does for any message composed there.) Write each paragraph as one line. An html body is sent as a single quoted-printable text/html part. gmail.get_thread prefers the text/plain part, so reading a text draft back answers its body.

Gmail draft attachments

The three draft actions also take optional attachments: an array of { filename, mimeType, contentBase64 } (GmailDraftAttachment), the filename/mimeType pair gmail.list_attachments reports and the standard-base64 contentBase64 gmail.get_attachment returns when invoked directly, so a host can attach a fetched attachment again unchanged. As agent tools, get_attachment returns a file (fileId) instead (pass the listed filename and mimeType to name it) and the draft actions do not take fileIds yet.

  • Limits: at most 10 attachments (gmailDraftAttachmentsMaxItems), at most 25 MiB decoded in total (gmailDraftAttachmentsMaxBytes), and at most 35 MiB of decoded MIME (gmailDraftMessageMaxBytes, Gmail's media upload cap).
  • filename: 1 to 255 characters, no control characters, /, \, bidirectional controls, line separators, or lone surrogates, not only dots. mimeType: type/subtype without parameters; multipart/* and message/* are refused (send an .eml as application/octet-stream). contentBase64: canonical padded standard base64, no line breaks. An empty array means no attachments.
  • The draft body becomes 7-bit multipart/mixed (boundary =_yolk-draft-mixed): the body exactly as above first, then one base64 part per attachment, in order, with lines of at most 76 characters; non-ASCII or long names use RFC 2047 name and RFC 2231 filename*. Headers, send-as checks, and the reply's recipients, Re: subject, In-Reply-To, References, and thread stay as without attachments.
  • It is written with one simple multipart media upload, never retried: POST https://gmail.googleapis.com/upload/gmail/v1/users/me/drafts?uploadType=multipart (an update: PUT .../drafts/{id}?uploadType=multipart), multipart/related with the JSON draft metadata ({ message: { threadId? } } or { id, message: {} }) and then the message/rfc822 MIME. Host HTTP adapters must forward that body exactly as UTF-8 and accept outgoing bodies up to about 35 MiB. Header text left unencoded (such as a non-ASCII address) is uploaded as UTF-8, the same bytes the JSON raw request would carry.
  • An oversized draft fails with a validation_failed ConnectorError whose underlying is { outcome: 'rejected', retryable: false, reason: 'too_large' }, before credentials or any request for compose and update. A reply checks its body MIME before any request and the whole message after reading the original (its headers come from it), before writing anything. Provider answers map to the usual gmail_draft_*_failed failures.
  • Without attachments, drafts are written exactly as before through the JSON endpoint. gmail.draft_update replaces the whole message: attachments not sent again are removed.

Submit a reviewed Gmail message

gmail.send_message accepts { raw, threadId? }, where raw is a complete RFC 5322 MIME message encoded as canonical padded or unpadded base64url. The action sends exactly one request, never resumable and never retried. 7-bit MIME is forwarded unchanged in one simple multipart upload to POST https://gmail.googleapis.com/upload/gmail/v1/users/me/messages/send?uploadType=multipart (multipart/related: JSON metadata with threadId only when provided, then a message/rfc822 part); MIME with any byte >= 0x80 keeps the JSON raw request. Decoded MIME above 35 MiB (gmailSendMessageMaxBytes) fails before credentials or network with a validation_failed ConnectorError whose underlying is { outcome: 'rejected', retryable: false, reason: 'too_large' }. Prefer quoted-printable or base64 transfer encodings for large messages. Host HTTP adapters must preserve the multipart/related content type and forward the string body exactly (CRLF line endings, no re-encoding) and accept outgoing bodies up to about 35 MiB. The host builds the MIME, protects against header injection, binds the sender account, validates recipients, bounds size, and obtains explicit send authorization. The SDK does not parse MIME or check send-as aliases. Prefer a host-owned reviewed interaction over exposing this raw send action directly to the model. Its access metadata is destructive. Gmail routes to the MIME To/Cc/Bcc headers, not a separate SMTP envelope; retain Bcc when encoding the submitted MIME.

For a reply, the host must include In-Reply-To and References using RFC Message-IDs, plus a matching Subject and the Gmail threadId; Gmail resource IDs are not RFC Message-IDs. Changing the subject can start a new conversation. See Google's threading requirements.

GoogleGmailSendOAuthCredentialSlot shares google.oauth and hints the least-privilege gmail.send scope. Google's send API also accepts existing gmail.compose, gmail.modify, or https://mail.google.com/ grants. The action first inspects OAuth scope metadata through the scope-free binding, then re-resolves through an operation slot selecting send first, otherwise an existing compose/modify/full-mail grant. Strict host resolvers still enforce the selected slot; the initial inspection never grants permission. Bearer credentials or missing scope metadata fall back to the send slot. No additional consent is requested and the combined slot is unchanged.

Success is { accepted: true, id, threadId? }: submission, not delivery. Recognized HTTP rejections return gmail_send_message_rejected; ambiguous HTTP responses return gmail_send_message_unknown. Both omit retry hints and include underlying: { outcome: 'rejected' | 'unknown', retryable: false }. Transport failures or malformed success acknowledgements are typed ConnectorErrors with the unknown metadata; a host request timeout after dispatch is a transport failure with the same unknown outcome. No automatic retry occurs. An unconfirmed send may already have taken effect: reconcile mailbox state before proposing another send. A deterministic Message-ID is not an idempotency guarantee.

Fetch a normalized Gmail thread

gmail.get_thread requires { threadId, format }, where format is full, metadata, or minimal. Use full when decoded message bodies are required. With format: 'metadata', optional metadataHeaders (1 to 50 header names, sent as repeated metadataHeaders query parameters) asks Gmail for only those headers, and each message keeps exactly the selected headers instead of the default allowlist below. gmail.get_message takes the same optional metadataHeaders. Any other format with metadataHeaders fails input validation before any request.

The action returns GmailThreadOutput. Each GmailThreadMessage includes selected root headers, attachment metadata, and an optional decoded message body with bodyMimeType. Plain text is preferred when available; otherwise HTML is used. Gmail answers each part's body.data already transfer-decoded, so the part's Content-Transfer-Encoding is never applied again. Text and nested-message attachments do not enter the message body. Selected headers are Bcc, Cc, Date, Delivered-To, From, In-Reply-To, Message-ID, References, Reply-To, Subject, and To.

Raw MIME and attachment content are intentionally omitted. Optional attachment size values are nonnegative integers; invalid sizes from Gmail MIME discovery (-1, 1.5, null, "12", missing) are omitted rather than exposed as byte counts, and valid siblings including zero are kept. Null / array-shaped / non-object parts are skipped. message/rfc822 stays an attachment. Public thread output classes and gmail.get_attachment (size plus base64url data) are unchanged.

Internal MIME payload for gmail.get_thread and gmail.list_attachments admits Schema.Json after JSON parse. Schema.Json requires finite numbers, so raw HTTP JSON 1e999 becomes Infinity and rejects the whole payload (ConnectorError validation_failed, Invalid response shape). That is not a general collapse of malformed optional MIME fields. Do not demonstrate overflow with JSON.stringify(Infinity) (that becomes null and would omit size). Hosts must still validate actual bytes and cannot treat metadata as a download limit. See private attachments for separate streamed encoded-body and decoded-file limits in the host HTTP adapter.

Use gmail.list_attachments with one messageId for metadata-only discovery without fetching a whole thread; metadata includes inline/content-ID details when Gmail supplies them. attachmentId is optional because Gmail may return inline attachment data instead. When present, pass the parent message id as messageId plus attachmentId to gmail.get_attachment. Its typed output preserves Gmail's size and base64url data, then adds messageId, attachmentId, and standard-base64 contentBase64. Omitted inline data is not retrievable through that action.

Calendar actions

Action idWhat it does
calendar.list_eventslist calendar events
calendar.create_eventcreate an event
calendar.list_calendarslist calendars
calendar.get_eventfetch one event
calendar.update_eventupdate an event
calendar.delete_eventdelete an event
calendar.list_accountslist accessible Calendar accounts

For calendar.create_event and calendar.update_event, each start/end boundary uses exactly one non-empty field: { date, timeZone? } for an all-day value or { dateTime, timeZone? } for a date-time value. Null, empty, missing, and dual date/dateTime boundaries fail validation before the provider request.

calendar.update_event is a PATCH: omitted fields stay unchanged, but attendees, when given, replaces the whole guest list.

Google's default for API writes notifies no guests (Google notes some emails might still be sent). calendar.create_event, calendar.update_event, and calendar.delete_event accept an optional sendUpdates, sent as Google's sendUpdates query parameter, never in the event body: all notifies every guest, externalOnly only guests who do not use Google Calendar, and none nobody (Google warns none can stop the event syncing to guests' other calendars or lose it for some guests). Omitting it normally sends no invitation, update, or cancellation email.

Drive actions

Action idWhat it doesAccess
drive.list_fileslist file/folder metadata, optionally under a parentread
drive.search_filessearch file names and indexed textread
drive.get_filefetch metadata by file idread
drive.create_foldercreate a root or child folderwrite
drive.trash_filemove a file or folder to trashdestructive
drive.delete_filepermanently delete without moving to trashdestructive

List and search outputs contain files, optional nextPageToken, and optional incompleteSearch. Pass the token back through pageToken. Trashed files are excluded by default; set includeTrashed: true to include them. Search accepts a plain query and applies it to Drive file names and indexed text rather than exposing raw Drive query syntax.

Set optional driveId to search or list one shared drive through corpora=drive. Drive requests send current shared-drive support parameters, and returned file metadata may include driveId, resourceKey, and operation capabilities. Pass resourceKey with get/trash/delete or parentResourceKey with parent-scoped list/search/create; the connector forwards it through X-Goog-Drive-Resource-Keys for protected link-shared files. The host should check and enforce capabilities before destructive calls; Google still applies ownership, shared-drive role, administrator, and per-file rules.

drive.trash_file is the reversible default. drive.delete_file bypasses trash and permanently removes the item; deleting a folder can also remove owned descendants. Binary downloads and exports use separate host-only helpers; uploads are not added. See Transfer connector files for content consent and host transport. Hosts own Google Picker or equivalent per-file authorization.

Google references: files.list, search syntax, create folders, trash and delete, shared drives, resource keys, and OAuth scopes.

Microsoft

Use @yolk-sdk/connectors/microsoft for Microsoft Outlook mail, OneDrive files, SharePoint site libraries, and Microsoft Teams chats, channels and meeting transcripts. These workloads share Microsoft Graph v1.0 as the API and OAuth resource boundary, plus the same microsoft.oauth credential binding. The connector does not use the retired Outlook REST endpoint, direct Exchange Online APIs, or legacy OneDrive APIs. The sole exception is the pre-authenticated Outlook attachment upload-session URLs that Graph issues to addOutlookAttachment, contacted without Authorization.

All OAuth slots use the shared microsoft.oauth binding id:

SlotPermission hint
MicrosoftOutlookReadOAuthCredentialSlotMail.Read
MicrosoftOutlookWriteOAuthCredentialSlotMail.ReadWrite
MicrosoftOutlookSendOAuthCredentialSlotMail.Send
MicrosoftOutlookSharedReadOAuthCredentialSlotMail.Read.Shared
MicrosoftOutlookSharedWriteOAuthCredentialSlotMail.ReadWrite.Shared
MicrosoftOutlookSharedSendOAuthCredentialSlotMail.Send.Shared
MicrosoftOneDriveReadOAuthCredentialSlotFiles.Read
MicrosoftOneDriveWriteOAuthCredentialSlotFiles.ReadWrite
MicrosoftOneDriveReadAllOAuthCredentialSlotFiles.Read.All
MicrosoftOneDriveWriteAllOAuthCredentialSlotFiles.ReadWrite.All
MicrosoftSharePointSitesReadOAuthCredentialSlotSites.Read.All
MicrosoftTeamsChatReadOAuthCredentialSlotChat.Read
MicrosoftTeamsChatSendOAuthCredentialSlotChatMessage.Send
MicrosoftTeamsTeamReadOAuthCredentialSlotTeam.ReadBasic.All
MicrosoftTeamsChannelReadOAuthCredentialSlotChannel.ReadBasic.All
MicrosoftTeamsChannelMessageReadOAuthCredentialSlotChannelMessage.Read.All (admin consent)
MicrosoftTeamsChannelMessageSendOAuthCredentialSlotChannelMessage.Send
MicrosoftTeamsMeetingReadOAuthCredentialSlotOnlineMeetings.Read
MicrosoftTeamsTranscriptReadOAuthCredentialSlotOnlineMeetingTranscript.Read.All (admin consent)
MicrosoftOutlookCategoryReadOAuthCredentialSlotMailboxSettings.Read
MicrosoftOutlookCategoryWriteOAuthCredentialSlotMailboxSettings.ReadWrite
MicrosoftCombinedOAuthCredentialSlotmail and file scopes, excluding categories, sites, Teams
MicrosoftOAuthCredentialSlotnone declared

Inputs default to the signed-in mailbox through /me. Set optional mailbox to a user ID or user principal name to target an Exchange Online shared/delegated mailbox through /users/{mailbox}. For message actions, the connector then requests the matching Shared slot, unless the explicit mailbox matches the connected user identity (OAuthCredential.accountId, case-insensitive), which keeps the ordinary Mail.* slot on the same /users/{mailbox} path. The same mailbox must accompany an opaque nextLink so the resolver receives the appropriate mailbox consent hint. Populate accountId with the same Graph user ID or userPrincipalName callers pass as mailbox; the comparison ignores case only, not whitespace, and does not resolve aliases or equate IDs with principal names. Explicit mailboxes in delegated mode resolve the scope-free microsoft.oauth identity slot first, then the selected operation slot. The identity lookup does not authorize the operation.

For delegated reads and writes, the signed-in user needs the corresponding Exchange shared-folder or Full Access grant. Sending from another mailbox requires Exchange Send As or Send on Behalf rights; this connector's /users/{mailbox} send path also requires Full Access.

For application tokens, set integration config mailboxAccessMode to application and always pass mailbox. The connector then selects non-Shared Mail.Read, Mail.ReadWrite, or Mail.Send application-permission hints. Scope application access to approved mailboxes with host/admin policy, such as Exchange Online RBAC for Applications.

Hosts own Entra app registration, OAuth authority/tenant selection, consent, callbacks, token refresh, credential storage, and Exchange mailbox authorization. Use action-scoped slots for least-privilege consent. A single credential can cover Outlook and OneDrive when it has both the required Mail.* and Files.* grants.

Outlook actions

Action idWhat it does
outlook.list_messageslist mailbox or folder messages with opaque Graph paging
outlook.search_messagessearch messages with Microsoft Graph mail $search syntax
outlook.get_messagefetch one message with text body and headers
outlook.list_attachmentslist attachment metadata, including inline attachments
outlook.get_attachmentfetch one file attachment; as an agent tool, a file (fileId)
outlook.create_draftcreate a new message draft
outlook.create_reply_draftcreate a reply draft preserving Graph-generated quoted history
outlook.update_draftedit recipients, subject, and full body on an existing draft
outlook.send_mailsubmit a new message for sending
outlook.send_draftsubmit an existing draft for sending
outlook.replysend the reviewed reply in one request, no draft in between
outlook.set_readmark a message read or unread
outlook.set_flagflag/unflag a message for follow-up
outlook.trashmove a message to Deleted Items
outlook.untrashmove a message from Deleted Items to inbox or another folder
outlook.move_messagemove a message to any folder
outlook.list_categorieslist master categories
outlook.create_categorycreate a master category
outlook.delete_categorydelete a master category
outlook.get_categoryget one master category
outlook.update_categoryupdate a master category color
outlook.set_categoriesreplace or clear message category names
outlook.modify_categoriesadd/remove message category names
outlook.batch_set_readbatch mark read/unread
outlook.batch_set_flagbatch flag/unflag for follow-up
outlook.batch_movebatch move to a folder
outlook.batch_trashbatch move to Deleted Items
outlook.batch_untrashbatch restore from Deleted Items
outlook.batch_modify_categoriesbatch add/remove category names
outlook.delete_permanentlypermanently delete messages

Attaching files to a draft is host-only, not an action: call addOutlookAttachment from @yolk-sdk/connectors/microsoft after outlook.create_draft/outlook.create_reply_draft and before outlook.send_draft. See Transfer connector files.

Categories

List takes { mailbox?, top?, nextLink? } and returns { categories, nextLink? }, with an Effect Chunk of categories (id, displayName, optional color). Create takes { mailbox?, displayName, color? }, where color is none or preset0 through preset24. Delete takes { mailbox?, categoryId } and returns { id, deleted: true } without decoding Graph's empty 204 body. The name is immutable; deleting a master category does not remove its name from existing message assignments. outlook.get_category takes { mailbox?, categoryId } and returns the typed category. outlook.update_category takes { mailbox?, categoryId, color } and PATCHes only the color.

Master-category list and mutations require opt-in MailboxSettings.Read and MailboxSettings.ReadWrite, respectively, sharing microsoft.oauth. These are not in the existing combined slot. There are no .Shared mailbox-settings scopes; delegated access to another mailbox's settings remains subject to Graph authorization. Application mode requires an explicit mailbox. List accepts the same null/blank placeholders as message lists; replay nextLink unchanged with the same mailbox. Only that Graph v1.0 category collection is accepted.

Assign names, not category IDs, using outlook.set_categories with { messageId, mailbox?, categories }; [] clears all names. outlook.modify_categories takes { messageId, mailbox?, addCategories?, removeCategories? } with at least one list. It reads current categories, merges names (deduped by exact case-sensitive match, removals win), and PATCHes the result. Invalid/failed reads never trigger a PATCH. Both calls use Mail.ReadWrite or Mail.ReadWrite.Shared and preserve the existing own-mailbox/application guards and immutable-ID headers. Neither action creates master categories automatically. The merge is non-atomic: hosts must serialize competing updates, and the SDK makes no retry or compare-and-swap guarantee.

Outlook messages report isRead plus follow-up flag state as isFlagged (flagged is true; notFlagged and complete are false; anything else asserts nothing). outlook.list_messages accepts optional isRead/isFlagged booleans composed into $filter (isRead eq true|false, flag/flagStatus eq 'flagged', flag/flagStatus ne 'flagged') alongside any raw filter; typed filters cannot be combined with nextLink.

Batch actions take { messageIds, mailbox?, ... } with 1-100 unique nonempty path-safe IDs and return complete per-ID outcomes in messageIds order with exact summary counts and sanitized codes only, executed through Graph JSON batching with at most 20 subrequests per sequential envelope, unique correlation IDs, per-subrequest immutable-ID preferences, and responses matched by correlation ID (never position or outer status). outlook.batch_set_read and outlook.batch_set_flag PATCH individually addressed messages; outlook.batch_move, outlook.batch_trash (to deleteditems), and outlook.batch_untrash (from Deleted Items, defaulting to inbox) POST to /move and report the provider-returned message ID plus actual parentFolderId on success, never a fabricated destination. outlook.batch_modify_categories reads current categories per chunk (a failed read leaves that message not_attempted instead of erasing categories) then PATCHes the exact case-sensitive merge. outlook.delete_permanently POSTs permanentDelete (documented 204 establishes success); items enter Recoverable Items/Purges, so retention or holds may still preserve them and this is not compliance erasure.

Unsubscribe from mailing lists and report spam

No provider exposes unsubscribe as an API; use the required message headers instead. Read headers with gmail.get_message (full or metadata format via payload.headers; or gmail.get_thread with format: 'metadata' and metadataHeaders: ['List-Unsubscribe', 'List-Unsubscribe-Post']; without a selection gmail.get_thread returns only its fixed selected-header allowlist, never List-Unsubscribe), outlook.get_message, or email.get_message, then call the pure parseUnsubscribeMethods(headers) helper from @yolk-sdk/connectors (no IO) to get mailto address methods and HTTP methods with a oneClick flag from List-Unsubscribe-Post. Executing a method stays host-owned: send mailto: removals through outlook.send_mail, email.send_message, or host-generated MIME via gmail.send_message (reusing the URI subject when present, after host authorization), and perform HTTP methods with a host network call — plain GET, or POST with List-Unsubscribe-Post: List-Unsubscribe=One-Click for one-click endpoints. Verify authentication results (DKIM covering the list headers) before automatic one-click POSTs and apply the same public-network policy as other host fetches. Never route publisher URLs through the provider ConnectorHttpClient port; that port is for provider APIs under host transport policy.

Report spam with existing actions and no new code: add the SPAM label through gmail.modify_labels, move to the junkemail well-known folder through outlook.move_message, or move to the server's Junk mailbox through email.move with an explicit destination folder (there is no \Junk special-use discovery; use the server's advertised name such as Junk or Spam).

Edit a draft

outlook.update_draft takes { messageId, mailbox?, to?, cc?, bcc?, subject?, body?, contentType? }. It requires at least one editable field; contentType alone is invalid. Omitted fields remain unchanged and empty recipient arrays clear them. body is the complete replacement, not text to prepend, so include any quoted history you want to retain. The default content type is text; select html explicitly for HTML. No whitespace is rewritten.

The action issues one Graph PATCH and returns the updated identified draft as OutlookMessage. Graph enforces draft-only edits. Existing own/shared/application mailbox write permissions and immutable-ID headers apply. This is a write action, never a send operation. After-dispatch HTTP failures (outlook_update_draft_failed) and typed failures preserve the draft ID in underlying: { draftId, retryable: false, recovery: 'read_edit_existing_draft' } without provider bodies or retry hints. Read the same draft using its original mailbox before another edit or send.

There is no compare-and-swap guarantee. Updating a draft and then calling outlook.send_draft is not atomic: another mailbox client can change it between requests. Hosts own serialization and review of the full final content, including any quoted history. Do not infer that the interaction receipt makes the provider's draft immutable.

Send a reviewed reply

outlook.reply takes { messageId, mailbox?, to, cc, bcc, subject, body, contentType? }, where messageId identifies the original message. All three recipient arrays are required and sent explicitly, including empty ones, so no recipient field is left implicit in the request; to must hold at least one address. body is the caller's complete string, preserved exactly with no appended quote, subject prefix, or recipient inference. The default content type is text; select html explicitly for HTML. The action issues one Graph POST .../reply with { message: { subject, body, toRecipients, ccRecipients, bccRecipients } } and never sets comment or from: the mailbox selects the authorized sender path and Graph chooses the mailbox identity. Existing own/shared/application mailbox send permissions and immutable-ID headers apply. This is a destructive action.

Prefer it over outlook.update_draft followed by outlook.send_draft for dispatching a reviewed reply: placing the reviewed fields in the send request avoids an intermediate mutable draft that another mailbox client could edit between requests. Only HTTP 202 Accepted counts as accepted ({ accepted: true }); Graph documents saving replies in Sent Items. Other HTTP statuses return outlook_reply_rejected or outlook_reply_unknown failures with underlying: { outcome: 'rejected' | 'unknown', retryable: false }. After-dispatch transport failures are typed ConnectorErrors with the unknown metadata. Neither includes retry hints or provider bodies. Acceptance is not delivery, and success carries no message ID or exactly-once claim. Reconcile before considering another send.

Reply drafts and recovery

outlook.create_reply_draft creates a bodyless reply draft, then prepends the supplied text or HTML to Graph-generated quoted history and saves it. Supply only the new reply, not the original quote. Text replies preserve quote content, not its original HTML formatting.

This is a multi-step write. Once a draft ID is known, post-create HTTP failures return outlook_create_reply_draft_partial with the HTTP status but no retryAfterMs, including for 429. A read-back without the requested body format uses the same partial-failure code: status is the last Graph response status and can be 2xx. Branch on the failure code/recovery metadata, not HTTP status alone. Both these failures and post-create typed ConnectorErrors carry underlying: { draftId, retryable: false, recovery: 'read_edit_existing_draft' }. Inspect this metadata before applying any retry policy: read and edit the existing draft using the original mailbox, never repeat the create action. A failed response can follow a successful save. If creation's response is lost or lacks a usable ID, reconcile mailbox state before attempting another creation. The SDK neither retries creation nor deletes a partially completed draft.

Optional Outlook read inputs

outlook.list_messages and outlook.search_messages accept omitted, null, or blank optional strings for mailbox, folderId, and nextLink; list also accepts these placeholders for filter and orderBy. Decoding normalizes them to undefined, preserving non-blank strings unchanged. top accepts omission or null for the provider default; explicit values must be integers from 1 to 1000. Search still requires a string query, and application access still requires a non-blank mailbox. These rules apply to direct connector calls and generated agent tools, not other Outlook actions.

List and search outputs expose Graph's complete @odata.nextLink as nextLink. Pass it back unchanged; repeat mailbox for explicit-mailbox continuations and folderId for folder continuations. The connector accepts only global Graph v1.0 links for the selected mailbox and folder collection. Read and draft-returning requests use Graph immutable IDs; outlook.get_message requests text for the full body plus required internetMessageHeaders (name/value pairs: List-Unsubscribe, References, and authentication results when the message carries them; an empty array when Graph returns none, as for Sent Items and drafts). List, draft, and mutation responses return the base message without headers. A draft ID can still change when sent, which is a documented immutable-ID exception.

outlook.list_attachments returns normalized metadata with kind: 'file' | 'item' | 'reference' | 'unknown'; unlike hasAttachments, listing also discovers inline attachments. The list query selects base attachment properties only and accepts explicit null lastModifiedDateTime values. Do not expect contentId in list results; use outlook.get_attachment on the individual file attachment when you need cid: mapping. It accepts top and returns an opaque nextLink; pass that link back unchanged with the same messageId and mailbox. Use outlook.get_attachment with a returned file attachment ID. It requires a Graph file attachment with string contentBytes (not checked as base64: whoever decodes it validates it) and returns required contentBase64. Item and reference attachments remain available only as list metadata and are rejected by this action. Hosts own base64 decoding, size limits, durable storage, and content scanning.

Read state, flags, trash, and move

outlook.set_read accepts { messageId, isRead, mailbox? }: true marks read and false marks unread via Graph PATCH. outlook.set_flag accepts { messageId, isFlagged, mailbox? } and PATCHes flag.flagStatus to flagged or notFlagged for follow-up. outlook.trash accepts { messageId, mailbox? } and calls Graph /move with destination deleteditems, never permanent deletion. outlook.untrash accepts { messageId, mailbox?, destinationFolderId? } and moves from Deleted Items to inbox by default, or the specified folder ID/well-known name. It neither infers the original folder nor recovers permanently deleted messages. outlook.move_message accepts { messageId, mailbox?, destinationFolderId } with a required destination and moves the message there. The source folder is not an input, so the connector performs no same-folder check; Graph decides the outcome. A deleteditems destination matches outlook.trash: hosts gating on access should override accordingly.

All four return the updated OutlookMessage and request immutable IDs. Use the returned id for subsequent operations. Permission hints are Mail.ReadWrite for the signed-in mailbox, matching connected-user mailboxes, and application mode, or Mail.ReadWrite.Shared for other explicit delegated mailboxes. Application mode still requires mailbox; hosts own consent and Exchange grants. Read-state, restore, and move actions have write access; trash has destructive access.

Send actions return { accepted: true } for Graph's 202 Accepted. Acceptance confirms submission, not processing or delivery.

OneDrive actions

OneDrive inputs default to /me/drive; set driveId to target /drives/{driveId}. Default delegated mode uses least-privilege Files.Read or Files.ReadWrite. Set integration config oneDriveAccessMode to delegated_all to select Files.Read.All or Files.ReadWrite.All for broader delegated access. Application-token hosts set it to application, must provide driveId, and use the same Files.*.All permission hints. The host owns admin consent and application access policy.

Action idWhat it does
onedrive.list_itemslist root or folder children with opaque Graph paging
onedrive.search_itemssearch names, metadata, and indexed content
onedrive.get_itemfetch metadata by stable DriveItem id
onedrive.resolve_sharing_linkresolve a sharing link to its DriveItem, with parentReference.driveId
onedrive.create_foldercreate a root or child folder with conflict behavior
onedrive.move_itemmove an item within one drive; write; optional ifMatch
onedrive.copy_itemaccept an asynchronous copy; write; accepted is not completed
onedrive.get_copy_statuspoll one copy monitor; read; send no credential to the monitor URL
onedrive.delete_itemmove a file or folder to the recycle bin, optionally by ETag

onedrive.move_item sends a same-drive PATCH with a destination parent ID and optional rename. It does not move across drives or invent copy-then-delete. Moving to drive root requires the root folder's actual item ID, not the literal root alias. onedrive.copy_item returns { status: 'accepted', monitorUrl } after Graph 202; name conflicts can still fail later. Conflict modes are non-destructive fail (default) and rename. Destructive replace is not exposed. onedrive.get_copy_status performs one poll and requires the host HTTP adapter to honor redirect: 'manual' and credentials: 'omit'. Treat monitor URLs as secrets. A manual 303 means completed; do not follow or expose its Location. Hosts own approval, cadence, expiry, retries, and reconciliation.

onedrive.resolve_sharing_link takes a OneDrive or SharePoint sharing link exactly as received (https on *.sharepoint.com, 1drv.ms, or onedrive.live.com), encodes it as Graph's u! share id (oneDriveSharingUrlShareId), and sends GET /shares/{shareId}/driveItem with Prefer: redeemSharingLinkIfNecessary, so access is granted for that request only and the link is never redeemed. The returned item's parentReference.driveId and id address it in the other OneDrive actions and downloadOneDriveItem; those later requests still need the user's own access to the item. Sharing links usually point at files other people own, which delegated Files.Read does not reach for work or school accounts, so both delegated modes ask for Files.Read.All; application asks for Files.ReadWrite.All. Graph's permission table lists Files.ReadWrite as the least privileged delegated permission for this API (unverified: whether delegated Files.Read.All alone resolves links to files other people own).

Pass list/search nextLink values back unchanged. Repeat driveId for explicit-drive continuations and parentItemId for folder-list continuations. The connector validates the global Graph origin and selected OneDrive collection before replaying a link.

The current OneDrive action set still excludes binary download, upload, and resumable upload sessions: its HTTP port is string/JSON-oriented. Original-byte download is a separate host helper, not an action. Host-only create/update use a separate write port; resumable sessions remain unimplemented.

SharePoint actions

SharePoint team-site document libraries are drives too. The SharePoint actions find their drive IDs; the OneDrive actions then read them through driveId. Both use MicrosoftSharePointSitesReadOAuthCredentialSlot (Sites.Read.All, Graph's least privileged permission for site search, delegated and application alike), which stays out of the combined slot. Reading the libraries' items with delegated tokens also needs Files.Read.All (or Sites.Read.All) in the token: delegated Files.Read covers only the signed-in user's own files for work or school accounts. Keep oneDriveAccessMode at delegated: the OneDrive read slots still ask for Files.Read, Graph honors every scope the token carries, and delegated_all would also make writes ask for Files.ReadWrite.All. sharepoint.list_site_drives uses the site slot rather than Graph's listed Files.Read to keep site discovery on one opt-in slot, including for site ids from a resolved item's parentReference.siteId. Graph site search is not available for personal Microsoft accounts. The SharePoint actions and onedrive.resolve_sharing_link do not require driveId in application mode.

Action idWhat it does
sharepoint.search_sitessearch the sites the signed-in user can access, with opaque paging
sharepoint.list_site_driveslist one site's document libraries (drives) by site id

Site ids have the form {hostname},{site-collection-id},{web-id}; the connector keeps the commas literal in the request path. Outputs omit properties Graph sends as null. Pass nextLink values back unchanged (with the same siteId for drive listings); the connector replays only links to the same Graph collection.

Teams actions

The Teams actions (src/microsoft/teams.ts) read and send as the signed-in user with delegated permissions only; each uses its own opt-in slot (table above), none of which the combined slot includes, so hosts can show each action only while the token carries its permission. Graph supports none of them for personal Microsoft accounts. ChannelMessage.Read.All and OnlineMeetingTranscript.Read.All need tenant admin consent even as delegated permissions; Entra fails the whole authorization request when one requested permission lacks consent, so a host that requests them with other Microsoft scopes makes that consent a prerequisite of the whole sign-in.

Action idWhat it does
teams.list_chatslist the user's chats with members (default) or the latest message preview
teams.get_chatget one chat with up to 25 members
teams.list_chat_messageslist a chat's messages, most recently changed first; optional modifiedSince
teams.get_chat_messageget one chat message
teams.send_chat_messagesend a plain-text message to an existing chat; destructive
teams.list_joined_teamslist the teams the user belongs to
teams.get_teamget one team's name, description and archived state
teams.list_channelslist a team's channels the user can see
teams.get_channelget one channel
teams.list_channel_messageslist a channel's top-level posts
teams.get_channel_messageget one channel post
teams.list_channel_message_replieslist one post's replies
teams.send_channel_messagepost a plain-text message with an optional subject; destructive
teams.reply_to_channel_messagereply in plain text to a channel post; destructive
teams.find_online_meetingfind a meeting the user organized or was invited to by its join link
teams.list_meeting_transcriptslist one meeting's transcripts

Sends take plain text: the connector escapes it, turns line breaks into <br> and posts an HTML body (Graph documents no line-break handling for text bodies), so markup and mentions are not supported. The escaped body is limited to teamsMessageMaxBytes (28 KiB), well below Teams' about 100 KB per post, and an over-limit message fails validation before any request. Message outputs keep Graph's body (contentType and content, usually HTML), sender (from with kind user, application or device), attachments' metadata, mentions, and messageType and deletedDateTime, so system events and deleted messages stay recognizable. Outputs omit properties Graph sends as null. Pass nextLink values back unchanged with the same ids; the connector replays only links to the same Graph collection (ids compared decoded, since Graph may echo them either way; a /me collection's link may name the user as /users/{id}).

Graph has no delegated way to list meetings. Take the join link from a calendar event (onlineMeeting.joinUrl) or a meeting chat (onlineMeetingJoinWebUrl), pass it to teams.find_online_meeting (only https://teams.microsoft.com links; the filter quotes it), then list transcripts by the returned meeting id. Transcripts need the meeting to be transcribed, on the user's calendar and not expired; tenants that turn off Graph access to transcripts answer 403.

downloadTeamsMeetingTranscript is a host-only download like downloadOneDriveItem: it reads the transcript's metadata (its id must match), then content?$format=text/vtt through the binary port, returning WebVTT bytes (teamsTranscriptMimeType) or a typed ConnectorFileTransferError. The Teams reads and the chat send have unverified conformance cases and fixture-only emulator routes (Microsoft conformance); the channel sends and the transcript download have none yet.

Host-only OneDrive original-byte download

downloadOneDriveItem from @yolk-sdk/connectors/microsoft returns original file bytes. It is not registered on MicrosoftConnector and is never serialized by makeConnectorToolModule.

import { downloadOneDriveItem } from '@yolk-sdk/connectors/microsoft'

// Fragment: host-owned integration and selected item IDs from discovery.
const download = downloadOneDriveItem(
  integration,
  { itemId: selectedItem.id, driveId: selectedItem.parentReference?.driveId },
  { maxBytes: 20 * 1024 * 1024, maxMetadataBytes: 1024 * 1024, maxErrorBodyBytes: 16 * 1024 }
)

The budgets are trusted host configuration, not tool parameters. Provide the existing CredentialResolver and a compliant ConnectorBinaryHttpClient layer; default Microsoft actions still use only ConnectorHttpClient. IDs come from discovery (itemId, optional driveId). SharePoint files need a document-library drive ID: discover it with the SharePoint actions or onedrive.resolve_sharing_link. Hosts must materialize, scan, and extract the Uint8Array; do not put raw bytes into generic model tool JSON. See Integration APIs and Troubleshooting for adapter and error details.

The built-in endpoint targets the global Microsoft cloud; it does not currently configure national-cloud Graph hosts.

Microsoft references: Outlook mail API overview, shared/delegated folders, OneDrive overview, DriveItem addressing, list children, and search DriveItems, access shared items, search sites, list a site's drives, list chats, send a chat message, list channel messages, get an online meeting, and list transcripts.

Kie

Action idWhat it doesAccess
kie.create_image_tasksubmit a GPT Image 2 task (image-to-image when inputUrls are given)write
kie.create_video_tasksubmit a Wan 2.7 image-to-video task from a first frame or a first clipwrite
kie.get_taskread a task's state, raw resultJson, result URLs, and failure detailread

All actions use KieApiKeySlot (kie.api_key, sent as a bearer token). Generation is asynchronous: the create actions return a taskId (each task spends Kie credits) and kie.get_task polls it. callBackUrl is an action input (model-supplied when the action is a tool); hosts that allow it own the webhook and its verification, and hosts that must pin it strip or override it. Code-mode scripts have no timers, so expose kie.get_task with callableBy: 'model' (code mode polling gap). Input URLs are fetched by Kie, so the connector checks only that they are absolute http(s) URLs without credentials. Kie answers most failures with HTTP 200 and a non-200 envelope code; the connector returns those, and non-2xx statuses, as ProviderFailures (kie_unauthorized, kie_insufficient_credits, kie_validation, kie_rate_limited, kie_generation_failed, ...). A task in state fail is a successful read carrying failCode and failMsg. Result URLs expire (Kie keeps generated files for 14 days).

Action idWhat it doesCredential
linkedin_search.searchsearch LinkedIn people results through ExaExaApiKeySlot
linkedin_search.profilefetch a LinkedIn profile through Enrich LayerEnrichLayerApiKeySlot
linkedin_search.emailfetch or queue a LinkedIn email lookupEnrichLayerApiKeySlot

Notion

Action familyAction ids
Searchnotion.search
Pagesnotion.get_page, notion.create_page, notion.update_page, notion.get_page_content, notion.get_page_property
Blocksnotion.append_blocks, notion.update_block, notion.delete_block, notion.get_block
Databasesnotion.get_database, notion.query_database, notion.create_database, notion.update_database
Data sourcesnotion.get_data_source, notion.query_data_source, notion.create_data_source, notion.update_data_source
Usersnotion.list_users, notion.get_user, notion.get_bot_user
Commentsnotion.create_comment, notion.list_comments

Cloudflare R2

Action idWhat it does
r2_storage.upload_urlcreate a presigned PUT upload URL through a host-provided R2Presigner

R2 presigning is host-provided. The connector does not bundle an AWS SDK.

GitHub

GithubConnector is scoped to integration config owner/repo; action inputs never carry either. github.token accepts an installation token, PAT, or OAuth token. Every action declares access metadata; delete_issue_comment and merge_pull_request are destructive, and merges require expectedHeadSha.

Action familyAction ids (github.*)
Issuessearch_issues, list_issues, get_issue, create_issue, update_issue, lock_issue, unlock_issue, add_assignees, remove_assignees, list_assignees, list_issue_timeline
Commentslist_issue_comments, create_issue_comment, update_issue_comment, delete_issue_comment, list_labels, add_labels, remove_label, list_milestones, create_reaction
Structurelist_sub_issues, add_sub_issue, remove_sub_issue, list_issue_dependencies, add_blocked_by, remove_blocked_by, list_issue_types, list_issue_fields, set_issue_field_values
Pull requestslist_pull_requests, get_pull_request, list_pull_request_files, list_pull_request_commits, get_pull_request_checks, list_pull_request_reviews, list_pull_request_review_comments, create_pull_request, update_pull_request, request_reviewers, create_pull_request_review, create_pull_request_review_comment, merge_pull_request
Repositorycompare_commits, list_releases, get_file_contents, search_code

Host-only helpers, not actions: createGithubAppInstallationToken mints GitHub App installation tokens with a WebCrypto-signed JWT, and uploadGithubAttachment uploads images/videos through GitHub's undocumented user-attachments endpoint with a user token (github.upload_token).

Telegram

Action idWhat it does
telegram.send_messagesend text to configured chat
telegram.validatevalidate bot token and chat config

Todoist

Action familyAction ids
Taskstodoist.list_tasks, todoist.create_task, todoist.close_task, todoist.get_task, todoist.update_task, todoist.delete_task
Projectstodoist.list_projects, todoist.create_project, todoist.get_project, todoist.update_project, todoist.delete_project
Commentstodoist.list_comments
Labelstodoist.list_labels

Host-only file transfers

See Transfer connector files for all download/export and create/update APIs, provider-specific concurrency and limits, consent and network enforcement. Raw bytes do not enter action arrays. The metadata actions fortnox.list_supplier_invoice_files and todoist.list_comments declare read access; Fortnox offer previews and inbox files move through host-only helpers.

Custom connectors

Use defineConnector, defineAction, CredentialSlot, and makeIntegration from @yolk-sdk/connectors to build app-specific connectors. Then expose them to agents with makeConnectorToolModule.

On this page