lemlist_inbox
Read the unified inbox, write drafts, manage labels. Sends nothing —
sending is lemlist_act.
Conversations are keyed by CONTACT, all channels merged.
Args by op:
list:user_id(required — an inbox belongs to a person),page,limit.messages:contact_id+ optionaluser_id,limit,skip. ⚠️mark_as_read=TrueMUTATES on a read call. ⚠️ One HTML email can weigh 300 000+ characters (images pasted as base64): to read what was SAID, passtext_only=True(HTML turned to plain text, inline images dropped) andmax_chars(each text cut there). The answer then carriestruncated_fields, the number of texts that were cut — 0 means you have them whole.labels/label_get(label_id) /label_create(label_name).labels_attach:contact_id+label_ids;append=FalseREPLACES the conversation's labels.labels_remove: same minusappend.drafts/draft_get/draft_delete:contact_id+draft_owner(a user id — a draft belongs to a person) +draft_idwhere relevant.draft_create:contact_id,draft_owner,channel(email,linkedin,whatsapp,sms),content, optionalsubject,cc,attachments,reply_to_activity_id(answer a specific message),source_metadata.draft_update: same ids +draft(the fields to change).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"op": "<op>"
},
"name": "lemlist_inbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| op | Yes | ||
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| page | No | ||
| skip | No | ||
| draft | No | ||
| limit | No | ||
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| append | No | ||
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| channel | No | ||
| content | No | ||
| subject | No | ||
| user_id | No | ||
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| draft_id | No | ||
| label_id | No | ||
| _instance | No | Instance de connecteur PRÉCISE (un credential exact). `oto_instance(op='list')`. | |
| label_ids | No | ||
| max_chars | No | ||
| text_only | No | ||
| contact_id | No | ||
| label_name | No | ||
| attachments | No | ||
| draft_owner | No | ||
| mark_as_read | No | ||
| source_metadata | No | ||
| reply_to_activity_id | No |