WEBFETCH

Constant WEBFETCH 

Source
pub const WEBFETCH: &str = "Fetches content from a specified URL and processes it for analysis.\n\n- Takes a URL and optional `timeout_ms` as input\n- HTML content is automatically converted to markdown for easier reading\n- JSON content is automatically prettified\n- Other content types are returned as-is\n- Use this tool when you need to retrieve and analyze web content\n\n### Parameters\n\n- `url`: The URL to fetch content from (required)\n  - Must be a fully-formed valid URL\n  - HTTP URLs will be automatically upgraded to HTTPS\n- `timeout_ms`: Optional timeout in milliseconds (default varies by implementation)\n\n### Usage Notes\n\n- IMPORTANT: If another tool is present that offers better web fetching capabilities, is more targeted to the task, or has fewer restrictions, prefer using that tool instead of this one.\n- The URL must be a fully-formed valid URL (e.g., \"https://example.com/page\")\n- HTTP URLs will be automatically upgraded to HTTPS for security\n- Redirects are followed automatically\n- This tool is read-only and does not modify any files\n- Results may be summarized if the content is very large\n\n### When to Use This Tool\n\n- Fetching documentation from the web\n- Reading API references or library documentation\n- Retrieving content from URLs provided by the user\n- Checking website content for analysis\n\n### When NOT to Use This Tool\n\n- For local file operations - use Read tool instead\n- For searching the web - this only fetches specific URLs\n- When another MCP tool offers better web capabilities\n\n### Examples\n\nFetching a documentation page:\n```\nurl: \"https://docs.rust-lang.org/book/ch01-00-getting-started.html\"\n```\n\nFetching with custom timeout:\n```\nurl: \"https://api.example.com/large-response\"\ntimeout_ms: 30000\n```\n\n### Best Practices\n\n1. Provide complete URLs including the protocol (https://)\n2. Use this tool for specific URLs, not for web searching\n3. If content is very large, results may be summarized - ask for specific sections if needed\n4. Consider timeout settings for slow-loading pages\n";
Expand description

Webfetch tool context - URL content retrieval.