list_dataset_items
List dataset items with pagination, optional filtering by source trace or observation ID, and selectable output format.
Instructions
List items in a dataset with pagination and optional filtering.
Returns dataset items with their input, expected output, and metadata.
Args:
ctx: Context object containing lifespan context with Langfuse client
dataset_name: The name of the dataset to list items from
source_trace_id: Optional filter by source trace ID
source_observation_id: Optional filter by source observation ID
page: Page number for pagination (starts at 1)
limit: Maximum items per page (max 100)
output_mode: How to format the response data
Returns:
A dictionary containing:
- data: List of dataset item objects
- metadata: Pagination info (page, limit, total, dataset_name)
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": {
"dataset_name": "<dataset_name>"
},
"name": "list_dataset_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (starts at 1) | |
| limit | No | Items per page (max 100) | |
| output_mode | No | Output format: 'compact' truncates, 'full_json_string' returns full data, 'full_json_file' writes to file | compact |
| dataset_name | Yes | The name of the dataset to list items from | |
| source_trace_id | No | Filter by source trace ID | |
| source_observation_id | No | Filter by source observation ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |