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: fix .md suffix in meta tools LLM route matching

Sushmitha Mallesh31832f6fdb4e
diff --git a/docs/app/llms.mdx/[[...slug]]/route.ts b/docs/app/llms.mdx/[[...slug]]/route.ts
index 54c1296e7..1b2fa2426 100644
--- a/docs/app/llms.mdx/[[...slug]]/route.ts
+++ b/docs/app/llms.mdx/[[...slug]]/route.ts
@@ -892,9 +892,10 @@ export async function GET(
});
}
if (rest.length === 2) {
- // Individual tool page — match by page slug (e.g., "search_tools")
+ // Individual tool page — match by page slug (e.g., "search_tools" or "search_tools.md")
+ const pageSlug = rest[1].replace(/\.md$/, '');
const tools = await getAllMetaTools();
- const tool = tools.find(t => t.slug.toLowerCase().replace('composio_', '') === rest[1]);
+ const tool = tools.find(t => t.slug.toLowerCase().replace('composio_', '') === pageSlug);
if (tool) {
return new Response(metaToolToMarkdown(tool), {
headers: { 'Content-Type': 'text/markdown; charset=utf-8' },