WP Webhooks / Docs / get_snippet
AI Ability Pro since v1.3.0

get_snippet

Get a Code Glue snippet — Get a single Code Glue snippet by id, including its full PHP code.

$

Get a single Code Glue snippet by id, including its full PHP code. Registered as the WordPress Ability flowsystems-webhook-actions/get_snippet, so external AI tools (Claude Code, Cursor) can call it over MCP or REST with a scoped API token.

/ Plan step shape

{ "ability": "get_snippet", "input": { "id":} }

/ 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

NameInTypeReqDescription
idparamintegeryesSnippet id

/ Examples

Plan step as the AI Builder proposes it

{
  "id": "step_1",
  "ability": "get_snippet",
  "summary": "…",
  "input": {
    "id": 4
  }
}

/ Related

Ready

Your next automation is
one sentence away.

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