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

Start free trial

Get Declared Cookie

consent/get-cookie reads a single declared cookie by ID: its name, the category it sits in, the domain that sets it, how long it lasts, and its description.

Descriptions and durations come back keyed by language, so you can see exactly which translations exist and which are blank.

At a glance

Abilityconsent/get-cookie
ToolsetCookieYes — toolset/cookieyes
GroupCookieYes › Declared Cookies
RequiresCookieYes, 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 per-language storage is the reason this ability is worth having separately from the listing. A cookie’s description is not one string — it is one string per language the banner is offered in, and the gaps are invisible in an admin screen that shows you one language at a time.

Reading the whole record shows the gaps side by side. That matters before an update, because sending a plain string overwrites every language at once, and that is rarely what somebody fixing a German description intended.

The domain and duration fields are free text. The plugin does not validate them, and a duration of 1 year and one of 365 days are different strings describing the same thing.

Input

NameTypeRequiredWhat it is
idintegerYesCookie ID, from consent/list-cookies.

What comes back

NameTypeWhat it is
cookieobjectID, name, category, domain, type, URL pattern, and duration and description keyed by language.
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:

Show me everything we say about the _ga cookie.

It resolves to one call:

{
  "ability": "consent/get-cookie",
  "parameters": {
    "id": 41
  }
}

Worth knowing

  • Read this before updating a single language’s description.
  • The numeric type field is the consent plugin’s own. It publishes no meaning for the codes.
  • A blank description for a language shows blank to visitors in that language.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading