Skip to content

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: shorten tool naming, verification, and execution sections

Dhawal Upadhyay1c20c29e3987
diff --git a/docs/content/docs/toolkits/custom-tools-and-toolkits.mdx b/docs/content/docs/toolkits/custom-tools-and-toolkits.mdx
index 0466b0bae..77e2b1001 100644
--- a/docs/content/docs/toolkits/custom-tools-and-toolkits.mdx
+++ b/docs/content/docs/toolkits/custom-tools-and-toolkits.mdx
@@ -116,61 +116,17 @@ Custom tools integrate seamlessly with Composio's meta tools:
## Tool naming
-Tool names exposed to the agent are automatically prefixed with `LOCAL_` and the toolkit name (if any):
+Tool names exposed to the agent are automatically prefixed with `LOCAL_` and the toolkit name (if any). For example, `GET_USER_PROFILE` becomes `LOCAL_GET_USER_PROFILE`, and `ASSIGN_ROLE` inside `USER_MANAGEMENT` becomes `LOCAL_USER_MANAGEMENT_ASSIGN_ROLE`.
-- `GET_USER_PROFILE` → `LOCAL_GET_USER_PROFILE`
-- `SEND_PROMO_EMAIL` → `LOCAL_SEND_PROMO_EMAIL`
-- `ASSIGN_ROLE` in `USER_MANAGEMENT` toolkit → `LOCAL_USER_MANAGEMENT_ASSIGN_ROLE`
-
-Slugs cannot start with `LOCAL_` or `COMPOSIO_` — these prefixes are reserved.
+Registered slugs cannot start with `LOCAL_` or `COMPOSIO_` — these prefixes are reserved.
## Verifying registration
-After creating a session, use `session.customTools()` and `session.customToolkits()` to verify your tools were registered correctly:
-
-```typescript
-import { Composio, experimental_createTool, experimental_createToolkit } from "@composio/core";
-import { z } from "zod/v3";
-
-const getUserProfile = experimental_createTool("GET_USER_PROFILE", { name: "Get user profile", description: "Retrieve profile", inputParams: z.object({}), execute: async (_input, ctx) => ({}) });
-const userManagement = experimental_createToolkit("USER_MANAGEMENT", { name: "User management", description: "Manage roles", tools: [experimental_createTool("ASSIGN_ROLE", { name: "Assign role", description: "Assign role", inputParams: z.object({ user_id: z.string() }), execute: async () => ({}) })] });
-const composio = new Composio({ apiKey: "your_api_key" });
-const session = await composio.create("user_1", { experimental: { customTools: [getUserProfile], customToolkits: [userManagement] } });
-// ---cut---
-// List all registered custom tools (with their final LOCAL_ prefixed slugs)
-const registeredTools = session.customTools();
-console.log(registeredTools);
-// [{ slug: "LOCAL_GET_USER_PROFILE", name: "Get user profile", ... }]
-
-// Filter by toolkit
-const managementTools = session.customTools({ toolkit: "USER_MANAGEMENT" });
-
-// List registered custom toolkits
-const registeredToolkits = session.customToolkits();
-console.log(registeredToolkits);
-// [{ slug: "USER_MANAGEMENT", name: "User management", tools: [...] }]
-```
+Use `session.customTools()` to list registered tools (with their final `LOCAL_` prefixed slugs), or filter by toolkit with `session.customTools({ toolkit: "USER_MANAGEMENT" })`. Use `session.customToolkits()` to list registered toolkits.
## Programmatic execution
-Use `session.execute()` to run custom tools directly — outside of an agent loop. You can use the original slug without the `LOCAL_` prefix:
-
-```typescript
-import { Composio, experimental_createTool } from "@composio/core";
-import { z } from "zod/v3";
-
-const getUserProfile = experimental_createTool("GET_USER_PROFILE", { name: "Get user profile", description: "Retrieve profile", inputParams: z.object({}), execute: async (_input, ctx) => ({ name: "Alice", tier: "enterprise" }) });
-const composio = new Composio({ apiKey: "your_api_key" });
-const session = await composio.create("user_1", { experimental: { customTools: [getUserProfile] } });
-// ---cut---
-// Both work — original slug or full LOCAL_ prefixed slug
-const result = await session.execute("GET_USER_PROFILE");
-const same = await session.execute("LOCAL_GET_USER_PROFILE");
-
-console.log(result.data); // { name: "Alice", tier: "enterprise" }
-```
-
-Custom tools execute in-process. Remote Composio tools are sent to the backend automatically.
+Use `session.execute()` to run custom tools directly, outside of an agent loop. Accepts the original slug — no `LOCAL_` prefix needed (e.g. `session.execute("GET_USER_PROFILE")`). Custom tools execute in-process; remote tools are sent to the backend automatically.
## SessionContext