Skip to content

[Bug]: Librarian agent uses incorrect tool name 'websearch_exa_web_search_exa' instead of 'websearch_web_search_exa' #2242

@cyrilkong

Description

@cyrilkong

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions