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: combine enable toolkit syntax examples
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Jan 26, 2026 at 18:10 UTC
9635e353fa9e857e0545fa82a0be621744c8e104
1 file changed
+7
-19
docs/content/docs/toolkits/enable-and-disable-toolkits.mdx
+7
-19
@@ -21,26 +21,8 @@ session = composio.create(
21
user_id="user_123",
22
toolkits=["github", "gmail"]
23
)
24
-```
25
-</Tab>
26
-<Tab value="TypeScript">
27
-```typescript
28
-import { Composio } from '@composio/core';
29
-const composio = new Composio({ apiKey: 'your_api_key' });
30
-// ---cut---
31
-// Only GitHub and Gmail will be available
32
-const session = await composio.create("user_123", {
33
- toolkits: ["github", "gmail"]
34
-});
35
-```
36
-</Tab>
37
-</Tabs>
24
39
-You can also use the explicit `enable` syntax:
40
-
41
-<Tabs groupId="language" items={['Python', 'TypeScript']} persist>
42
-<Tab value="Python">
43
-```python
25
+# Or use the explicit enable syntax
26
session = composio.create(
27
user_id="user_123",
28
toolkits={"enable": ["github", "gmail"]}
@@ -52,7 +34,13 @@ session = composio.create(
34
import { Composio } from '@composio/core';
35
const composio = new Composio({ apiKey: 'your_api_key' });
36
// ---cut---
37
+// Only GitHub and Gmail will be available
38
const session = await composio.create("user_123", {
39
+ toolkits: ["github", "gmail"]
40
+});
41
+
42
+// Or use the explicit enable syntax
43
+const session2 = await composio.create("user_123", {
44
toolkits: { enable: ["github", "gmail"] }
45
});
46
```