30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Get Contact Form

A Contact Form 7 form is five separate things wearing one name: a template of field tags, a notification mail, an optional autoresponder, a set of validation messages, and a block of behaviour settings. Change one without knowing the others and you get a form that saves cleanly and fails quietly.

contact-form-7/get-form returns all five, plus the shortcode and Contact Form 7’s own configuration errors, in one read.

At a glance

Abilitycontact-form-7/get-form
ToolsetContact Form 7 — toolset/contact-form-7
GroupContact Form 7 › Forms
RequiresContact Form 7, active on the site
Capabilitymanage_options, plus read_contact_forms
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

This is the call to make before any edit. Every update ability in this suite patches individual properties, and knowing the current template is what makes a field edit safe — particularly since a field name appearing in a mail body is an invisible dependency.

The configuration errors come from Contact Form 7’s own validator, so they are the same warnings the admin screen would show you.

If you only need to know what fields exist, contact-form-7/list-form-fields is lighter and returns them parsed rather than as raw markup.

Input

NameTypeRequiredWhat it is
form_idintegerYesForm post ID, as returned by contact-form-7/list-forms.

What comes back

NameTypeWhat it is
formobjectTitle, locale, template, both mail templates, messages, additional settings and the shortcode.
config_errorsarrayWhat Contact Form 7’s validator flags against this form.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Show me everything about form 42 before I change the notification email.

It resolves to one call:

{
  "ability": "contact-form-7/get-form",
  "parameters": {
    "form_id": 42
  }
}

Worth knowing

  • Read this first, then patch. The update abilities replace whole properties rather than merging into them, so a partial mail object would drop the fields you left out.
  • Field names are load-bearing. One appearing in a mail body means renaming the field breaks the notification with no error anywhere.
  • For the raw template markup alone, contact-form-7/get-form-template is the narrower read.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading