snippets/list-packs lists WPCode’s snippet packs — themed bundles of library snippets — with the count in each and whether the pack is already installed on this site.
Listing installs nothing.
At a glance
| Ability | snippets/list-packs |
| Toolset | WPCode — toolset/wpcode |
| Group | WPCode › The Library |
| Requires | WPCode, active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Abilities Manager 0.0.34 and later |
How it works
A pack is a set of snippets that go together: a WooCommerce pack, a security pack, a disable-things pack. Applying one installs all of them in a single call, which is convenient and is also the reason the apply ability is gated.
The installed flag is what stops a pack being applied twice. Individual snippets already present are skipped rather than duplicated on apply, but knowing before you start is better than reading a skipped count afterwards.
The count per pack is the number worth reading. A pack of three is a decision; a pack of twenty is twenty pieces of third-party code arriving at once, and reviewing them is real work.
Input
This ability takes no input.
What comes back
| Name | Type | What it is |
|---|---|---|
packs | array | One entry per pack: slug, title, snippet count and whether it is installed here. |
library_connected | boolean | Whether the site is signed in to the library. |
connect_url | string | Where to connect, when it is not. |
count | integer | How many packs are available. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present 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:
What snippet packs are available?
It resolves to one call:
{
"ability": "snippets/list-packs",
"parameters": {}
}Worth knowing
- The snippet count is how much code the pack brings. Read it before applying.
- Installing a pack needs the site signed in to the library.
- Nothing is installed by listing.
Related abilities
- Apply Snippet Pack — install everything in one
- Search Snippet Library — install snippets individually instead
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category