fetch_langfuse_traces
Fetch filtered traces from Langfuse by providing API credentials and optional filters like name, tags, user ID, or time range.
Instructions
Fetch a filtered list of traces from a Langfuse instance.
Connects to the specified Langfuse host using the provided credentials and returns matching traces formatted as readable context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Filter by trace name. | |
| page | No | Page number for pagination (default 1). | |
| tags | No | Filter by tags (traces must have ALL specified tags). | |
| limit | No | Max number of traces to return (1–100, default 20). | |
| release | No | Filter by release identifier. | |
| user_id | No | Filter by user ID. | |
| version | No | Filter by application version. | |
| host_url | Yes | Langfuse host URL (e.g. https://cloud.langfuse.com or http://localhost:3000). | |
| public_key | Yes | Langfuse public API key. | |
| secret_key | Yes | Langfuse secret API key. | |
| session_id | No | Filter by session ID. | |
| environment | No | Filter by environment (e.g. production, staging). | |
| to_timestamp | No | ISO 8601 end time — only return traces before this time. | |
| from_timestamp | No | ISO 8601 start time — only return traces at or after this time. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |