Kaption WhatsApp

v0.5.11
io.github.Kaption-AI/mcp-extension Checked 7 hours ago Published 1 month ago

Read and manage your WhatsApp conversations through the KaptionAI browser extension.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

query

Query WhatsApp data: conversations, contacts, messages, transcriptions, labels, and communities. Supports listing, searching, filtering, and looking up by ID. IMPORTANT: Multiple WhatsApp accounts may be connected (e.g. personal + business). Always query entity="session" FIRST to see all connected accounts and their session IDs. Then use target_session to route queries to the correct account. Each account has different conversations, contacts, and messages. HOW TO READ MESSAGES: To get messages from a specific conversation, pass its id (e.g. "5491157390064@c.us"). This returns the conver…

ParameterTypeDescription
afterstringReturn messages after this ISO 8601 datetime (e.g. "2026-03-01T12:00:00.000Z") for incremental sync
beforestringReturn messages before this ISO 8601 datetime (e.g. "2026-03-01T12:00:00.000Z") for cursor-based pagination backward
communitystringFilter conversations by community name or ID
entitystringEntity type to query. Defaults to "conversations" when listing, or all when searching. Use "session" to list all connected WhatsApp accounts.
exclude_archivedbooleanExclude archived conversations from listings (default true)
exclude_mutedbooleanExclude muted conversations from listings (default false)
groupstringFilter contacts by group ID — only return contacts that are members of this group
idstringLook up a specific conversation, contact, or label by ID
include_participantsbooleanInclude group participants in results. Useful when looking up a contact by ID to see which groups they belong to, or when querying a group to see its members.
labelstringFilter conversations by label name or ID (Business accounts)
limitnumberMax results (default 25, max 5000)
liststringFilter conversations by list name or ID (Personal accounts)
querystringText to search for (names, messages, transcriptions)
target_sessionstringSession ID to target a specific WhatsApp account. Get session IDs from entity="session". If omitted, routes to the most recently active account.
unreadbooleanOnly return conversations with unread messages

summarize_conversation

Get or generate a summary of a conversation

ParameterTypeDescription
conversation_id *stringThe conversation ID
message_countnumberNumber of messages to use for summary generation (default 50, max 500)
target_sessionstringSession ID to target a specific WhatsApp account

manage_labels

Manage WhatsApp Business labels. Requires a WhatsApp Business account. Actions: add - Add a label to a conversation (requires label_name/label_id + conversation_id) remove - Remove a label from a conversation (requires label_name/label_id + conversation_id) create - Create a new label (requires label_name) delete - Delete a label (requires label_name or label_id)

ParameterTypeDescription
action *stringLabel action to perform
conversation_idConversation ID or array of IDs (required for add/remove)
label_idstringLabel ID (alternative to label_name for add/remove/delete)
label_namestringLabel name (for add/remove/create/delete)

manage_notes

Manage contact notes. Requires a WhatsApp Business account with notes enabled. Actions: get - Read the note for a contact set - Write/update the note for a contact

ParameterTypeDescription
action *stringNote action to perform
contact_id *stringThe contact ID
notestringNote text (required for "set" action)

download_media

Download media content (image, video, audio, document, sticker) from a WhatsApp message. Returns base64-encoded media data with metadata. Get message_id from query results. The message must be a media message. Examples: Download an image: { message_id: "true_123@c.us_3EB0...", conversation_id: "123@c.us" }

ParameterTypeDescription
conversation_id *stringThe conversation ID containing the message
message_id *stringThe message ID (from query results)
target_sessionstringSession ID for multi-account routing

manage_chat

Manage chat state: archive, unarchive, mark as read/unread, pin, unpin, mute, unmute, set/clear draft. Actions: archive - Archive a conversation unarchive - Unarchive a conversation mark_read - Mark a conversation as read mark_unread - Mark a conversation as unread pin - Pin a conversation (max 3 pinned) unpin - Unpin a conversation mute - Mute notifications (use mute_duration for duration) unmute - Unmute notifications set_draft - Set a draft message in the compose box (requires text) clear_draft - Clear the draft message

ParameterTypeDescription
action *stringChat action to perform
conversation_id *stringThe conversation ID
mute_durationstringMute duration (only for "mute" action). Default: "forever"
target_sessionstringSession ID for multi-account routing
textstringDraft text (required for "set_draft" action)

manage_reminders

Manage personal reminders. Reminders are stored in the cloud and trigger notifications via the Kaption extension. Actions: list - List all reminders get - Get a specific reminder by ID create - Create a new reminder (requires title + datetime) update - Update a reminder (requires id, optional title/datetime) delete - Delete a reminder (requires id) complete - Mark a reminder as completed (requires id) uncomplete - Mark a reminder as not completed (requires id) Examples: List all: { action: "list" } Create: { action: "create", title: "Follow up wit…

ParameterTypeDescription
action *stringReminder action to perform
datetimestringISO 8601 datetime for the reminder (required for create, optional for update)
filterstringFilter for list action. Default: "active" (non-completed only)
idstringReminder ID (required for get/update/delete/complete/uncomplete)
notification_typestringHow to notify. Default: "automatic"
target_sessionstringSession ID for multi-account routing
titlestringReminder text (required for create, optional for update)

create_attachment_upload

Create a one-time attachment upload slot, authorized by your connected Kaption account and owner-only MCP_LOCAL_SEND. Returns uploadUrl, attachmentRef and expiresAt. PUT the raw file bytes to uploadUrl within 15 minutes (e.g. curl -T file.pdf), then pass attachment: {ref: attachmentRef} to send_message or a local schedule create/update within one hour. The extension consumes the ref once and stores the bytes locally. No third-party URLs. Requires a connected Rust extension; target_session selects the account.

ParameterTypeDescription
mime *stringAllowed image, document, audio or video MIME type
name *stringFilename without paths or control characters, max 200 characters
size *integerExact file size in bytes, maximum 8 MiB
target_sessionstringSession ID of the Kaption account that will send the attachment

send_message

Queue a WhatsApp message from this computer for the earliest permitted delivery. Requires the owner-only MCP_LOCAL_SEND flag, Rust core, and user consent in Kaption. Supports an existing person chat or eligible group (@g.us) and one image, document, audio or video attachment (8 MiB max). Message is optional with an attachment; audio cannot have captions. Returns queued plus a schedule ID, not proof of delivery. Existing ask-first prompts, 8/hour, 20/day, group limits and delays apply. An assistant cannot accept consent or confirmation. Computer and WhatsApp must remain open. Use manage_schedul…

ParameterTypeDescription
conversation_id *stringExisting person chat ID or eligible group ID ending @g.us
attachmentExactly one attachment source: dataB64, uploaded ref, or absolute local path; max 8 MiB. Requires MCP_LOCAL_SEND and local delivery
messagestringMessage or attachment caption; omit for attachment-only sends
target_sessionstringSession ID for multi-account routing

manage_scheduled_messages

Schedule WhatsApp messages to be sent automatically at a specific time, in one of two modes: bot (default) - sent from Kaption's WhatsApp number, not the user's own. Stored in Kaption's cloud and sent even when this computer is off. One-to-one chats only (no groups); one line, max 800 characters. local ("From this computer") - sent from the user's own WhatsApp number, as them, while this computer and WhatsApp are open. Stays on this device. Kaption keeps it within safe limits automatically (a few messages an hour and a day, minutes apart, only to chats where the other person has written, a…

ParameterTypeDescription
action *stringScheduled message action to perform (cancel, remove and send_now need mode "local")
attachmentLocal create/update only. One attachment; null removes it on update. Omit message for attachment-only sends
conversation_idstringChat to send the message to (required for create): a person, or a group with mode "local"
datetimestringISO 8601 datetime when the message should be sent (required for create, optional for update)
filterstringFilter for list action. Default: "pending" (not sent yet; in local mode also missed or failed ones waiting for the user)
idstringScheduled message ID (required for get/update/delete/cancel/remove/send_now)
messagestringMessage text to send (required for create, optional for update). Bot: one line, max 800 characters. Local: text or caption up to 2000 characters; omit with an attachment
modestring"bot" (default): sent from Kaption's WhatsApp number. "local": sent from the user's own WhatsApp number while this computer and WhatsApp are open, within safe limits kept automatically; needed for gro…
notification_typestringBot mode only. Notification type. Default: "automatic"
target_sessionstringSession ID for multi-account routing

manage_lists

Manage personal chat lists (custom lists). These are the personal account equivalent of Business labels. Lists allow organizing chats into custom categories like "Family", "Work", etc. Not available on all accounts — check with action "list" first to see if lists are enabled. Actions: list - List all custom lists (also shows if feature is enabled) get - Get a list and its associated chats (requires id or name) create - Create a new list (requires name, optional conversation_id for initial chats) edit - Edit a list name or replace its chats (requires id or…

ParameterTypeDescription
action *stringList action to perform
conversation_idChat ID or array of IDs to add/remove
idstringList ID (for get/edit/delete/add_chat/remove_chat)
namestringList name (for create/edit, or to resolve by name)
target_sessionstringSession ID for multi-account routing

list_contacts

List WhatsApp contacts from the encrypted DBR3 cache (no network). Results are deduplicated by phone number — the same person across multiple labels collapses to one row. Saved contacts sort before unsaved, then alphabetically by display name. WhatsApp "@lid" privacy identifiers (opaque, non-dialable) are always excluded — only real phone-backed contacts are returned. Examples: All contacts: {} Saved contacts only: { is_my_contact: true } Search by name: { query: "Maria" } Page 2 of 50: { limit: 50, offset: 50 }

ParameterTypeDescription
is_my_contactbooleanIf true, only contacts saved in the user address book. If false, only un-saved contacts. Omit to include both.
limitnumberMax contacts to return (default 50, max 500)
offsetnumberSkip N contacts for pagination (default 0)
querystringCase-insensitive substring matched against name, pushname, phone, and JID

get_contact

Look up a single WhatsApp contact by JID or phone number. Pass either parameter — both work. If multiple raw contacts share the same phone (label dupes), the saved variant wins. Examples: By JID: { jid: "5491155550001@c.us" } By phone with +: { phone: "+5491155550001" } By phone bare: { phone: "5491155550001" }

ParameterTypeDescription
jidstringFull WhatsApp JID (e.g. "5491155550001@c.us")
phonestringPhone number — leading "+" and "00" are stripped during matching

get_contact_groups

List the WhatsApp groups a specific contact participates in. Reads from cached chat metadata — no network. Examples: Groups for contact: { jid: "5491155550001@c.us" }

ParameterTypeDescription
jid *stringContact JID — must be the full @c.us form (phone alone not accepted here)

list_groups

List all WhatsApp groups the user belongs to. Reads from the cache — no network. For a live snapshot of a single group, use `get_group` (it forces a fresh GroupMetadata.update). Examples: All groups: {} Search by group name: { query: "family" } Top 10: { limit: 10 }

ParameterTypeDescription
limitnumberMax groups to return (default 50, max 500)
querystringCase-insensitive substring match against group name

get_group

Fetch a single group with a LIVE participant list. Forces `Store.GroupMetadata.update()` against the WA backend before reading, so the result reflects current membership including recent joins/leaves. Use this when accuracy matters; use `list_groups` for browsing. Examples: Live group fetch: { jid: "120363421729019499@g.us" }

ParameterTypeDescription
jid *stringGroup JID — must end in "@g.us"

export_contacts

Export all WhatsApp contacts as CSV (RFC 4180) or JSON. Deduped, sorted alphabetically by display name. Default format is CSV. JSON projects the requested fields. Available fields: jid, phone, name, pushname, is_my_contact, is_business. WhatsApp "@lid" privacy identifiers (opaque, non-dialable) are always excluded — only real phone-backed contacts are returned. Examples: CSV all fields: { format: "csv" } JSON name + phone: { format: "json", fields: ["name", "phone"] } Filtered CSV: { format: "csv", query: "Argentina" } Saved contacts only: { format: "csv", is_my_contact: true }

ParameterTypeDescription
fieldsarrayWhitelist of fields to include. Defaults to all six: jid, phone, name, pushname, is_my_contact, is_business
formatstringOutput format. Default "csv"
is_my_contactbooleanIf true, only contacts saved in the user address book. If false, only un-saved. Omit to include both.
querystringOptional case-insensitive substring filter (matches name, pushname, phone, JID)

get_api_info

Get HTTP REST API connection info for programmatic access without MCP overhead. Returns URL, auth token, and available endpoints.

get_analytics

Get WhatsApp analytics data: KPIs, activity patterns, rankings, response times, call stats, labels, emojis, words, countries, and more. Supports section-based drill-down, date range filtering, chat/label/community filters, pagination, and chat/contact exports. Start with section="overview" (default) for a compact summary, then drill into specific sections. Sections: overview — High-level summary with top 5 chats (~5KB) kpis — Core + account KPIs + account overview activity — Daily/hourly/weekday/monthly + sent/received + message types…

ParameterTypeDescription
chat_idstringFilter to specific chat. Required for chat_detail/export_chat
chat_typestringFilter rankings by chat type
communitystringFilter by community name or ID
date_fromstringCustom start date (ISO 8601) — overrides date_range
date_rangestringPreset date range (default: "30d")
date_tostringCustom end date (ISO 8601) — overrides date_range
formatstringExport format (required for export_chat/export_contacts)
include_transcriptionsbooleanInclude audio transcriptions in exports (default true)
labelstringFilter by label/list name or ID
limitnumberMax items for paginated sections (default 20, max 500)
offsetnumberSkip N items for pagination
querystringSearch keyword — filter analytics to only messages containing this text. Shows activity patterns for conversations mentioning a topic.
sectionstringAnalytics section to retrieve
target_sessionstringSession ID for multi-account routing

call_recordings

Read WhatsApp call recordings made by the Kaption extension and their transcripts, with every word timed. Each recording names its conversation (the other person, or the group for a group call), so it links to query, get_contact and get_group. Recordings of locked chats are never returned. Actions: list - Recordings, newest first (optional conversation_id, date_from, date_to, limit) get - One recording and its transcript: turns by speaker ("you" or "contact") with start/end seconds (requires id; include_words adds each word's timing) search - Recordings whose name or transcript mat…

ParameterTypeDescription
action *stringCall recordings action to perform
conversation_idstringOnly recordings of this conversation (a contact or group ID)
date_fromstringOnly recordings started on or after this date (ISO 8601)
date_tostringOnly recordings started on or before this date (ISO 8601)
idstringRecording ID (required for get)
include_wordsbooleanFor get: include each word with its start and end in seconds (default false)
limitnumberMax recordings to return (default 20, max 100)
searchstringText to find in names and transcripts (required for search)
target_sessionstringSession ID for multi-account routing