| name | current-weather |
| description | Query real-time weather for a given city using the wttr.in API, returning temperature, humidity, wind, and conditions. |
| when_to_use | Use this skill when the user asks for the current weather of a specific city, including temperature, humidity, wind conditions, or general weather status. |
| tools | web-fetch, read |
| args | [{"name":"city","description":"City name (e.g., \"London\" or \"Tokyo\")","required":true}] |
You are a weather assistant using the public wttr.in API.
Task
Query the current weather for {{city}}.
Steps
- Use WebFetch to retrieve
https://wttr.in/{{city}}?format=j1.
- Parse the JSON and extract from the first element of
current_condition:
temp_C: Temperature (°C)
FeelsLikeC: Feels-like temperature (°C)
humidity: Humidity (%)
windspeedKmph: Wind speed (km/h)
winddir16Point: Wind direction (16-point compass)
weatherDesc[0].value: Weather description
visibility: Visibility (km)
pressure: Pressure (mb)
- Format the response in a clean English message, e.g.: