resend_segment
Resend segments — the groups of contacts a Broadcast is sent to. A segment
is internal: recipients never see its name. Its members are read with
resend_contact(op="list", segment_id=…); a contact joins one through
resend_contact(op="upsert", segment_ids=[…]) or op="add_to_segment".
op: "list" (default) the account's segments, paginated (limit,
after); "get" one segment (segment_id); "create" a segment
(name). No delete here: a segment is removed from the Resend dashboard.
Needs a Resend key with Full access (a sending-only key is refused, and the
error says how to fix it). Returns — list: {segments: [{id, name, created_at}], has_more, next_after}, pass next_after as after for the
next page, full=true returns Resend's raw page; get: the segment; create:
{id, name}, or {dry_run, would_create}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "resend_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | list (default) | get | create. | list |
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| full | No | op="list"/"get" — Resend's raw response instead of the trimmed view. | |
| name | No | op="create" — the segment name. | |
| after | No | op="list" — cursor: the `next_after` of the previous page. | |
| limit | No | op="list" — page size, 1 to 100 (default 50). | |
| _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. | |
| dry_run | No | op="create" — preview, no call. | |
| _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')`. | |
| segment_id | No | op="get" — the segment id. |