# getCurrentWeather

**Identifier:** `openweather_getCurrentWeather`

**Provider:** [OpenWeather](https://kirha.com/providers/openweather.md)

Get current weather conditions for a specific location including temperature, humidity, wind, and general conditions.

## Run it with the CLI

```bash
kirha tools run openweather_getCurrentWeather \
  --input '{
    "location": "London"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "openweather_getCurrentWeather",
  "input": {
    "location": "London"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "location": {
      "description": "City name or city,country code (e.g., 'London' or 'London,UK')",
      "type": "string"
    }
  },
  "required": [
    "location"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "cloudiness": {
      "type": "number"
    },
    "context": {
      "type": "string"
    },
    "coordinates": {
      "additionalProperties": false,
      "properties": {
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        }
      },
      "required": [
        "lat",
        "lon"
      ],
      "type": "object"
    },
    "country": {
      "type": "string"
    },
    "feelsLike": {
      "type": "number"
    },
    "humidity": {
      "type": "number"
    },
    "location": {
      "type": "string"
    },
    "pressure": {
      "type": "number"
    },
    "sunrise": {
      "type": "string"
    },
    "sunset": {
      "type": "string"
    },
    "tempMax": {
      "type": "number"
    },
    "tempMin": {
      "type": "number"
    },
    "temperature": {
      "type": "number"
    },
    "timestamp": {
      "type": "string"
    },
    "timezone": {
      "type": "number"
    },
    "visibility": {
      "type": "number"
    },
    "weather": {
      "additionalProperties": false,
      "properties": {
        "description": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "main": {
          "type": "string"
        }
      },
      "required": [
        "main",
        "description",
        "icon"
      ],
      "type": "object"
    },
    "windDirection": {
      "type": "number"
    },
    "windGust": {
      "type": "number"
    },
    "windSpeed": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "location",
    "country",
    "coordinates",
    "temperature",
    "feelsLike",
    "tempMin",
    "tempMax",
    "pressure",
    "humidity",
    "windSpeed",
    "cloudiness",
    "weather",
    "sunrise",
    "sunset",
    "timezone",
    "timestamp"
  ],
  "type": "object"
}
```

-----

[All OpenWeather tools](https://kirha.com/providers/openweather.md) · [< Back to tools list](https://kirha.com/tools.md)