Proposal: Structured content context abilities for WordPress AI #835
antunjurkovic-collab
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
WordPress AI tools need a small, authenticated, read-only way to retrieve current post/page context without relying on scraping, stale model knowledge, custom MCP-only integrations, or mutation-capable APIs.
I’m proposing a narrow pattern:
Structured Content Context Abilities: authenticated REST endpoints plus optional WordPress Abilities API registrations for read-only post/page context.
This is REST/Application Password first, with Abilities API discovery when available.
Why
For AI tools and agents, the common need is simple:
ETag/If-None-Match.This should be possible through normal WordPress authentication and permissions, without inventing write routes or requiring MCP as the first integration path.
This is intended to complement existing post/context helpers and AI experiments, not replace REST or existing Core AI building blocks.
Reference implementation
I created a small reference plugin:
https://github.com/antunjurkovic-collab/wp-context-abilities
Proposal draft:
https://github.com/antunjurkovic-collab/wp-context-abilities/blob/main/docs/WORDPRESS-AI-CONTEXT-ABILITIES-PROPOSAL.md
Current v0 scope:
/wp-json/wp-context/v1;ETagvalidators andContent-Digestintegrity headers;Live validator currently passes 27 checks with 0 failures.
Changed-content discovery currently uses high-water cursor semantics. Clients should page through all results for a fixed
sincevalue, then store the returned cursor for the next sync. Feedback on whether WordPress AI tooling would prefer high-water cursors, next-page cursors, or both is welcome.Non-goals
This is not:
Discussion question
Would a small read-only Structured Content Context Ability surface be useful for WordPress AI tooling, especially as a REST/Application Password-first pattern with optional Abilities API discovery?
Specific feedback I’d value:
All reactions