Skip to content

Manage WPForms Forms with AI ​

Use Easy MCP AI to ask an AI client to manage your WPForms forms and supported fields.

In this article

Before you start ​

  1. Install and activate WPForms.
  2. In WordPress, go to Easy MCP AI > Tools, search for WPForms, and enable the tools you need. Click Save changes.
  3. Make sure your AI client's connection allows the tools. The connected WordPress user also needs WPForms' form-management capability, manage_options by default.

Use the actual form and field IDs from WPForms when asking your AI client to make a change. A field ID can start at zero and is not the field's position in the form.

Trash, restore, or delete a form ​

Ask your AI client to use the form's form_id with the appropriate tool:

ActionTool and effect
Move to Trashwp_wpforms_delete_form moves the form to Trash when force is omitted or set to false.
Restorewp_wpforms_restore_form restores a trashed form to published status, so its embedded forms display again.
Permanently deletewp_wpforms_delete_form with force: true permanently deletes the form.

Permanent deletion cannot be undone. WPForms Pro also deletes the form's entries when the form is permanently deleted.

Trashing or deleting a form leaves its embeds displaying nothing. Review the returned locations and locations_withheld: the latter counts locations the connected account cannot read. Check the returned status before treating the action as complete.

Delete or move a field ​

Ask your AI client to use the form and field IDs with the appropriate tool:

ActionTool and required arguments
Delete a fieldwp_wpforms_delete_field requires form_id and field_id.
Move a fieldwp_wpforms_move_field requires form_id, field_id, and position. Positions count from 1 to the number of fields.

Deleting a field preserves the other field IDs and values already stored in submitted entries. The tool cannot delete non-deletable fields, page breaks, layouts, repeaters, or fields inside layouts or repeaters.

Moving fields is refused for any form containing a page break, layout, or repeater. Use the WPForms builder for those forms. Moving a field to its existing position returns updated: false without saving.

For either field edit, a form containing HTML requires an account with the unfiltered_html capability; otherwise WPForms would strip HTML from the whole form when saving. Review the returned fields and also_changed after saving, because WPForms can adjust additional form data.

Was this helpful?