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

Start free trial

Search Snippet Library

snippets/search-library searches WPCode’s hosted library of ready-made snippets, and returns the library ID an install needs.

Searching installs nothing and runs nothing.

At a glance

Abilitysnippets/search-library
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

The library is WPCode’s collection of prewritten snippets — disable comments, add a favicon, change the login logo, the standard requests. Searching it is the fast path to a solution somebody has already written and tested.

Searching works without being signed in to the library. Fetching a snippet body does not, which is why the response reports the connection state and, when disconnected, where to connect. You can browse and plan without an account and then find you cannot install.

What comes back is metadata: title, note, category, code type, library ID. Read the snippet itself with snippets/get-library-snippet before installing — especially the code type, since a PHP snippet from the library is still code that will run on your site.

Input

NameTypeRequiredWhat it is
searchstringNoFree text matched against title, note and category. Omit to list everything.
per_pageintegerNoMaximum rows to return.

What comes back

NameTypeWhat it is
resultsarrayMatching library snippets with their library IDs.
library_connectedbooleanWhether the site is signed in to the library.
connect_urlstringWhere to connect, when it is not.
countintegerHow many results were returned.
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:

Is there a ready-made snippet for disabling the REST API for logged-out users?

It resolves to one call:

{
  "ability": "snippets/search-library",
  "parameters": {
    "search": "rest api"
  }
}

Worth knowing

  • Searching needs no account. Installing does.
  • Nothing is installed or executed by searching.
  • Note the code type in the results — a PHP snippet is code that will run here.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading