list_events
Retrieve recent events from your PostHog project, filtered by name, date range, or user ID.
Instructions
Fetch recent events from a PostHog project. Supports filtering by event name and date range. Returns up to 100 events by default.
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_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ISO 8601 datetime — only return events after this timestamp, e.g. '2024-01-01T00:00:00Z' | |
| event | No | Filter to a specific event name, e.g. '$pageview' or 'user_signed_up' | |
| limit | No | Maximum number of events to return (1–500, default 100) | |
| before | No | ISO 8601 datetime — only return events before this timestamp | |
| distinct_id | No | Filter events to a specific user's distinct ID |