30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

List Events

events/list-events is the ability that answers calendar questions. Date range, venue, organizer, category, featured flag, free-text search — filter on any of them, and every event comes back with its dates, timezone, venue and organizers already resolved.

The date filters accept anything WordPress can parse, so what is on next week is a single call rather than a date calculation followed by a query.

At a glance

Abilityevents/list-events
ToolsetThe Events Calendar — toolset/events-calendar
GroupThe Events Calendar › Events
RequiresThe Events Calendar, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

The Events Calendar does not store an event as a post with two meta fields. It keeps local start and end, UTC start and end, a timezone string and a timezone abbreviation, and it mirrors the occurrence into its own tables so that month and list views can be queried without touching post meta at all.

Reading that by hand means joining a table most people do not know exists. This ability goes through the calendar’s own query layer instead, so the results are the same ones the calendar’s own views would produce — including the parts that are easy to get wrong, like an event that spans midnight counting as running on both days.

Every result arrives resolved. The venue is a name and address, not an ID you then have to look up; the organizers are names and contact details; the cost is the string the site actually displays. One call, not one call plus a lookup per row.

Input

NameTypeRequiredWhat it is
starts_afterstringNoOnly events starting on or after this date. Accepts anything strtotime() understands — 2026-11-01 or next monday both work.
starts_beforestringNoOnly events starting before this date.
ends_afterstringNoOnly events ending after this date. Use it to catch multi-day events already in progress.
venueintegerNoOnly events at this venue.
organizerintegerNoOnly events with this organizer.
categorystring | integerNoEvent category slug or term ID.
featuredbooleanNoOnly featured events.
searchstringNoFree-text search over title and content.
statusstringNo — defaults to publishPost status, or any to include drafts and pending events.
pageintegerNo — defaults to 11-based page number.
per_pageintegerNo — defaults to 20Results per page, capped at 100.

What comes back

NameTypeWhat it is
eventsarrayOne entry per event: title, status, local and UTC start and end, timezone, all-day and multiday flags, cost, featured flag, resolved venue and organizers, and categories.
totalintegerTotal matching events, before paging.
pageintegerThe page returned.
per_pageintegerThe page size used.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

What events are on next week, and where are they being held?

It resolves to one call:

{
  "ability": "events/list-events",
  "parameters": {
    "starts_after": "next monday",
    "starts_before": "next monday +7 days",
    "status": "any"
  }
}

Worth knowing

  • An event that started yesterday and ends tomorrow will not match starts_after set to today. Add ends_after when you want events currently running.
  • Times come back twice over: local with the event’s timezone, and UTC. Compare across events in UTC; show a human the local pair.
  • Recurring events appear here as their occurrences. Editing a series is out of scope for this suite.
  • Drafts are excluded unless you ask for them. Event sites routinely hold half-finished events, so the default is the published calendar.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading