lemlist_sequence
Read and edit the steps of a campaign sequence, and its A/B tests.
A campaign owns a sequence (seq_…, returned by create) whose steps
(stp_…) are the emails, LinkedIn actions and conditions it runs.
Args by op:
get:campaign_id. Every sequence of the campaign with its steps — conditional steps branch into further sequences, so a campaign can hold several.add_step:sequence_id+step.step.typeis required, one of email, manual, phone, api, linkedinVisit, linkedinInvite, linkedinSend, linkedinVoiceNote, linkedinFollow, linkedinLikeLastPost, linkedinCommentLastPost, linkedinEndorse, linkedinWithdrawInvitation, sendToAnotherCampaign, conditional, whatsappMessage, sms. Common fields:index(insert position, appended when omitted),delay(days),subject+message(email),title(manual),method+url(api),conditionKey+delayType(conditional),campaignId(sendToAnotherCampaign).update_step:sequence_id+step_id+step.step.typeis required and must MATCH the existing step — it identifies the shape, it does not convert it.images/videosREPLACE what is there.delete_step:sequence_id+step_id. Refused by lemlist while the campaign is running — pause it first.ab_create:sequence_id+step_id(an EMAIL step). Creates variant B prefilled from A and STARTS the split. Email Pro plan.ab_get/ab_update(step= the B fields:subject,message,altMessage,cc,plainText).ab_delete: optionalvariant(defaultB).Apromotes B to A.ab_winner:variant(AorB) — the winner's template is then sent to every remaining lead.
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_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| step | No | ||
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| _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. | |
| step_id | No | ||
| variant | No | ||
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| _instance | No | Instance de connecteur PRÉCISE (un credential exact). `oto_instance(op='list')`. | |
| campaign_id | No | ||
| sequence_id | No |