---
title: "list_snippets — AI Ability"
description: "List Code Glue snippets — List saved Code Glue PHP snippets (id, name, tags — use get_snippet for the code)."
url: "https://wpwebhooks.org/docs/ability-list-snippets/"
---

[WP Webhooks](/) / [Docs](/docs/) / list\_snippets

AI Ability Pro since v1.3.0

# list\_snippets

List Code Glue snippets — List saved Code Glue PHP snippets (id, name, tags — use get\_snippet for the code).

List saved Code Glue PHP snippets (id, name, tags — use get\_snippet for the code). Snippets transform the payload before dispatch (pre) or run side effects after the response (post) once assigned to a webhook+trigger. Registered as the WordPress Ability `flowsystems-webhook-actions/list_snippets`, so external AI tools (Claude Code, Cursor) can call it over MCP or REST with a scoped API token.

/ Plan step shape

```
{ "ability": "list_snippets", "input": { "search": … } }
```

/ 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 |
| --- | --- | --- | --- | --- |
| search | param | string | — | Filter by name or code substring. |

/ Examples

Plan step as the AI Builder proposes it

```
{
  "id": "step_1",
  "ability": "list_snippets",
  "summary": "…",
  "input": {
    "search": "hubspot"
  }
}
```

/ Related

[get\_snippet](/docs/ability-get-snippet/)[create\_snippet](/docs/ability-create-snippet/)[Code Glue](/docs/code-glue/)[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":"list_snippets — AI Ability — Webhook Actions Docs","description":"List Code Glue snippets — List saved Code Glue PHP snippets (id, name, tags — use get_snippet for the code).","url":"https://wpwebhooks.org/docs/ability-list-snippets/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
