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

Start free trial

List Snippet Packs

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

Abilitysnippets/list-packs
ToolsetWPCode — toolset/wpcode
GroupWPCode › The Library
RequiresWPCode, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI 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

NameTypeWhat it is
packsarrayOne entry per pack: slug, title, snippet count and whether it is installed here.
library_connectedbooleanWhether the site is signed in to the library.
connect_urlstringWhere to connect, when it is not.
countintegerHow many packs are available.
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:

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


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading