Skip to main content

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

FieldValue
DisplayList CLI Commands
Categorycli
AccessPublic
ScopeBoth
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
categorystringno—Category filter (e.g. stat, economy)
querystringno—Case-insensitive keyword filter over id, display name, description, and category
limitintno30Max rows to return (default 30, max 100)
offsetintno0Row offset for pagination (default 0)

Returns

Returns a JSON array; each element is an object with the following fields:

FieldTypeRequiredDescription
idstringyesCommand identifier
categorystringyesCommand category
summarystringyesShort one-line description (truncated; full text via cli_help)
accessstringyesAccess level
has_returnsboolyesWhether a return schema is declared

Usage

await inzoi.cli.execute('cli.list', {
category: '', // optional
query: '', // optional
limit: 30, // optional
offset: 0, // optional
});