Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
docs: minor fixes to fetching tools page
- Use consistent variable names (connected, searched) - Remove redundant import/init from browsing section - Use string literal for user_id - Add "top 20 by default" note for tools listing Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Jan 26, 2026 at 17:48 UTC
6343b8e8c1040d2966451a1fffd9da54e0591cf3
1 file changed
+5
-9
docs/content/docs/toolkits/fetching-tools-and-toolkits.mdx
+5
-9
@@ -43,8 +43,8 @@ You can filter to only connected toolkits or search by name:
43
<Tabs groupId="language" items={['Python', 'TypeScript']} persist>
44
<Tab value="Python">
45
```python
46
-result = session.toolkits(is_connected=True) # Only connected
47
-result = session.toolkits(search="github") # Search by name
46
+connected = session.toolkits(is_connected=True) # Only connected
47
+searched = session.toolkits(search="github") # Search by name
48
```
49
</Tab>
50
<Tab value="TypeScript">
@@ -127,15 +127,11 @@ You can explore all 800+ toolkits at [platform.composio.dev](https://platform.co
127
<Tabs groupId="language" items={['Python', 'TypeScript']} persist>
128
<Tab value="Python">
129
```python
130
-from composio import Composio
131
-
132
-composio = Composio()
133
-
130
# List toolkits
131
toolkits = composio.toolkits.get()
132
137
-# List tools within a toolkit
138
-tools = composio.tools.get(user_id, toolkits=["GITHUB"])
133
+# List tools within a toolkit (top 20 by default)
134
+tools = composio.tools.get("user_123", toolkits=["GITHUB"])
135
```
136
</Tab>
137
<Tab value="TypeScript">
@@ -147,7 +143,7 @@ const userId = 'user_123';
143
// List toolkits
144
const toolkits = await composio.toolkits.get();
145
150
-// List tools within a toolkit
146
+// List tools within a toolkit (top 20 by default)
147
const tools = await composio.tools.get(userId, { toolkits: ["GITHUB"] });
148
```
149
</Tab>