Skip to content

Abilities API: Forms#1104

Draft
n7studios wants to merge 6 commits into
abilities-api-resourcesfrom
abilities-api-forms
Draft

Abilities API: Forms#1104
n7studios wants to merge 6 commits into
abilities-api-resourcesfrom
abilities-api-forms

Conversation

@n7studios
Copy link
Copy Markdown
Contributor

Summary

Registers four abilities (MCP tools) for the Form block/shortcode, so an MCP client can list, insert, update and delete Kit Forms inside a post's content.

Screenshot 2026-05-27 at 22 53 02
Ability Description Required input Output
kit/form-list Lists every Kit Form block in the given post, with each occurrence's index and form ID. post_id { post_id, count, occurrences: [{ occurrence_index, attrs }] }
kit/form-insert Inserts a new Kit Form block. Position: append (default), prepend, or index with numeric index. post_id, attrs.form { post_id, occurrence_index }
kit/form-update Updates the attrs of a specific Form block by occurrence index. post_id, occurrence_index, attrs.form { post_id, occurrence_index }
kit/form-delete Removes a specific Form block by occurrence index. post_id, occurrence_index { post_id, occurrence_index }

Improves the descriptions of the tools.

Testing

  • MCPContentFormTest: Tests that MCP tools are registered, permissions are honored, insert/update/delete tools work.

Checklist

@n7studios n7studios added this to the 3.4.0 milestone May 27, 2026
@n7studios n7studios self-assigned this May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant