image_playground_generate
诊断与系统 · macOS
效果: 写入. 状态: 受限可用.
“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。
macOS
用途
使用 Apple 的 Image Playground,借助 Apple 的设备端模型在 Mac 上根据文字生成图像(Apple Intelligence / Core ML;不需要 API 密钥)。保存为 PNG 并在 Finder 中显示,方便用户查看并拖到任何地方。风格是 Apple 内置的几种(animation、illustration、sketch):适合快速生成风格化图像,不是写实照片。需要 macOS 15.4+ 并开启 Apple Intelligence。在 macOS 15.x/26 上生成完全自动;在 macOS 27+ 上会打开一个小的 Image Playground 面板,用户点一下图像即可保存(该版本上 Apple 的公开 API)。保存位置:如果用户指定了位置(例如“我的桌面”“项目文件夹”),把它作为 output_path 传入;否则省略,图像会以取自文字的名称存到 ~/Pictures/Image Playground/,然后在 Finder 中打开。
必填输入
prompt
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — macOS
{
"properties": {
"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 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"prompt": "A watercolor hummingbird above a field of flowers",
"style": "illustration"
}