query_events
List recent events for an agent, newest first, with optional limit and event-type filtering to audit agent activity and trace what happened.
Instructions
List recent events for an agent.
Args:
agent: Agent identifier to query
limit: Number of events to return (default 20)
event_type: Filter by event type, e.g. "tool_call" (optional)
Returns:
List of events ordered by time (most recent first)
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": {
"agent": "<agent>"
},
"name": "query_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| limit | No | ||
| event_type | No |