---
title: "get_trigger_schema — AI Ability"
description: "Get captured payload + mapping for a trigger — Return the last captured example payload, field mapping and conditions for a webhook+trigger so the agent can map against the real payload shape."
url: "https://wpwebhooks.org/docs/ability-get-trigger-schema/"
---

[WP Webhooks](/) / [Docs](/docs/) / get\_trigger\_schema

AI Ability since v2.0.0

# get\_trigger\_schema

Get captured payload + mapping for a trigger — Return the last captured example payload, field mapping and conditions for a webhook+trigger so the agent can map against the real payload shape.

Return the last captured example payload, field mapping and conditions for a webhook+trigger so the agent can map against the real payload shape. Registered as the WordPress Ability `flowsystems-webhook-actions/get_trigger_schema`, so external AI tools (Claude Code, Cursor) can call it over MCP or REST with a scoped API token.

/ Plan step shape

```
{ "ability": "get_trigger_schema", "input": { "webhook_id": …, "trigger": … } }
```

/ Scope & confirmation

Minimum API-token scope for external (MCP/REST) callers: `read`. Read-only — the agent runs it freely while planning and verifying.

/ Input fields

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| webhook\_id | param | integer | yes |  |
| trigger | param | string | yes |  |

/ Examples

Plan step as the AI Builder proposes it

```
{
  "id": "step_1",
  "ability": "get_trigger_schema",
  "summary": "…",
  "input": {
    "webhook_id": 12,
    "trigger": "wpcf7_mail_sent"
  }
}
```

/ Related

[set\_mapping](/docs/ability-set-mapping/)[set\_conditions](/docs/ability-set-conditions/)[Payload Mapping](/docs/payload-mapping/)[REST API reference](/webhook-wordpress-plugin-api/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"get_trigger_schema — AI Ability — Webhook Actions Docs","description":"Get captured payload + mapping for a trigger — Return the last captured example payload, field mapping and conditions for a webhook+trigger so the agent can map against the real payload shape.","url":"https://wpwebhooks.org/docs/ability-get-trigger-schema/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
