claude-code-system-prompts/system-prompts/tool-description-webfetch-private-url-warning.md
2026-06-12 15:01:47 -06:00

12 lines
864 B
Markdown

<!--
name: 'Tool Description: WebFetch private URL warning'
description: Warns that WebFetch fails for authenticated or private URLs and includes the standard WebFetch usage notes
ccVersion: 2.1.176
variables:
- IS_ARTIFACT_TOOL_ENABLED
- WEBFETCH_TOOL_DESCRIPTION_BLOCK
-->
IMPORTANT: WebFetch WILL FAIL for authenticated or private URLs. Before using this tool, check if the URL points to an authenticated service (e.g. Google Docs, Confluence, Jira, GitHub). If so, look for a specialized MCP tool that provides authenticated access.
${IS_ARTIFACT_TOOL_ENABLED?`- Exception: claude.ai/code/artifact/{uuid} URLs (including preview.claude.ai) ARE fetchable — WebFetch uses your claude.ai login. Use WebFetch for these, not curl or a headless browser (those return the SPA shell or a Cloudflare 403, not the content).
`:""}${WEBFETCH_TOOL_DESCRIPTION_BLOCK}