Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Update toolkit
Brendan O'Leary committed
Aug 28, 2026 at 15:56 UTC
2c9c19e3fbf5e167742e5017f7fd374d4f1bbb83
1 file changed
+8
-5
docs/content/examples/harness-integration.mdx
+8
-5
@@ -135,13 +135,13 @@ for toolkit in page.items:
135
import { Composio } from '@composio/core';
136
const composio = new Composio();
137
// ---cut---
138
-const page = await composio.toolkits.get({ limit: 50 });
138
+const toolkits = await composio.toolkits.get({ limit: 50 });
139
140
-for (const toolkit of page.items) {
140
+for (const toolkit of toolkits) {
141
console.log(`${toolkit.slug.padEnd(20)} ${toolkit.name}`);
142
}
143
144
-// page.cursor -> pass back as { cursor } for the next page
144
+// pass a cursor as { cursor } to request the next page
145
```
146
</Tab>
147
</Tabs>
@@ -244,13 +244,16 @@ session = composio.sessions.create(
244
</Tab>
245
<Tab value="TypeScript">
246
```typescript
247
+import { Composio } from '@composio/core';
248
+const composio = new Composio();
249
+// ---cut---
250
const authConfig = await composio.authConfigs.create('github', {
251
type: 'use_custom_auth',
252
authScheme: 'OAUTH2',
253
name: 'My GitHub App',
254
credentials: {
252
- client_id: process.env.GITHUB_CLIENT_ID,
253
- client_secret: process.env.GITHUB_CLIENT_SECRET,
255
+ client_id: process.env.GITHUB_CLIENT_ID!,
256
+ client_secret: process.env.GITHUB_CLIENT_SECRET!,
257
oauth_redirect_uri: 'https://backend.composio.dev/api/v1/auth-apps/add',
258
},
259
});