sampler_random_choice
Randomly select one item from a given array. Returns the chosen value and its position index. Ideal for sampling, randomization, or drawing winners.
Instructions
[sampler] Pick a single random item. Returns {choice, index}.
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": {
"items": "<items>"
},
"name": "sampler_random_choice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| seed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |