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 21, 04:45 UTC
| 1 | import { Argument, Command, Flag } from 'effect/cli'; |
| 2 | import { runToolsList } from './tools.list.handler'; |
| 3 | |
| 4 | const toolkit = Argument.String('toolkit').pipe( |
| 5 | Argument.withDescription('Toolkit slug to list tools for (e.g. "gmail")') |
| 6 | ); |
| 7 | |
| 8 | const query = Flag.String('query').pipe( |
| 9 | Flag.withDescription('Text search by name, slug, or description'), |
| 10 | Flag.optional |
| 11 | ); |
| 12 | |
| 13 | const tags = Flag.String('tags').pipe( |
| 14 | Flag.withDescription('Filter by tags (e.g. "important")'), |
| 15 | Flag.optional |
| 16 | ); |
| 17 | |
| 18 | const limit = Flag.Int('limit').pipe( |
| 19 | Flag.withDefault(30), |
| 20 | Flag.withDescription('Number of results per page (1-1000)') |
| 21 | ); |
| 22 | |
| 23 | export const toolsCmd$List = Command.make( |
| 24 | 'list', |
| 25 | { toolkit, query, tags, limit }, |
| 26 | runToolsList |
| 27 | ).pipe(Command.withDescription('List available tools for a toolkit.')); |