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 1.13 KB
Rendered Raw
1 # CLI `composio dev toolkits info` Test
2
3 Verifies that `composio dev toolkits info <slug>` returns detailed toolkit JSON in piped mode, reports an invalid or missing slug on stderr with exit 1, and supports stdout redirection.
4
5 ## What It Tests
6
7 | Test | Description |
8 | ------------------ | ---------------------------------------------------------------------------------------------------- |
9 | Valid slug | `info gmail` returns JSON object with name, slug, meta, auth_config_details |
10 | Stdout redirection | `info gmail > out.json` captures the JSON in the file |
11 | Invalid slug | `info nonexistent_toolkit_xyz12345` exits 1, empty stdout, "not found" and the browse hint on stderr |
12 | Missing slug | `info` (no arg) exits 1, empty stdout, the usage message on stderr |
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 ```