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.

fix(docs): add toolkit_versions=latest to runtime tool fetches

Sushmithamallesh77893e90f4f7
diff --git a/docs/app/(home)/toolkits/[[...slug]]/page.tsx b/docs/app/(home)/toolkits/[[...slug]]/page.tsx
index c63ae8b4d..e23e0e407 100644
--- a/docs/app/(home)/toolkits/[[...slug]]/page.tsx
+++ b/docs/app/(home)/toolkits/[[...slug]]/page.tsx
@@ -29,7 +29,7 @@ async function fetchDetailedTools(toolkitSlug: string, version?: string | null):
try {
const response = await fetch(
- `${API_BASE}/tools?toolkit_slug=${toolkitSlug.toUpperCase()}&limit=10000${version ? `&version=${encodeURIComponent(version)}` : ''}`,
+ `${API_BASE}/tools?toolkit_slug=${toolkitSlug.toUpperCase()}&toolkit_versions=latest&limit=10000${version ? `&version=${encodeURIComponent(version)}` : ''}`,
{
headers: {
'Content-Type': 'application/json',
@@ -65,7 +65,7 @@ async function fetchDetailedTriggers(toolkitSlug: string, version?: string | nul
try {
const response = await fetch(
- `${API_BASE}/triggers_types?toolkit_slugs=${toolkitSlug.toUpperCase()}&limit=10000${version ? `&version=${encodeURIComponent(version)}` : ''}`,
+ `${API_BASE}/triggers_types?toolkit_slugs=${toolkitSlug.toUpperCase()}&toolkit_versions=latest&limit=10000${version ? `&version=${encodeURIComponent(version)}` : ''}`,
{
headers: {
'Content-Type': 'application/json',
diff --git a/docs/app/llms.mdx/[[...slug]]/route.ts b/docs/app/llms.mdx/[[...slug]]/route.ts
index eba1ce482..3dea85e64 100644
--- a/docs/app/llms.mdx/[[...slug]]/route.ts
+++ b/docs/app/llms.mdx/[[...slug]]/route.ts
@@ -31,7 +31,7 @@ async function fetchDetailedTools(toolkitSlug: string): Promise<Tool[] | null> {
try {
const response = await fetch(
- `${API_BASE}/tools?toolkit_slug=${toolkitSlug.toUpperCase()}&limit=${API_FETCH_LIMIT}`,
+ `${API_BASE}/tools?toolkit_slug=${toolkitSlug.toUpperCase()}&toolkit_versions=latest&limit=${API_FETCH_LIMIT}`,
{
headers: {
'Content-Type': 'application/json',
@@ -74,7 +74,7 @@ async function fetchDetailedTriggers(toolkitSlug: string): Promise<Trigger[] | n
try {
const response = await fetch(
- `${API_BASE}/triggers_types?toolkit_slugs=${toolkitSlug.toUpperCase()}&limit=${API_FETCH_LIMIT}`,
+ `${API_BASE}/triggers_types?toolkit_slugs=${toolkitSlug.toUpperCase()}&toolkit_versions=latest&limit=${API_FETCH_LIMIT}`,
{
headers: {
'Content-Type': 'application/json',