所有工具

get_weather

天气 · macOS · Windows

效果: 读取. 状态: 受限可用.

“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。

macOS

用途

获取某地点的当前天气和简短每日预报。传入城市名称(“London”、“San Francisco”、“Tokyo,JP”)或“lat,lon”坐标。使用 Open-Meteo,无需 API 密钥。必须提供地点,因为它无法访问设备位置。(原样保留的字面值:'lat,lon'。)

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构macOS
{
  "properties": {
    "days": {
      "description": "Number of forecast days, 1-7 (default 3)",
      "type": "integer"
    },
    "location": {
      "description": "City name (e.g. 'London', 'Buenos Aires', 'Tokyo,JP') or 'lat,lon' coordinates (e.g. '40.71,-74.01')",
      "type": "string"
    }
  },
  "required": [
    "location"
  ],
  "type": "object"
}

文档示例

get_weather 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "location": "Buenos Aires"
}

Windows

用途

获取某地点的当前天气和简短每日预报。传入城市名称(“London”、“San Francisco”、“Tokyo,JP”)或“lat,lon”坐标。使用 Open-Meteo,无需 API 密钥。必须提供地点,因为它无法访问设备位置。(原样保留的字面值:'lat,lon'。)

必填输入

此平台的架构未声明必填输入,但仍可能存在可选选择器或运行时要求。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构Windows
{
  "properties": {
    "city": {
      "description": "Alias for `location` — pass either one, not both",
      "type": "string"
    },
    "days": {
      "description": "Number of forecast days, 1-7 (default 3)",
      "type": "integer"
    },
    "location": {
      "description": "City name (e.g. 'London', 'Buenos Aires', 'Tokyo,JP') or 'lat,lon' coordinates (e.g. '40.71,-74.01')",
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}

文档示例

get_weather 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "location": "Buenos Aires"
}