Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix(docs): add toolkit_versions=latest to runtime tool fetches
Also fixes the detail page and llms.mdx route, which fetch tools at runtime and were missing the same parameter. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 11, 2026 at 23:44 UTC
77893e90f4f7f2bf1462a1a9745afc330f382b8f
2 files changed
+4
-4
docs/app/(home)/toolkits/[[...slug]]/page.tsx
+2
-2
@@ -29,7 +29,7 @@ async function fetchDetailedTools(toolkitSlug: string, version?: string | null):
29
30
try {
31
const response = await fetch(
32
- `${API_BASE}/tools?toolkit_slug=${toolkitSlug.toUpperCase()}&limit=10000${version ? `&version=${encodeURIComponent(version)}` : ''}`,
32
+ `${API_BASE}/tools?toolkit_slug=${toolkitSlug.toUpperCase()}&toolkit_versions=latest&limit=10000${version ? `&version=${encodeURIComponent(version)}` : ''}`,
33
{
34
headers: {
35
'Content-Type': 'application/json',
@@ -65,7 +65,7 @@ async function fetchDetailedTriggers(toolkitSlug: string, version?: string | nul
65
66
try {
67
const response = await fetch(
68
- `${API_BASE}/triggers_types?toolkit_slugs=${toolkitSlug.toUpperCase()}&limit=10000${version ? `&version=${encodeURIComponent(version)}` : ''}`,
68
+ `${API_BASE}/triggers_types?toolkit_slugs=${toolkitSlug.toUpperCase()}&toolkit_versions=latest&limit=10000${version ? `&version=${encodeURIComponent(version)}` : ''}`,
69
{
70
headers: {
71
'Content-Type': 'application/json',
docs/app/llms.mdx/[[...slug]]/route.ts
+2
-2
@@ -31,7 +31,7 @@ async function fetchDetailedTools(toolkitSlug: string): Promise<Tool[] | null> {
31
32
try {
33
const response = await fetch(
34
- `${API_BASE}/tools?toolkit_slug=${toolkitSlug.toUpperCase()}&limit=${API_FETCH_LIMIT}`,
34
+ `${API_BASE}/tools?toolkit_slug=${toolkitSlug.toUpperCase()}&toolkit_versions=latest&limit=${API_FETCH_LIMIT}`,
35
{
36
headers: {
37
'Content-Type': 'application/json',
@@ -74,7 +74,7 @@ async function fetchDetailedTriggers(toolkitSlug: string): Promise<Trigger[] | n
74
75
try {
76
const response = await fetch(
77
- `${API_BASE}/triggers_types?toolkit_slugs=${toolkitSlug.toUpperCase()}&limit=${API_FETCH_LIMIT}`,
77
+ `${API_BASE}/triggers_types?toolkit_slugs=${toolkitSlug.toUpperCase()}&toolkit_versions=latest&limit=${API_FETCH_LIMIT}`,
78
{
79
headers: {
80
'Content-Type': 'application/json',