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
| Ability | consent/get-cookie |
| Toolset | CookieYes — toolset/cookieyes |
| Group | CookieYes › Declared Cookies |
| Requires | CookieYes, 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
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
| Name | Type | Required | What it is |
|---|---|---|---|
id | integer | Yes | Cookie ID, from consent/list-cookies. |
What comes back
| Name | Type | What it is |
|---|---|---|
cookie | object | ID, name, category, domain, type, URL pattern, and duration and description keyed by language. |
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:
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
- Update Declared Cookie — change what it says
- List Banner Languages — which languages need text
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category