context_fields_facets
Returns the distinct values of one column of the context field list itself — not of the lead values behind it — with their counts, ordered by count descending. This is the data behind the value checklist in the field list's column menus.
Filterable columns: key, description, field_type, use, order.
Pass the other columns' active qf entries to get counts that match what is on screen; any entry for field itself is ignored.
Method: GET /api/v1/workspaces/{workspace_sqid}/context-fields/facets/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"field": "<field>"
},
"name": "context_fields_facets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Only return values containing this substring. | |
| field | Yes | Column to facet on. | |
| limit | No | Max distinct values (default 50, max 200). |