Weather Information
Get current weather and forecasts for any location.
How to Use
Use the web_fetch tool to query weather APIs:
OpenWeatherMap
code
https://api.openweathermap.org/data/2.5/weather?q={city}&appid={API_KEY}
wttr.in (No API key required)
code
https://wttr.in/{location}?format=j1
Response Format
Parse the JSON response and provide:
- •Current temperature
- •Weather conditions
- •Humidity
- •Wind speed
- •Forecast (if available)
Example
"What's the weather in San Francisco?"
- •Fetch:
https://wttr.in/San Francisco?format=j1 - •Parse response
- •Format user-friendly response: "Current weather in San Francisco: 65°F, Partly Cloudy, Humidity: 70%, Wind: 10 mph"