geodirectory/list-listing-tabs returns the tab layout for a listing type: the tabs shown on a single listing page, with their IDs and sort order.
Tabs are not REST-exposed, so this reads them directly from the tab layout table.
At a glance
| Ability | geodirectory/list-listing-tabs |
| Toolset | GeoDirectory — toolset/geodirectory |
| Group | GeoDirectory › Tabs, Sorting & Blocks |
| Requires | AcrossAI Pro, plus GeoDirectory active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Pro 0.9.16 and later |
How it works
That is the reason this ability exists. GeoDirectory’s REST API covers listings, fields and locations; the tab layout is admin-only, which means nothing generic reaches it.
The IDs matter because every write to a tab addresses it by ID, and the sort order matters because reordering takes the complete list. Guessing either is how a reorder ends up with two tabs at the same position.
Tabs nest one level, so a parent tab has children and a child cannot. The parent relationship comes back with each row, which is what tells you whether deleting a tab cascades.
Read this before adding, reordering or removing a tab.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
post_type | string | No | Listing type, for example gd_place. Defaults to the site default. See geodirectory/get-directory-overview for the valid values. |
What comes back
| Name | Type | What it is |
|---|---|---|
tabs | array | Each tab with its ID, name, type, key, parent and sort order. |
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:
What tabs does a listing page show?
It resolves to one call:
{
"ability": "geodirectory/list-listing-tabs",
"parameters": {}
}Worth knowing
- Tabs are not in GeoDirectory’s REST API. Nothing generic reads them.
- Tabs nest one level only.
- The parent column tells you whether a delete would cascade.
- Read-only.
Related abilities
- GeoDirectory Manage Listing Tab — change the layout
- GeoDirectory Delete Listing Tab — remove one
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category