sample
Return N random items from a JSON array to preview large datasets without loading all data.
Instructions
Return N random items from an array.
Useful for previewing large datasets without loading everything.
Args: alias: The alias of the loaded document. path: Dot-notation path to the array. Empty means root. n: Number of items to sample (default 5). seed: Optional random seed for reproducible results.
Returns: N randomly selected items from the array.
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": {
"alias": "<alias>"
},
"name": "sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| path | No | ||
| seed | No | ||
| alias | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |