Get current weather for a city

Retrieve current weather information for a specified location using WeatherAPI.com. **Features:** - Real-time weather data from WeatherAPI.com - Support for city names or coordinates (lat/lon) - Support for multiple temperature units (metric, imperial, kelvin) - Comprehensive weather information including temperature, humidity, wind, visibility, and UV index - Authentication required for all requests **Location Input:** - **City-based**: Provide `city` parameter (e.g., "London", "New York") - **Coordinate-based**: Provide `lat` and `lon` parameters (e.g., 51.5074, -0.1278) - Either city OR coordinates must be provided **Authentication:** - Requires valid Bearer token - Test tokens available for development: `test-jwt-token`, `agent-jwt-token` - Production tokens verified with external auth service **Rate Limits:** - Subject to WeatherAPI.com rate limits - 10-second timeout for external API calls **Examples:** - London: `/api/context/weather/current?city=London` - New York with imperial units: `/api/context/weather/current?city=New%20York&units=imperial` - Tokyo with country code: `/api/context/weather/current?city=Tokyo&country=JP` - Coordinates: `/api/context/weather/current?lat=51.5074&lon=-0.1278`

Authentication

AuthorizationBearer
JWT token obtained from the Auth API

Headers

authorizationstringOptional
Bearer token for authentication

Query parameters

citystringOptional

City name (required if coordinates not provided)

countrystringOptional

Country code for disambiguation (optional)

latstringOptional

Latitude coordinate (required if city not provided)

lonstringOptional

Longitude coordinate (required if city not provided)

units"metric" or "imperial" or "kelvin"Optional

Temperature units (default: metric)

Response

Current weather data retrieved successfully