Spintax and merge tag preview
expand_spintaxExpand a spintax template such as "{Hi|Hey} there" and render its Liquid merge tags, returning the total number of variations, every variable the template references, any variable with no value and no default, and a set of rendered samples. Use it to check a sequence before it sends.
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": {
"template": "<template>"
},
"name": "expand_spintax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vars | No | Values for the merge tags, e.g. {"first_name": "Sarah"}. | |
| samples | No | How many variations to render, 1 to 25. Defaults to 3. | |
| template | Yes | The template, with {spin|groups} and {{merge_tags}}. |