claude-code - 💡(How to fix) Fix WebFetch tool fails with "model not found" due to invalid model ID format (@ instead of -) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51859Fetched 2026-04-23 07:43:00
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1

The WebFetch tool fails on invocation with the following error:

There's an issue with the selected model (claude-haiku-4-5@20251001). It may not exist or you may not have access to it. Run /model to pick a different model.

Error Message

The WebFetch tool fails on invocation with the following error: 2. The tool fails immediately before fetching any content with the model error above. Tool returns an error and does not fetch the URL.

  • Model in use at time of error: claude-sonnet-4-6 (1M context)
  • The error originates from the WebFetch tool's internal model selection, not the session model

Root Cause

The tool appears to be internally configured to use the model ID claude-haiku-4-5@20251001, which uses an @ delimiter. The correct model ID format per the current Anthropic model list is claude-haiku-4-5-20251001 (hyphens throughout, no @ sign).

Code Example

There's an issue with the selected model (claude-haiku-4-5@20251001). It may not exist or you may not have access to it. Run /model to pick a different model.
RAW_BUFFERClick to expand / collapse

Description

The WebFetch tool fails on invocation with the following error:

There's an issue with the selected model (claude-haiku-4-5@20251001). It may not exist or you may not have access to it. Run /model to pick a different model.

Root cause

The tool appears to be internally configured to use the model ID claude-haiku-4-5@20251001, which uses an @ delimiter. The correct model ID format per the current Anthropic model list is claude-haiku-4-5-20251001 (hyphens throughout, no @ sign).

Steps to reproduce

  1. Invoke the WebFetch tool with any valid URL and prompt.
  2. The tool fails immediately before fetching any content with the model error above.

Expected behaviour

WebFetch successfully fetches and processes the URL content using the small/fast model.

Actual behaviour

Tool returns an error and does not fetch the URL.

Environment

  • Claude Code CLI
  • Model in use at time of error: claude-sonnet-4-6 (1M context)
  • The error originates from the WebFetch tool's internal model selection, not the session model

extent analysis

TL;DR

Update the WebFetch tool's internal model ID to use hyphens instead of the @ delimiter.

Guidance

  • Verify the model ID format in the Anthropic model list to ensure it matches the expected format of hyphens throughout, without the @ sign.
  • Check the WebFetch tool's configuration to identify where the model ID is specified and update it to the correct format, e.g., claude-haiku-4-5-20251001.
  • Test the WebFetch tool with the updated model ID to ensure it can successfully fetch and process URL content.
  • If the issue persists, try selecting a different model using the /model command to rule out any model-specific issues.

Example

No code snippet is provided as the issue is related to configuration and model ID formatting.

Notes

The solution assumes that the WebFetch tool allows for configuration updates and that the model ID is the only issue causing the error.

Recommendation

Apply workaround: Update the model ID in the WebFetch tool's configuration to use the correct format, as the tool's internal configuration appears to be the root cause of the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING