Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Merge branch 'next' into haxzie/fix/send-empty-objects-for-tools-with-no-payload-2026-03-06
Musthaq Ahamad1a8b834cd296
diff --cc ts/packages/cli/test/src/commands/tools/tools.execute.cmd.test.tsindex 874a7d68b,fa2eb9068..c925ba536--- a/ts/packages/cli/test/src/commands/tools/tools.execute.cmd.test.ts+++ b/ts/packages/cli/test/src/commands/tools/tools.execute.cmd.test.ts@@@ -599,23 -619,23 +619,31 @@@ describe('CLI: composio manage tools exTestLive({baseConfigProvider: testConfigProvider,stdin: { isTTY: true, data: '' },+ toolsExecutor: {+ respondWith: {+ data: { executed: true },+ error: null,+ successful: true,+ logId: 'log_test',+ },+ },})- )('[Given] no -d and TTY stdin [Then] fails with missing input error', it => {- it.scoped('fails with missing input error', () =>+ )('[Given] no -d and TTY stdin [Then] defaults to empty object and executes', it => {+ it.scoped('defaults to {} when no data provided', () =>Effect.gen(function* () {- yield* cli(['tools', 'execute', 'GMAIL_SEND_EMAIL', '--user-id', 'default']);- const lines = yield* MockConsole.getLines({ stripAnsi: true });- const output = lines.join('\n');- expect(output).toContain('successful');- expect(output).toContain('executed');+ const result = yield* cli([+ 'manage',+ 'tools',+ 'execute',+ 'GMAIL_SEND_EMAIL',+ '--user-id',+ 'default',+ ]).pipe(Effect.catchAll(e => Effect.succeed(e)));++ expect(result).toBeDefined();+ expect(result instanceof Error ? result.message : String(result)).toContain(+ 'Missing JSON input'+ );}));});