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: remove @noErrors from changelog, use proper Twoslash
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dhawal Upadhyay committed
Mar 23, 2026 at 14:09 UTC
a385d76ab3711d4da4e9c6c42d761c17c48ede8a
1 file changed
+4
-3
docs/content/changelog/03-23-26-custom-tools-and-toolkits.mdx
+4
-3
@@ -18,10 +18,10 @@ You can now create custom tools and toolkits that run locally alongside remote C
18
19
Custom tools support three patterns — standalone tools for internal logic, extension tools that wrap Composio toolkit APIs with business logic, and custom toolkits that group related tools.
20
21
-```ts
22
-// @noErrors
21
+```typescript
22
import { Composio, experimental_createTool, experimental_createToolkit } from "@composio/core";
23
import { z } from "zod/v3";
24
+// ---cut---
25
26
// Standalone tool — internal data, no Composio auth needed
27
const getUserProfile = experimental_createTool("GET_USER_PROFILE", {
@@ -74,7 +74,8 @@ const userManagement = experimental_createToolkit("USER_MANAGEMENT", {
74
});
75
76
// Bind everything to a session
77
-const session = await new Composio().create("user_1", {
77
+const composio = new Composio({ apiKey: "your_api_key" });
78
+const session = await composio.create("user_1", {
79
toolkits: ["gmail"],
80
experimental: {
81
customTools: [getUserProfile, sendPromoEmail],