fetch.md

 1Fetches content from a specified URL and processes it using an AI model.
 2
 3<usage>
 4- Takes a URL and a prompt as input
 5- Fetches the URL content, converts HTML to markdown
 6- Processes the content with the prompt using a small, fast model
 7- Returns the model's response about the content
 8- Use this tool when you need to retrieve and analyze web content
 9</usage>
10
11<usage_notes>
12
13- IMPORTANT: If an MCP-provided web fetch tool is available, prefer using that tool instead of this one, as it may have fewer restrictions. All MCP-provided tools start with "mcp_".
14- The URL must be a fully-formed valid URL
15- HTTP URLs will be automatically upgraded to HTTPS
16- The prompt should describe what information you want to extract from the page
17- This tool is read-only and does not modify any files
18- Results may be summarized if the content is very large
19- For very large pages, the content will be saved to a temporary file and the agent will have access to grep/view tools to analyze it
20- When a URL redirects to a different host, the tool will inform you and provide the redirect URL. You should then make a new fetch request with the redirect URL to fetch the content.
21  </usage_notes>
22
23<limitations>
24- Max response size: 5MB
25- Only supports HTTP and HTTPS protocols
26- Cannot handle authentication or cookies
27- Some websites may block automated requests
28</limitations>
29
30<tips>
31- Be specific in your prompt about what information you want to extract
32- For complex pages, ask the agent to focus on specific sections
33- The agent has access to grep and view tools when analyzing large pages
34</tips>