Skip to content

Abilities API: Form Triggers#1105

Merged
n7studios merged 9 commits into
abilities-api-formsfrom
abilities-api-form-triggers
Jun 22, 2026
Merged

Abilities API: Form Triggers#1105
n7studios merged 9 commits into
abilities-api-formsfrom
abilities-api-form-triggers

Conversation

@n7studios

@n7studios n7studios commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

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

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

Improves the descriptions of the tools.

Testing

  • MCPContentFormTriggerTest: 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 28, 2026
@n7studios n7studios self-assigned this May 28, 2026
@github-actions

Copy link
Copy Markdown

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team June 17, 2026 13:32
@n7studios n7studios marked this pull request as ready for review June 17, 2026 13:32

@ciccio-kit ciccio-kit left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before approving this, could you double-check that the shared get_input_schema_property_type() mapping in class-convertkit-mcp-ability-content.php doesn't need updating? In theory form triggers should have different fields that would fall through the map and return their own key rather than "string" as a type

@n7studios

Copy link
Copy Markdown
Contributor Author

before approving this, could you double-check that the shared get_input_schema_property_type() mapping in class-convertkit-mcp-ability-content.php doesn't need updating? In theory form triggers should have different fields that would fall through the map and return their own key rather than "string" as a type

Fixed to return string as the type for this. Thanks!

@n7studios n7studios requested a review from ciccio-kit June 19, 2026 02:31
@github-actions

Copy link
Copy Markdown

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@ciccio-kit ciccio-kit left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@n7studios n7studios merged commit d2f93d8 into abilities-api-forms Jun 22, 2026
@n7studios n7studios deleted the abilities-api-form-triggers branch June 22, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants