notion.querySessionEvents query the ordered events emitted within an agent session.
Example
automations/notion-query-session-events.automation.ts
Inputs
session_id is required. Optional filters, sorts, cursor, and page size narrow the event stream. Every input accepts a compatible signal, and an optional second argument can select a named account.
Output
Returns a paginatedsession_event list with typed user messages, agent messages, tool activity, and other documented variants.