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

Install Free Plugin →

Get SureForms Form Details

Read-only
SureForms Forms sureforms/get-form

Retrieve a single SureForms form's fields, key settings, and shortcode.

Requires the SureForms plugin on WordPress 6.9+ (the Abilities API is gated behind function_exists('wp_register_ability'), so it degrades gracefully on WP 6.4-6.8). Abilities only register when the 'srfm_abilities_api' option is enabled in SureForms' AI settings, and every ability requires the current user to have the 'manage_options' capability. Abilities that create or modify data additionally require the 'srfm_abilities_api_edit' option to not be explicitly disabled; abilities that permanently delete data additionally require 'srfm_abilities_api_delete' to not be explicitly disabled.

What it does

This ability fetches a form by ID, parses its Gutenberg block content recursively to extract each field's type, label, slug, and required flag, and reads a handful of key post-meta settings (submit button text, label-as-placeholder, container width, instant form, submit alignment, and reCAPTCHA status). It also returns the form's embed shortcode. This gives an AI assistant the full structural picture of a form so it can explain, audit, or propose edits to it without opening the block editor.

See it in action

You ask your AI assistant

"Show me all the fields on form 42 and tell me which ones are required."

Inputs

Name Type Required Description
form_id integer Yes The ID of the form to retrieve.

Returns

An object with form_id, title, status, a fields array (type, label, slug, required per field), a settings object, and the shortcode.

Permission

Requires the 'manage_options' capability, and the 'srfm_abilities_api' master option must be enabled. This ability has no additional gate option.

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.