WordPress 7.2 adds abilities that let AI query content, users and settings
The Abilities API gains three read-only abilities: core/content-query, core/users-query and core/settings-get, with filters, field selection and pagination. What is returned depends on the user's capabilities, and custom post types and settings must opt in through the new show_in_abilities argument. It lays the groundwork for agents and the WordPress AI Client to work with real site data.