search_inbox
Search the inbox read-only
Description
Search the brand’s direct-message inbox two ways at once: WORDS inside the messages (whole words, any case or accent; every word must be in one message) and the PERSON (part of their name, handle or number). Covers WhatsApp, Messenger and Instagram, Telegram, SMS, iMessage, LINE, Slack, Discord, email, the domain inbox and call transcripts; X only with includeX (every X message read is billed). direction:"outgoing" finds how the brand itself writes, e.g. to teach an AI its tone. Each hit carries channel + conversationId (for manage_inbox_conversation and reply_to_inbox_item via list_inbox) and up to 3 matching messages. A channel that could not be read is named in notes, never counted as "no match". Read-only, 0 credits (X billed only when included).
Parameters
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | words to find in messages, or part of a name, @handle or phone number |
direction | "any" | "incoming" | "outgoing" | which messages to search: any (default), incoming (from people), outgoing (from the brand) |
channels | string[] | limit to these: whatsapp, meta, telegram, sms, imessage, line, slack, discord, email, domain_mail, call, x |
limit | number | conversations to return (1-50, default 20) |
maxThreads | number | how many of the newest conversations to read for words (0-100, default 40); a name or number matches every conversation listed |
includeX | boolean | also search X direct messages (billed per message read) |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/search_inbox.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_inbox","arguments":{"query":"<string>"}}}
CLI
hermoso call search_inbox --json '{"query":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
manage_inbox_conversationArchive, mark read, react or accept in the inboxreply_to_inbox_itemReply to anything in the inboxlist_inboxOne inbox for comments, replies, mentions, reviews and DMslike_post_or_commentLike a post or comment as the brand (Facebook, Bluesky)meta_page_infoFacebook Page details: read and editmeta_thread_controlHand a Messenger / Instagram conversation to another appmeta_messenger_profileWelcome screen, ice breakers and menu for Messenger / Instagram DMsmeta_conversation_labelsLabel people in the Messenger inboxmeta_page_reviewsFacebook Page reviews: read and replyinstagram_mentionsInstagram posts and comments that @mention the brand