跳到正文
所有工具

image_playground_generate

诊断与系统 · macOS

效果: 写入. 状态: 受限可用.

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

macOS

用途

使用 Apple 的 Image Playground 模型(Apple Intelligence;无需 API 密钥),根据文本提示在 Mac 上生成图像。保存为 PNG 并在 Finder 中显示,用户可以查看并将其拖到任何地方。风格是 Apple 内置的一组(animation、illustration、sketch)——适合快速的风格化图片,不适合照片级真实感。需要启用 Apple Intelligence 的 macOS 15.4+。在 macOS 15.x/26 上生成完全自动;在 macOS 27+ 上会打开一个小的 Image Playground 面板,用户需点击图像一次来保存(该版本上 Apple 的公开 API)。保存位置:如果用户指明了位置(例如“我的桌面”“项目文件夹”),请将其作为 output_path 传入;否则省略,图像会保存到 ~/Pictures/Image Playground/,文件名取自提示,然后在 Finder 中打开。

必填输入

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

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构 — macOS
{
  "properties": {
    "confirm": {
      "description": "Ignored; kept for older clients.",
      "type": "boolean"
    },
    "output_path": {
      "description": "Where to save the PNG — an absolute path or ~ path (a file like ~/Desktop/art.png, or a folder to save into). Omit to use ~/Pictures/Image Playground/<prompt>-<timestamp>.png. Missing parent folders are created.",
      "type": "string"
    },
    "prompt": {
      "description": "Text description of the image to generate.",
      "type": "string"
    },
    "reveal_in_finder": {
      "description": "Open Finder with the new image selected so the user can see/move it. Default true; set false when generating many in a row.",
      "type": "boolean"
    },
    "style": {
      "description": "Visual style. Default 'animation'. Falls back to an available style if the requested one isn't supported on this device.",
      "enum": [
        "animation",
        "illustration",
        "sketch"
      ],
      "type": "string"
    }
  },
  "required": [
    "prompt"
  ],
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "prompt": "A watercolor hummingbird above a field of flowers",
  "style": "illustration"
}