本文へスキップ
すべてのツール

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 パネルが開き、ユーザーが画像を 1 回クリックして保存します(そのバージョンでの 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"
}