{
  "version": "0.1.0",
  "examples": [
    {
      "id": "animate-discovery",
      "tool": "tong_workflows",
      "input": {
        "query": {
          "operation": "IMAGE_TO_VIDEO"
        }
      }
    },
    {
      "id": "animate-quote",
      "tool": "tong_generation_quote",
      "input": {
        "body": {
          "operation": "IMAGE_TO_VIDEO",
          "model": "MODEL_ID_FROM_DISCOVERY",
          "resolution": "720p",
          "durationSeconds": 5,
          "inputAssetIds": [
            "aaaaaaaaaaaaaaaaaaaaaaaa"
          ],
          "routingParameters": {
            "ratio": "16:9"
          }
        }
      }
    },
    {
      "id": "animate-submit",
      "tool": "tong_generation_submit",
      "input": {
        "params": {
          "id": "cccccccccccccccccccccccc"
        },
        "body": {
          "operation": "IMAGE_TO_VIDEO",
          "quoteId": "QUOTE_SUBMIT_VALUE",
          "prompt": "Animate the supplied image with a slow camera push.",
          "inputAssetIds": [
            "aaaaaaaaaaaaaaaaaaaaaaaa"
          ],
          "parameters": {
            "videoModel": "MODEL_ID_FROM_DISCOVERY",
            "resolution": "720p",
            "durationSeconds": 5,
            "ratio": "16:9"
          }
        }
      }
    },
    {
      "id": "named-reference-quote",
      "tool": "tong_generation_quote",
      "input": {
        "body": {
          "operation": "IMAGE_EDIT",
          "model": "MODEL_ID_FROM_DISCOVERY",
          "inputAssetIds": [
            "aaaaaaaaaaaaaaaaaaaaaaaa",
            "bbbbbbbbbbbbbbbbbbbbbbbb"
          ],
          "referenceRequest": {
            "prompt": "Keep the subject in @Image1 and use the setting in @Image2.",
            "assetIds": [
              "aaaaaaaaaaaaaaaaaaaaaaaa",
              "bbbbbbbbbbbbbbbbbbbbbbbb"
            ],
            "direction": {
              "version": 1,
              "capabilityRevision": "REVISION_FROM_MODEL_CONFIGURATION",
              "references": [
                {
                  "id": "subject",
                  "assetId": "aaaaaaaaaaaaaaaaaaaaaaaa",
                  "field": "images",
                  "label": "Image1"
                },
                {
                  "id": "setting",
                  "assetId": "bbbbbbbbbbbbbbbbbbbbbbbb",
                  "field": "images",
                  "label": "Image2"
                }
              ]
            }
          }
        }
      }
    },
    {
      "id": "named-reference-submit",
      "tool": "tong_generation_submit",
      "input": {
        "params": {
          "id": "cccccccccccccccccccccccc"
        },
        "body": {
          "operation": "IMAGE_EDIT",
          "quoteId": "QUOTE_SUBMIT_VALUE",
          "prompt": "Keep the subject in @Image1 and use the setting in @Image2.",
          "inputAssetIds": [
            "aaaaaaaaaaaaaaaaaaaaaaaa",
            "bbbbbbbbbbbbbbbbbbbbbbbb"
          ],
          "parameters": {
            "imageModel": "MODEL_ID_FROM_DISCOVERY",
            "referenceDirection": {
              "version": 1,
              "capabilityRevision": "REVISION_FROM_MODEL_CONFIGURATION",
              "references": [
                {
                  "id": "subject",
                  "assetId": "aaaaaaaaaaaaaaaaaaaaaaaa",
                  "field": "images",
                  "label": "Image1"
                },
                {
                  "id": "setting",
                  "assetId": "bbbbbbbbbbbbbbbbbbbbbbbb",
                  "field": "images",
                  "label": "Image2"
                }
              ]
            }
          }
        }
      }
    },
    {
      "id": "assistant-named-references",
      "tool": "tong_assistant_start",
      "input": {
        "message": "Animate @Image1 and preserve the subject in @Image2.",
        "attachments": [
          "aaaaaaaaaaaaaaaaaaaaaaaa",
          "bbbbbbbbbbbbbbbbbbbbbbbb"
        ],
        "reference_bindings": [
          {
            "label": "Image1",
            "assetId": "aaaaaaaaaaaaaaaaaaaaaaaa"
          },
          {
            "label": "Image2",
            "assetId": "bbbbbbbbbbbbbbbbbbbbbbbb"
          }
        ],
        "mode": "guided"
      }
    },
    {
      "id": "filmmaker-named-references",
      "tool": "tong_filmmaker_start",
      "input": {
        "message": "Use @Image1 as the opening and @Image2 as the ending.",
        "attachments": [
          "aaaaaaaaaaaaaaaaaaaaaaaa",
          "bbbbbbbbbbbbbbbbbbbbbbbb"
        ],
        "reference_bindings": [
          {
            "label": "Image1",
            "assetId": "aaaaaaaaaaaaaaaaaaaaaaaa"
          },
          {
            "label": "Image2",
            "assetId": "bbbbbbbbbbbbbbbbbbbbbbbb"
          }
        ],
        "mode": "guided"
      }
    }
  ]
}
