-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Description
Bug Description
The librarian agent's system prompt contains incorrect example function names for the Exa web search tool, causing the agent to call a non-existent tool web_search_exa instead of the correct websearch_web_search_exa.
Error Observed
When librarian agent attempts to use web search:
invalid [tool=web_search_exa, error=Model tried to call unavailable tool 'web_search_exa'. Available tools: ... websearch_web_search_exa, ...]
Tool execution aborted
Root Cause
Location: dist/index.js lines 69282 and 69285
Current (incorrect):
- **Find Docs URL**: Use websearch_exa — `websearch_exa_web_search_exa("library official documentation")`
- **Latest Info**: Use websearch_exa — `websearch_exa_web_search_exa("query ${new Date().getFullYear()}")`Should be:
- **Find Docs URL**: Use websearch_exa — `websearch_web_search_exa("library official documentation")`
- **Latest Info**: Use websearch_exa — `websearch_web_search_exa("query ${new Date().getFullYear()}")`The librarian agent reads these example function calls from its system prompt and copies the incorrect tool name.
Verification
Confirmed correct tool name in codebase:
- Line 75594: MCP configuration correctly references the tool
- Line 39032, 49859: Tool whitelist uses
websearch_web_search_exa - Hook exclude list uses
websearch_web_search_exa
Impact
- Librarian agent cannot use web search functionality
- Requires manual correction via session continuation
- Affects all installations using oh-my-opencode 3.10.0
Environment
- oh-my-opencode version: 3.10.0
- Installation: mise (npm-oh-my-opencode)
- Platform: macOS Sonoma 14.8.4
Expected Behavior
Librarian agent should successfully call websearch_web_search_exa(query) for web searches.
Suggested Fix
Update librarian agent's system prompt (source file before compilation) to use correct tool name:
- Change:
websearch_exa_web_search_exa - To:
websearch_web_search_exa
Lines 69282 and 69285 in compiled dist/index.js.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels