Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | import { Argument, Command, Flag } from 'effect/cli'; |
| 2 | import { runToolkitsInfo } from './toolkits.info.handler'; |
| 3 | |
| 4 | const slug = Argument.String('slug').pipe( |
| 5 | Argument.withDescription('Toolkit slug (e.g. "gmail")'), |
| 6 | Argument.optional |
| 7 | ); |
| 8 | |
| 9 | const allDetails = Flag.Boolean('all').pipe( |
| 10 | Flag.withAlias('a'), |
| 11 | Flag.withDefault(false), |
| 12 | Flag.withDescription('Show all available toolkit details, including auth config fields') |
| 13 | ); |
| 14 | |
| 15 | /** |
| 16 | * View details of a specific toolkit including connection status. |
| 17 | * |
| 18 | * @example |
| 19 | * ```bash |
| 20 | * composio dev toolkits info "gmail" |
| 21 | * composio dev toolkits info "github" --user-id "alice" |
| 22 | * ``` |
| 23 | */ |
| 24 | export const toolkitsCmd$Info = Command.make('info', { slug, allDetails }, runToolkitsInfo).pipe( |
| 25 | Command.withDescription('View details of a specific toolkit.') |
| 26 | ); |