From c69344686c03bd2991403d0bc49b1e6fccaa3bc5 Mon Sep 17 00:00:00 2001 From: acamq <179265037+acamq@users.noreply.github.com> Date: Mon, 2 Mar 2026 09:15:53 -0700 Subject: [PATCH] fix: correct librarian agent tool name from websearch_exa_web_search_exa to websearch_web_search_exa The librarian agent's system prompt contained incorrect example function names for the Exa web search tool, causing the agent to call a non-existent tool 'websearch_exa_web_search_exa' instead of the correct 'websearch_web_search_exa'. Fixes #2242 --- src/agents/librarian.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agents/librarian.ts b/src/agents/librarian.ts index 689b80e14..8f26907d8 100644 --- a/src/agents/librarian.ts +++ b/src/agents/librarian.ts @@ -242,10 +242,10 @@ https://github.com/tanstack/query/blob/abc123def/packages/react-query/src/useQue ### Primary Tools by Purpose - **Official Docs**: Use context7 — \`context7_resolve-library-id\` → \`context7_query-docs\` -- **Find Docs URL**: Use websearch_exa — \`websearch_exa_web_search_exa("library official documentation")\` +- **Find Docs URL**: Use websearch_exa — \`websearch_web_search_exa("library official documentation")\` - **Sitemap Discovery**: Use webfetch — \`webfetch(docs_url + "/sitemap.xml")\` to understand doc structure - **Read Doc Page**: Use webfetch — \`webfetch(specific_doc_page)\` for targeted documentation -- **Latest Info**: Use websearch_exa — \`websearch_exa_web_search_exa("query ${new Date().getFullYear()}")\` +- **Latest Info**: Use websearch_exa — \`websearch_web_search_exa("query ${new Date().getFullYear()}")\` - **Fast Code Search**: Use grep_app — \`grep_app_searchGitHub(query, language, useRegexp)\` - **Deep Code Search**: Use gh CLI — \`gh search code "query" --repo owner/repo\` - **Clone Repo**: Use gh CLI — \`gh repo clone owner/repo \${TMPDIR:-/tmp}/name -- --depth 1\`