Get Form is a WordPress ability from Ninja Forms — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get Form

Read-only
Ninja Forms Forms ninjaforms/get-form

Retrieve a form's full configuration — settings, fields, actions, and calculations.

Requires the Ninja Forms plugin on WordPress 6.9+ for the Abilities API (all 32 abilities are registered only when the wp_register_ability() function exists, via NF_Abilities_Integration::load_abilities_api() running on plugins_loaded). Every ability is gated by the same ninja_forms_ability_can_manage_forms() permission callback, requiring the caller to hold WordPress's manage_options capability or Ninja Forms' own nf_edit_forms capability.

What it does

This ability returns everything Ninja Forms knows about a form: its settings object, its complete field list, its configured actions, and any calculator calculations, with each of the three collections individually toggle-able via include_fields/include_actions/include_calculations. It's the ability an AI assistant runs before making a targeted change — such as updating one field or editing an action's email message — so it can resolve field_id, action_id, or a calculation's name from the user's plain-language description ('the email field', 'the confirmation email') rather than assuming an ID.

See it in action

You ask your AI assistant

"Get the full configuration of form 12, including its fields, actions, and calculations."

Inputs

Name Type Required Description
form_id integer Yes The numeric ID of the form to retrieve.
include_fields boolean No Include field details in the response. Defaults to true.
include_actions boolean No Include action details in the response. Defaults to true.
include_calculations boolean No Include calculations in the response. Defaults to true.

Returns

An object with a 'success' boolean, a 'form' object (id, title, created_at, settings, fields, actions, calculations), and a 'message'.

Permission

The current user must have WordPress's 'manage_options' capability or Ninja Forms' own 'nf_edit_forms' capability (checked via the shared ninja_forms_ability_can_manage_forms() permission callback).

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.