Mantle registers twelve abilities with the WordPress Abilities API. Abilities are the tool surface the AI chatbot calls, and they are also reachable by any other Abilities API client on the site.
Registered abilities
Verified with wp_get_abilities() on a running installation. All identifiers use the mantle/ prefix.
mantle/* abilities
includes/Model/Abilities/, each extending Ability_Abstract and registered by Modules\AI_Chatbot\Abilities_Registrar.-
mantle/get-poststring -
Retrieve a single post.
-
mantle/search-postsstring -
Search posts.
-
mantle/get-content-detailsstring -
Retrieve details about a piece of content.
-
mantle/create-post-draftstring -
Create a draft post. Writes content.
-
mantle/create-page-draftstring -
Create a draft page. Writes content.
-
mantle/publish-poststring -
Publish a post. Makes content public.
-
mantle/generate-block-contentstring -
Generate new block markup.
-
mantle/rewrite-block-contentstring -
Rewrite the content of an existing block.
-
mantle/plan-block-editstring -
Produce a plan for editing blocks without applying it.
-
mantle/generate-post-featured-imagestring -
Generate and attach a featured image. Creates a media attachment.
-
mantle/set-permalink-structurestring -
Change the site permalink structure. Site-wide effect.
-
mantle/rememberstring -
Persist a note into the chatbot’s memory, stored in the
ai_chatbot_memorysetting.
No fields match this filter.
Enumerate abilities on your own site
wp eval 'foreach ( wp_get_abilities() as $name => $ability ) { if ( 0 === strpos( $name, "mantle/" ) ) { echo $name . PHP_EOL; } }'mantle/get-post
mantle/create-post-draft
mantle/generate-post-featured-image
mantle/publish-post
mantle/search-posts
mantle/set-permalink-structure
mantle/create-page-draft
mantle/get-content-details
mantle/rewrite-block-content
mantle/generate-block-content
mantle/plan-block-edit
mantle/remember
Abilities are also exposed over REST by the Abilities API itself at /wp-json/wp-abilities/v1/, independently of Mantle's own mantle/v1 namespace.
Relationship to the AI routes
Three Mantle REST routes wrap abilities for the block editor:
Editor to ability
Generated block markup passes through validation before it reaches the editor. Modules\AI_Chatbot\Validation contains a block validator, a markup sanitizer, a design linter, and a content preparer, so malformed or off-brand markup is rejected or repaired rather than inserted directly.