segments_list
Returns all segments ordered by priority desc, name asc. Pinned segments still appear in the global order — pinned is a UI hint, not a sort key. Use ?name= for substring filter.
Method: GET /api/v1/workspaces/{workspace_sqid}/segments/
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": "segments_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}]`. | |
| limit | No | Number of results to return per page. | |
| offset | No | The initial index from which to return the results. | |
| search | No | A search term. | |
| ordering | No | Which field to use when ordering the results. |