Skip to content

fix(agent): declare WebSearch tool in llm-ai-agents-and-eng-research#46

Open
xiaolai wants to merge 1 commit into
disler:mainfrom
xiaolai:fix/nlpm-add-websearch-to-llm-agent
Open

fix(agent): declare WebSearch tool in llm-ai-agents-and-eng-research#46
xiaolai wants to merge 1 commit into
disler:mainfrom
xiaolai:fix/nlpm-add-websearch-to-llm-agent

Conversation

@xiaolai

@xiaolai xiaolai commented Apr 26, 2026

Copy link
Copy Markdown

Automated audit: This PR was generated by NLPM, a natural language programming linter, running via claude-code-action. Please evaluate the diff on its merits.

Bug

The .claude/agents/llm-ai-agents-and-eng-research.md agent file instructs Claude to "Use WebSearch to find recent news, research papers, and developments" in step 2 of its ## Instructions section, but WebSearch is not declared in the frontmatter tools list.

Claude Code enforces the declared tool set — any tool used in an agent's instructions but absent from tools will fail at runtime. This means the agent silently breaks on its first search attempt.

Fix

Add WebSearch to the existing tools declaration:

-tools: Bash, mcp__firecrawl-mcp__firecrawl_search, mcp__firecrawl-mcp__firecrawl_scrape, WebFetch
+tools: Bash, mcp__firecrawl-mcp__firecrawl_search, mcp__firecrawl-mcp__firecrawl_scrape, WebFetch, WebSearch

This is a minimal, mechanical fix — no logic or instructions are changed.

Step 2 of the agent instructs Claude to use WebSearch for research, but
WebSearch was absent from the frontmatter tools list. Claude Code enforces
the declared tool set, so WebSearch calls fail silently at runtime.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant