Image Playground Generate
image_playground_generateGenerates an image on the Mac from a text prompt with Apple's Image Playground model (Apple Intelligence; no API key needed). Saves a PNG and reveals it in Finder so the user can see it and drag it anywhere. Styles are Apple's built-in set (animation, illustration, sketch) — good for quick stylized art, NOT photorealistic. Requires macOS 15.4+ with Apple Intelligence enabled. On macOS 15.x/26 generation is fully automatic; on macOS 27+ a small Image Playground panel opens and the user clicks the image once to save it (Apple's public API on that version). WHERE TO SAVE: if the user names a place (e.g. "my Desktop", "the project folder"), pass that as output_path; otherwise omit it and it lands in ~/Pictures/Image Playground/ with a name from the prompt, then opens in Finder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Visual style. Default 'animation'. Falls back to an available style if the requested one isn't supported on this device. | |
| prompt | Yes | Text description of the image to generate. | |
| confirm | No | Ignored; kept for older clients. | |
| output_path | No | 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. | |
| reveal_in_finder | No | Open Finder with the new image selected so the user can see/move it. Default true; set false when generating many in a row. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| style | Yes | ||
| width | Yes | ||
| engine | Yes | ||
| height | Yes | ||
| prompt | Yes | ||
| created | Yes |