Tool
preview_segment
Preview segment reach
Read-onlyIdempotent
SurfacesChat agentMCPCLICount and sample the subscribers in an audience that match a set of conditions, WITHOUT saving a segment. Lets you reason about reach before composing a campaign (e.g. 'how many active subscribers tagged VIP?'). `conditions` is { match: 'all'|'any', rules: [{ field, op, value }] }.
CLI: tinbox preview-segmentParameters
| Name | Type | Required | Description |
|---|---|---|---|
audienceId | string | yes | The audience (list) to evaluate against. |
conditions | object | yes | The (unsaved) condition tree to preview. |
▸expand conditions
| |||
sampleLimit | integer | no | How many sample matches to return (default 5). |
Example
json
{
"audienceId": "aud_…",
"conditions": {
"match": "all",
"rules": [
{
"field": "<field>",
"op": "is"
}
]
}
}