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

Start free trial

Get Library Snippet

snippets/get-library-snippet reads one library snippet by its library ID: what it claims to do, its code type, its details.

Read it before installing. A library snippet is third-party code that will run on this site once activated.

At a glance

Abilitysnippets/get-library-snippet
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 search results carry enough to choose between snippets. They do not carry enough to decide whether you want this one running on your site, and that decision is the whole point of the gap between searching and installing.

The code type is the first thing to look at. A CSS snippet from the library is styling; a PHP snippet is arbitrary code executing in your site’s context with your database credentials available to it. Both are perfectly reasonable things to install; they are not the same decision.

Reading here costs nothing and installs nothing. The install is a separate, confirmed call.

Input

NameTypeRequiredWhat it is
library_idintegerYesLibrary snippet ID, from snippets/search-library.

What comes back

NameTypeWhat it is
snippetobjectThe library snippet: title, note, category, code type and details.
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 does library snippet 3312 actually do?

It resolves to one call:

{
  "ability": "snippets/get-library-snippet",
  "parameters": {
    "library_id": 3312
  }
}

Worth knowing

  • Reading installs nothing.
  • Check the code type. PHP from the library runs with full access to the site.
  • Fetching the body requires the site to be signed in to the library.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading