Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 08:15 UTC
chore(cli): remove --category flag from toolkits list
The flag passed a category ID to the API but gave users no way to discover valid category values. The --query flag already covers the main discovery use case. Category filtering can be re-added when a `composio toolkits categories` subcommand exists.
jkomyno committed
Feb 18, 2026 at 20:55 UTC
0487edb4879fcdae684cd405289abbbd03a32dd9
2 files changed
+36
-47
ts/packages/cli/src/commands/toolkits/commands/toolkits.list.cmd.ts
+35
-46
@@ -10,11 +10,6 @@ const query = Options.text('query').pipe(
10
Options.optional
11
);
12
13
-const category = Options.text('category').pipe(
14
- Options.withDescription('Filter by category ID'),
15
- Options.optional
16
-);
17
-
13
const limit = Options.integer('limit').pipe(
14
Options.withDefault(30),
15
Options.withDescription('Number of results per page (1-1000)')
@@ -30,53 +25,47 @@ const limit = Options.integer('limit').pipe(
25
* composio toolkits list --category "messaging" --limit 10
26
* ```
27
*/
33
-export const toolkitsCmd$List = Command.make(
34
- 'list',
35
- { query, category, limit },
36
- ({ query, category, limit }) =>
37
- Effect.gen(function* () {
38
- const ui = yield* TerminalUI;
39
- const ctx = yield* ComposioUserContext;
40
- const repo = yield* ComposioToolkitsRepository;
28
+export const toolkitsCmd$List = Command.make('list', { query, limit }, ({ query, limit }) =>
29
+ Effect.gen(function* () {
30
+ const ui = yield* TerminalUI;
31
+ const ctx = yield* ComposioUserContext;
32
+ const repo = yield* ComposioToolkitsRepository;
33
42
- // Auth guard
43
- if (Option.isNone(ctx.data.apiKey)) {
44
- yield* ui.log.warn('You are not logged in yet. Please run `composio login`.');
45
- return;
46
- }
34
+ // Auth guard
35
+ if (Option.isNone(ctx.data.apiKey)) {
36
+ yield* ui.log.warn('You are not logged in yet. Please run `composio login`.');
37
+ return;
38
+ }
39
48
- const clampedLimit = Math.max(1, Math.min(1000, limit));
40
+ const clampedLimit = Math.max(1, Math.min(1000, limit));
41
50
- const result = yield* ui.withSpinner(
51
- 'Fetching toolkits...',
52
- repo.searchToolkits({
53
- search: Option.getOrUndefined(query),
54
- category: Option.getOrUndefined(category),
55
- limit: clampedLimit,
56
- })
57
- );
42
+ const result = yield* ui.withSpinner(
43
+ 'Fetching toolkits...',
44
+ repo.searchToolkits({
45
+ search: Option.getOrUndefined(query),
46
+ limit: clampedLimit,
47
+ })
48
+ );
49
59
- if (result.items.length === 0) {
60
- yield* ui.log.warn('No toolkits found. Try broadening your search.');
61
- return;
62
- }
50
+ if (result.items.length === 0) {
51
+ yield* ui.log.warn('No toolkits found. Try broadening your search.');
52
+ return;
53
+ }
54
64
- const showing = result.items.length;
65
- const total = result.total_items;
55
+ const showing = result.items.length;
56
+ const total = result.total_items;
57
67
- yield* ui.log.info(`Listing ${showing} of ${total} toolkits`);
68
- yield* ui.log.message('');
69
- yield* ui.log.message(formatToolkitsTable(result.items));
58
+ yield* ui.log.info(`Listing ${showing} of ${total} toolkits`);
59
+ yield* ui.log.message('');
60
+ yield* ui.log.message(formatToolkitsTable(result.items));
61
71
- // Next step hint
72
- const firstSlug = result.items[0]?.slug;
73
- if (firstSlug) {
74
- yield* ui.log.message('');
75
- yield* ui.log.step(
76
- `To view details of a toolkit:\n> composio toolkits info "${firstSlug}"`
77
- );
78
- }
62
+ // Next step hint
63
+ const firstSlug = result.items[0]?.slug;
64
+ if (firstSlug) {
65
+ yield* ui.log.message('');
66
+ yield* ui.log.step(`To view details of a toolkit:\n> composio toolkits info "${firstSlug}"`);
67
+ }
68
80
- yield* ui.output(formatToolkitsJson(result.items));
81
- })
69
+ yield* ui.output(formatToolkitsJson(result.items));
70
+ })
71
).pipe(Command.withDescription('List available toolkits.'));
ts/packages/cli/test/src/commands/$default.cmd.test.ts
+1
-1
@@ -86,7 +86,7 @@ describe('CLI: composio', () => {
86
87
- toolkits Discover and inspect Composio toolkits.
88
89
- - toolkits list [--query text] [--category text] [--limit integer] List available toolkits.
89
+ - toolkits list [--query text] [--limit integer] List available toolkits.
90
91
- toolkits info [<slug>] View details of a specific toolkit.
92