list_x_dms
Read your X direct messages read-only
Description
Read the direct messages sent to the connected X account and group them into conversations, newest first — who is waiting on a reply, in their own words. Use it for 'any new DMs on X', 'what did they say', 'anything I need to answer'. Reply with send_x_dm. Messages sent in X Chat are end-to-end encrypted and are NOT in this read, so never say someone did not write from it alone: list_x_chats shows which conversations are unread. COSTS CREDITS PER MESSAGE RETURNED plus one account lookup, so keep maxResults small (default 10) and tell the user the cost before pulling a big page. X KEEPS 30 DAYS of direct-message history and offers no date filter, so a short list can mean an old conversation rather than a quiet inbox — say so rather than reporting silence. There is no conversation-list endpoint at X: this builds the thread list by reading events and grouping them, so a conversation whose last message is older than the page you pulled will not appear. Needs X connected, AND an X account connected before direct messages shipped must be reconnected once (Connectors > X) — X only grants permissions at authorize time.
Parameters
| Parameter | Type | Description |
|---|---|---|
maxResults | number | how many messages to pull, 1-100 (default 10) — EVERY ONE IS BILLED, and omitting it would make X return 100 |
conversationId | string | read just this conversation (from a previous call). One-to-one ids look like "12-345"; group ids are one long number. |
participantId | string | read just the conversation with this NUMERIC X account id (not an @handle) |
paginationToken | string | nextToken from a previous call, to page further back. There is no since/until filter at X — this is the only way to walk history. |
eventTypes | string[] | MessageCreate (default), ParticipantsJoin, ParticipantsLeave. The join/leave events carry no message and are billed like any other, so the default is messages only. |
account | string | which connected account: its @handle or id from list_connector_accounts; needed only when several are connected |
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/list_x_dms.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_x_dms","arguments":{}}}
CLI
hermoso call list_x_dms --json '{}'
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
send_x_dmSend an X direct messagelist_x_chatsList X Chat conversations