@devries-cameron20 / composio Mirror · read-only / commits / 31832f6fd
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 04:30 UTC

docs: fix .md suffix in meta tools LLM route matching

Strip .md extension from slug before matching so links from the meta tools index (e.g., search_tools.md) resolve correctly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Mar 6, 2026 at 22:30 UTC 31832f6fdb4e66469e2586af0ae6418be1dad08d
1 file changed +3 -2
docs/app/llms.mdx/[[...slug]]/route.ts
+3 -2
@@ -892,9 +892,10 @@ export async function GET(
892 });
893 }
894 if (rest.length === 2) {
895 - // Individual tool page — match by page slug (e.g., "search_tools")
895 + // Individual tool page — match by page slug (e.g., "search_tools" or "search_tools.md")
896 + const pageSlug = rest[1].replace(/\.md$/, '');
897 const tools = await getAllMetaTools();
897 - const tool = tools.find(t => t.slug.toLowerCase().replace('composio_', '') === rest[1]);
898 + const tool = tools.find(t => t.slug.toLowerCase().replace('composio_', '') === pageSlug);
899 if (tool) {
900 return new Response(metaToolToMarkdown(tool), {
901 headers: { 'Content-Type': 'text/markdown; charset=utf-8' },