workspaces_context_fields_list
Context fields are the schema for the context JSON blob on every lead: which keys exist, what they mean, and what type they hold.
Returns a flat array by default. Pass ?page=N to get the paginated shape {count, num_pages, page, per_page, results} instead — the flat default is kept because several callers consume the list directly.
Method: GET /api/v1/workspaces/{workspace_sqid}/context-fields/
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "workspaces_context_fields_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qf | No | Ad-hoc column filters as a JSON array, ANDed on top of the other query parameters. Each entry is `{"field": <key>, "op": <operator>, ...}` where `op` is `in` (with `values`, a `null` element meaning blanks) or one of `=`, `!=`, `>`, `>=`, `<`, `<=`, `contains`, `is empty`, `is not empty` (with `value`, except for the last two). Entries are ANDed; values within one `in` entry are ORed. Example: `[{"field":"is_active","op":"=","value":true}]`. | |
| search | No | A search term. | |
| ordering | No | Which field to use when ordering the results. |