Governed ability
Create comment
aafm/create-comment Guarded write
Add a pending comment to a post as the agent user (requires moderate_comments).
How it is governed
The same model as every ability in the plugin, stated for this one.
- Off until you enable it
Like every ability, Create comment ships switched off. You turn it on one at a time, and an update never widens access on its own.
- Guarded write
Writes stay conservative, and the plugin re-checks the capability before the call runs.
- Capability gated
A connection only sees Create comment if the user you connected can run it, and the plugin checks that capability again before it executes.
- Every call audited
The call is written to the log in your own database, denials included, with the argument keys but never the values.
See it in action
An illustrative run. Your real calls and data stay on your own site.
Try it with a prompt
Example requests you could paste to your agent.
Post a reply comment on article 142 answering the reader question.
Add a comment under post 55 as the agent account.
Leave a note as a comment on this post for the team to see.
These are illustrative example prompts. The agent runs them as the user you connected, checked against that user's capabilities and written to your audit log.
Frequently asked
Short answers for Create comment.
Is the new comment published immediately?
No. It is added as a pending comment, so it waits in the moderation queue until a human approves it.
Who is it attributed to?
The comment is created as the agent user, not a spoofed visitor. It requires the moderate_comments capability.
Is it audited and off by default?
Yes to both. Every create is logged, and the ability stays off until enabled.
Governed by default, from the first call.
Create comment is off until you enable it, scoped to the user you connect, and logged like everything else. Turn on only what you need.
Every ability off until you enable it, capability-gated on every call.