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: scope toolkit defaults to tools endpoints

Kshitij Jhunjhunwala520f38e2def4
diff --git a/docs/content/docs/tools-direct/fetching-tools.mdx b/docs/content/docs/tools-direct/fetching-tools.mdx
index 0c2ee3f0a..2b2bd6e19 100644
--- a/docs/content/docs/tools-direct/fetching-tools.mdx
+++ b/docs/content/docs/tools-direct/fetching-tools.mdx
@@ -242,7 +242,7 @@ const toolkitSearchRaw = await composio.tools.getRawComposioTools({
</Tabs>
<Callout type="info">
-These SDK examples default to `latest` when `toolkit_versions` is omitted. For direct REST calls, omission depends on the API version: v3 defaults to the pinned base version (`00000000_00`), while v3.1 defaults to `latest`. Use `latest` when an LLM consumes tool output; pin a dated version when application code parses the output. See [toolkit versioning](/docs/tools-direct/toolkit-versioning).
+These SDK examples use `latest`, the default when you don't configure `toolkit_versions` (TypeScript: `toolkitVersions`) on the client. For direct REST calls, omission depends on the API version: the v3 tools endpoints default to the pinned base version (`00000000_00`), while the v3.1 tools endpoints default to `latest`. Use `latest` when an LLM consumes tool output; pin a dated version when application code parses the output. See [toolkit versioning](/docs/tools-direct/toolkit-versioning).
</Callout>
## Next
diff --git a/docs/tests/static/content.test.ts b/docs/tests/static/content.test.ts
index 6d416693c..21d073bf7 100644
--- a/docs/tests/static/content.test.ts
+++ b/docs/tests/static/content.test.ts
@@ -140,9 +140,9 @@ describe("Content - toolkit version guidance", () => {
test("the SDK fetching guide distinguishes SDK, REST v3, and REST v3.1 defaults", async () => {
const content = await readFile(FETCHING_TOOLS_DOC, "utf-8");
- expect(content).toContain("These SDK examples default to `latest`");
- expect(content).toContain("v3 defaults to the pinned base version (`00000000_00`)");
- expect(content).toContain("v3.1 defaults to `latest`");
+ expect(content).toContain("don't configure `toolkit_versions` (TypeScript: `toolkitVersions`)");
+ expect(content).toContain("v3 tools endpoints default to the pinned base version (`00000000_00`)");
+ expect(content).toContain("v3.1 tools endpoints default to `latest`");
expect(content).not.toMatch(/the API returns tools from the base version/i);
expect(content).not.toContain("Never use `latest` in production");
});