Aller au contenu

rename_campaign

Rename a campaign

Action · mcp:act30 appels / 10 minAppelle un fournisseurIdempotent

Renomme une campagne, dans VibeSell et chez le fournisseur d'emails, sous le nom que l'utilisateur a donné. Seul le nom change : rien n'est envoyé, mis en pause ni relancé.

Description lue par le modèleEnvoyée telle quelle dans tools/list, en anglais.
Rename a campaign, in VibeSell and at the email provider, under the name the user gave. Only the name changes: nothing is sent, paused or relaunched. Without campaignId it renames the current campaign.

L'utilisateur dit

Renomme cette campagne « Dentistes FR — printemps ».

tools/call · Arguments envoyés par l'assistant
{
"name": "rename_campaign",
"arguments": {
"name": "Dentists FR — spring"
}
}
namestringobligatoire1–120 caractères

The new name, as the user gave it.

campaignIdstringfacultatif

The campaign to rename, from list_campaigns. Left out: the current one.

Schéma d'entrée
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The new name, as the user gave it."
},
"campaignId": {
"description": "The campaign to rename, from list_campaigns. Left out: the current one.",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": ["name"]
}

Sorte de résultatcampaign_update

kind"campaign_update"
outcomestring

What happened, in a sentence.

campaignobjet
  • id string — The campaign id: pass it to select_campaign or rename_campaign.
  • name string
  • state string — The campaign state code.
  • stateLabel string — The campaign state, in words.
  • current boolean — True for the campaign every tool of this connection works on right now.
  • mailboxes integer — Sending mailboxes assigned to it.
appUrlstring
Schéma de sortie
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "campaign_update"
},
"outcome": {
"type": "string",
"description": "What happened, in a sentence."
},
"campaign": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The campaign id: pass it to select_campaign or rename_campaign."
},
"name": {
"type": "string"
},
"state": {
"type": "string",
"description": "The campaign state code."
},
"stateLabel": {
"type": "string",
"description": "The campaign state, in words."
},
"current": {
"type": "boolean",
"description": "True for the campaign every tool of this connection works on right now."
},
"mailboxes": {
"type": "integer",
"description": "Sending mailboxes assigned to it."
}
},
"required": ["id", "name", "state", "stateLabel", "current", "mailboxes"],
"additionalProperties": false
},
"appUrl": {
"type": "string"
}
},
"required": ["kind", "outcome", "campaign", "appUrl"],
"additionalProperties": false
}
  • Sans campaignId, il renomme la campagne courante ; avec, la campagne à qui list_campaigns a donné cet id.
  • Refusé pendant que la campagne est préparée chez le fournisseur ou qu'un autre renommage est en cours : réessayer une minute plus tard. Si le fournisseur ne confirme pas le nouveau nom, rien n'est renommé.