MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / listMessages

Method listMessages

mcp/src/client.ts:234–250  ·  view source on GitHub ↗
(params: {
    direction?: "inbound" | "outbound" | "all";
    readStatus?: "unread" | "read" | "all";
    sort?: "asc" | "desc";
    from?: string;
    subjectContains?: string;
    conversationId?: string;
    since?: string;
    until?: string;
    labels?: Array<string>;
    cursor?: string;
    limit?: number;
    explicitAddress?: string;
  })

Source from the content-addressed store, hash-verified

232 // Cursor pagination (§6a #3): returns ONE page + next_cursor. `limit` is the
233 // page size; pass a prior response's next_cursor as `cursor` for the next page.
234 listMessages(params: {
235 direction?: "inbound" | "outbound" | "all";
236 readStatus?: "unread" | "read" | "all";
237 sort?: "asc" | "desc";
238 from?: string;
239 subjectContains?: string;
240 conversationId?: string;
241 since?: string;
242 until?: string;
243 labels?: Array<string>;
244 cursor?: string;
245 limit?: number;
246 explicitAddress?: string;
247 }): Promise<Page<MessageSummaryView>> {
248 const { explicitAddress, cursor, ...rest } = params;
249 return this.sdk.messages.list(this.resolveAddress(explicitAddress), rest).page(cursor);
250 }
251
252 // ── Conversations ───────────────────────────────────────────────
253

Callers 1

registerMessageToolsFunction · 0.45

Calls 3

resolveAddressMethod · 0.95
pageMethod · 0.80
listMethod · 0.45

Tested by

no test coverage detected