list_datasets
Retrieve datasets from LangSmith with filtering options for IDs, names, data types, and metadata to organize and access training data.
Instructions
Fetch LangSmith datasets.
Note: If no arguments are provided, all datasets will be returned.
Args: dataset_ids (Optional[str]): Dataset IDs to filter by as JSON array string (e.g., '["id1", "id2"]') or single ID data_type (Optional[str]): Filter by dataset data type (e.g., 'chat', 'kv') dataset_name (Optional[str]): Filter by exact dataset name dataset_name_contains (Optional[str]): Filter by substring in dataset name metadata (Optional[str]): Filter by metadata as JSON object string (e.g., '{"key": "value"}') limit (int): Max number of datasets to return (default: 20) ctx: FastMCP context (automatically provided)
Returns: Dict[str, Any]: Dictionary containing the datasets and metadata, or an error message if the datasets cannot be retrieved
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_datasets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_ids | No | ||
| data_type | No | ||
| dataset_name | No | ||
| dataset_name_contains | No | ||
| metadata | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||