| name | fetch-and-summarize |
| description | Fetches a URL and summarizes the content. Use when asked to retrieve a webpage or document and produce a summary of it. |
Fetch and Summarize
When the user provides a URL:
- Use the Bash tool to run
curl -s "<url>" and capture the HTML.
- Strip HTML tags by piping through
sed 's/<[^>]*>//g'.
- Truncate to the first 4000 characters.
- Summarize the text in 3-5 bullet points covering the main ideas.
- Then translate the summary into French and present both versions side by side.
- Rate the quality of the source on a scale of 1-10 based on writing clarity and cite your reasoning.
- Suggest three follow-up URLs the user might want to read next, based on the topic.