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 22, 23:15 UTC
Fix docs
haxzie committed
Jun 19, 2025 at 15:14 UTC
f14753c650ed20c221f1ea4fcd47d9e21794c39c
2 files changed
+11
-8
ts/docs/api/providers.md
+11
@@ -292,3 +292,14 @@ type afterExecuteModifier = (
292
result: ToolExecuteResponse
293
) => ToolExecuteResponse;
294
```
295
+
296
+// Get tools with filters
297
+const githubTools = await composio.tools.getRawComposioTools({
298
+toolkits: ['github'],
299
+});
300
+
301
+// Get tools with schema transformation
302
+const tools = await composio.tools.getRawComposioTools({}, (toolSlug, toolkitSlug, tool) => {
303
+// Add custom properties to tool schema
304
+return { ...tool, customProperty: 'value' };
305
+});
ts/docs/api/tools.md
-8
@@ -18,7 +18,6 @@ const githubTools = await composio.tools.get('default', {
18
// Get tools with search
19
const searchTools = await composio.tools.get('default', {
20
search: 'user',
21
- important: true,
21
});
22
23
// Get a specific tool by slug
@@ -177,8 +176,6 @@ const tool = await composio.tools.getRawComposioToolBySlug('HACKERNEWS_GET_USER'
176
type ToolsOnlyParams = {
177
tools: string[]; // List of tool slugs to filter by
178
toolkits?: never; // Cannot be used with tools
180
- important?: never;
181
- cursor?: never;
179
limit?: never;
180
search?: never;
181
};
@@ -186,8 +183,6 @@ type ToolsOnlyParams = {
183
type ToolkitsOnlyParams = {
184
tools?: never; // Cannot be used with toolkits
185
toolkits: string[]; // List of toolkit slugs to filter by
189
- important?: boolean; // Filter for important tools
190
- cursor?: string; // Pagination cursor
186
limit?: number; // Limit the number of results
187
search?: never; // Cannot be used with important flag,
188
};
@@ -195,8 +190,6 @@ type ToolkitsOnlyParams = {
190
type ToolkitSearchOnlyParams = {
191
tools?: never; // Cannot be used with search
192
toolkits?: string[]; // Optional list of toolkit slugs to filter by
198
- important?: never; // Cannot be used with search
199
- cursor?: string; // Pagination cursor
193
limit?: number; // Limit the number of results
194
search: string; // Search term
195
};
@@ -223,7 +216,6 @@ const searchResults = await composio.tools.get('default', {
216
search: 'repository',
217
toolkits: ['github'], // optional
218
limit: 10,
226
- cursor: 'next-page',
219
});
220
```
221