sample_case_ids
Retrieve a sample of case IDs from a log using strategies: first (original order), longest (most events), or shortest (fewest events) to select cases without exporting the log.
Instructions
Return a small sample of case IDs from a log.
Useful for picking a concrete case_id to pass to abstract_case
without having to export the log to disk first.
Strategies:
"first": IDs in original order (cheap; no sort)."longest": thencases with the most events."shortest": thencases with the fewest events.
For longest / shortest, the response includes an event_counts
dict so callers can see the sort key; first omits it.
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": {
"log_id": "<log_id>"
},
"name": "sample_case_ids"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| log_id | Yes | ||
| strategy | No | first |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||