Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Fix adding limit support in tools get
haxzie committed
Jun 17, 2025 at 13:59 UTC
5d52ed4791586f0675457a29dcc028cd88954673
1 file changed
+7
-1
ts/packages/core/src/models/Tools.ts
+7
-1
@@ -278,6 +278,12 @@ export class Tools<
278
);
279
}
280
281
+ // if tools are provided, set the limit to 9999 so that all tools are fetched
282
+ let limit = 'limit' in queryParams.data ? queryParams.data.limit?.toString() : undefined;
283
+ if ('tools' in queryParams.data) {
284
+ limit = '9999';
285
+ }
286
+
287
const tools = await this.client.tools.list({
288
tool_slugs: 'tools' in queryParams.data ? queryParams.data.tools?.join(',') : undefined,
289
toolkit_slug:
@@ -289,7 +295,7 @@ export class Tools<
295
? 'true'
296
: 'false'
297
: undefined,
292
- limit: 'limit' in queryParams.data ? queryParams.data.limit?.toString() : undefined,
298
+ limit: limit,
299
search: 'search' in queryParams.data ? queryParams.data.search : undefined,
300
});
301