Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
md 22 lines 747 Bytes
Rendered Raw
1 # CLI `composio dev toolkits search` Test
2
3 Verifies that `composio dev toolkits search <query>` returns matching toolkits as JSON in piped mode, respects `--limit`, supports stdout redirection, and handles queries with no results.
4
5 ## What It Tests
6
7 | Test | Description |
8 | --- | --- |
9 | Known query | `search gmail` returns JSON array with "gmail" as first result |
10 | With limit | `search gmail --limit 1` returns exactly 1 element |
11 | Stdout redirection | `search gmail --limit 1 > out.json` captures JSON in the file |
12 | No results | `search xyznonexistent_abc_12345` returns empty stdout |
13
14 ## Requirements
15
16 - `COMPOSIO_USER_API_KEY` (**required**) — Composio user API key passed to the container
17
18 ## Running
19
20 ```bash
21 pnpm test:e2e:cli
22 ```