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 21, 22:15 UTC
chore: add changeset for v3.1 customs use/attach (minor)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Abir Taheer committed
May 6, 2026 at 22:46 UTC
3ece424708cc2794c515e45c70d7d62073630538
1 file changed
+11
.changeset/v31-customs-use-attach.md
new
+11
@@ -0,0 +1,11 @@
1
+---
2
+'@composio/core': minor
3
+---
4
+
5
+Add custom tools support to `composio.use()` and update `connectedAccounts` to array type.
6
+
7
+- **`composio.use(id, { customTools, customToolkits })`**: Attach custom tools to an existing session. Calls the v3.1 `/attach` endpoint to bind local tools for search and execution. Without customs, falls back to the standard session retrieve.
8
+- **Inline custom tools payload**: `use()` now correctly passes `inlineCustomToolsPayload` and `preloadedCustomToolSlugs` to the session, enabling custom tool execution and preloading on rehydrated sessions.
9
+- **`connectedAccounts` type change**: Updated from `Record<string, string>` to `Record<string, string[]>` to match the v3.1 API. Only one account per toolkit is allowed when multi-account mode is disabled.
10
+- **`CustomToolsMap.tools`**: The map now caches the raw `CustomTool[]` array for future inline re-injection on v3.1 search/execute requests.
11
+- **`@composio/client`**: Bumped to `0.1.0-alpha.70`.