cli.list
Overview
- Discovery step 1 of the cli_call workflow: lists CLI commands as compact one-line summaries (id + short summary), paginated. Filter by category and/or a keyword (query) over id/name/description/category. Returns at most 'limit' rows (default 30); page the rest with 'offset'. Keep results small to save context: narrow with query/category, then read a single command's full params with cli_help before cli_call. The MCP resource inzoi://cli/catalog has the same compact listing for all commands.
Metadata
| Field | Value |
|---|---|
| Display | List CLI Commands |
| Category | cli |
| Access | Public |
| Scope | Both |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| category | string | no | — | Category filter (e.g. stat, economy) |
| query | string | no | — | Case-insensitive keyword filter over id, display name, description, and category |
| limit | int | no | 30 | Max rows to return (default 30, max 100) |
| offset | int | no | 0 | Row offset for pagination (default 0) |
Returns
Returns a JSON array; each element is an object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | Command identifier |
category | string | yes | Command category |
summary | string | yes | Short one-line description (truncated; full text via cli_help) |
access | string | yes | Access level |
has_returns | bool | yes | Whether a return schema is declared |
Usage
await inzoi.cli.execute('cli.list', {
category: '', // optional
query: '', // optional
limit: 30, // optional
offset: 0, // optional
});