{
  "version": 1,
  "availability": "Requires an installed plugin offering the requested action; choose from its Quick Actions list",
  "docsUrl": "https://docs.hypermatic.com/tinyimage/automation/parameters",
  "inputLimits": {
    "quickActionsPasteMaxCharacters": 149,
    "maxSelectedLayers": 100,
    "rejectedAmbiguousLength": 150
  },
  "settingsPolicy": {
    "omitted": "inherit saved settings, then normal settings or documented fallback",
    "explicit": "override for this run only",
    "persistExportOverrides": false,
    "unsupportedSavedFormat": "choose an explicit supported format or use the normal panel"
  },
  "optionDefinitionFormat": "Hypermatic parameter fields v1; not JSON Schema",
  "plugin": "tinyimage",
  "parameters": [
    "command",
    "parameters"
  ],
  "contextMenu": [
    {
      "name": "Compress Selected Layers",
      "menu": [
        {
          "name": "Use Saved Settings",
          "command": "menu-compress-defaults"
        },
        {
          "name": "Compress Selected Layers (Custom Settings…)",
          "command": "shortcut-compress",
          "parameterOnly": true,
          "parameters": [
            {
              "name": "Quality (1–100)",
              "key": "quality",
              "allowFreeform": true,
              "optional": true
            }
          ]
        }
      ]
    },
    {
      "name": "Convert Selected Layers",
      "menu": [
        {
          "name": "JPG and PNG to WebP",
          "command": "menu-convert-convert-webp"
        },
        {
          "name": "Only JPG to WebP",
          "command": "menu-convert-convert-webpjpg"
        },
        {
          "name": "Only PNG to WebP",
          "command": "menu-convert-convert-webppng"
        },
        {
          "name": "JPG and PNG to AVIF",
          "command": "menu-convert-convert-avif"
        },
        {
          "name": "SVG to Tiny 1.2 SVG",
          "command": "menu-convert-convert-tinysvg"
        },
        {
          "name": "Convert Selected Layers (Custom Settings…)",
          "command": "shortcut-convert",
          "parameterOnly": true,
          "parameters": [
            {
              "name": "Convert format",
              "key": "convert",
              "allowFreeform": false,
              "optional": false
            },
            {
              "name": "Quality (1–100)",
              "key": "quality",
              "allowFreeform": true,
              "optional": true
            }
          ]
        }
      ]
    },
    {
      "name": "Export Selected Layers as PDF",
      "command": "shortcut-pdf"
    },
    {
      "name": "Export Selected Figma Motion",
      "menu": [
        {
          "name": "Use Default Settings",
          "command": "menu-motion-defaults"
        },
        {
          "name": "Animated GIF",
          "command": "menu-motion-format-GIF"
        },
        {
          "name": "MP4 Video",
          "command": "menu-motion-format-MP4"
        },
        {
          "name": "WebM Video",
          "command": "menu-motion-format-WEBM"
        },
        {
          "name": "Export Selected Figma Motion (Custom Settings…)",
          "command": "shortcut-motion",
          "parameterOnly": true,
          "parameters": [
            {
              "name": "Format",
              "key": "format",
              "allowFreeform": false,
              "optional": true
            },
            {
              "name": "Frames per second",
              "key": "fps",
              "allowFreeform": false,
              "optional": true
            }
          ]
        }
      ]
    },
    {
      "name": "Arrange Selected Layers",
      "menu": [
        {
          "name": "Use Saved Layout and Spacing",
          "command": "menu-tidy-defaults"
        },
        {
          "name": "Automatic",
          "command": "menu-tidy-layout-auto"
        },
        {
          "name": "Rows",
          "command": "menu-tidy-layout-rows"
        },
        {
          "name": "Columns",
          "command": "menu-tidy-layout-columns"
        },
        {
          "name": "Arrange Selected Layers (Custom Settings…)",
          "command": "shortcut-tidy",
          "parameterOnly": true,
          "parameters": [
            {
              "name": "Layout",
              "key": "layout",
              "allowFreeform": false,
              "optional": true
            },
            {
              "name": "Horizontal gap (px)",
              "key": "horizontalSpacing",
              "allowFreeform": true,
              "optional": true
            },
            {
              "name": "Vertical gap (px)",
              "key": "verticalSpacing",
              "allowFreeform": true,
              "optional": true
            }
          ]
        }
      ]
    }
  ],
  "contextPresets": [
    {
      "command": "menu-compress-defaults",
      "name": "Use Saved Settings",
      "action": "compress",
      "preset": {},
      "parameters": []
    },
    {
      "command": "menu-convert-convert-webp",
      "name": "JPG and PNG to WebP",
      "action": "convert",
      "preset": {
        "convert": "webp"
      },
      "parameters": []
    },
    {
      "command": "menu-convert-convert-webpjpg",
      "name": "Only JPG to WebP",
      "action": "convert",
      "preset": {
        "convert": "webpjpg"
      },
      "parameters": []
    },
    {
      "command": "menu-convert-convert-webppng",
      "name": "Only PNG to WebP",
      "action": "convert",
      "preset": {
        "convert": "webppng"
      },
      "parameters": []
    },
    {
      "command": "menu-convert-convert-avif",
      "name": "JPG and PNG to AVIF",
      "action": "convert",
      "preset": {
        "convert": "avif"
      },
      "parameters": []
    },
    {
      "command": "menu-convert-convert-tinysvg",
      "name": "SVG to Tiny 1.2 SVG",
      "action": "convert",
      "preset": {
        "convert": "tinysvg"
      },
      "parameters": []
    },
    {
      "command": "menu-motion-defaults",
      "name": "Use Default Settings",
      "action": "motion",
      "preset": {},
      "parameters": []
    },
    {
      "command": "menu-motion-format-GIF",
      "name": "Animated GIF",
      "action": "motion",
      "preset": {
        "format": "GIF"
      },
      "parameters": []
    },
    {
      "command": "menu-motion-format-MP4",
      "name": "MP4 Video",
      "action": "motion",
      "preset": {
        "format": "MP4"
      },
      "parameters": []
    },
    {
      "command": "menu-motion-format-WEBM",
      "name": "WebM Video",
      "action": "motion",
      "preset": {
        "format": "WEBM"
      },
      "parameters": []
    },
    {
      "command": "menu-tidy-defaults",
      "name": "Use Saved Layout and Spacing",
      "action": "tidy",
      "preset": {},
      "parameters": []
    },
    {
      "command": "menu-tidy-layout-auto",
      "name": "Automatic",
      "action": "tidy",
      "preset": {
        "layout": "auto"
      },
      "parameters": []
    },
    {
      "command": "menu-tidy-layout-rows",
      "name": "Rows",
      "action": "tidy",
      "preset": {
        "layout": "rows"
      },
      "parameters": []
    },
    {
      "command": "menu-tidy-layout-columns",
      "name": "Columns",
      "action": "tidy",
      "preset": {
        "layout": "columns"
      },
      "parameters": []
    }
  ],
  "shortcuts": [
    {
      "command": "open",
      "name": "Open TinyImage",
      "action": "open",
      "advanced": false,
      "parameters": [],
      "target": "none"
    },
    {
      "command": "shortcut-compress",
      "name": "Compress Selected Layers (Custom Settings…)",
      "action": "compress",
      "advanced": false,
      "parameters": [
        {
          "name": "Quality (1–100)",
          "key": "quality",
          "allowFreeform": true,
          "optional": true
        }
      ],
      "target": "current selection"
    },
    {
      "command": "shortcut-convert",
      "name": "Convert Selected Layers (Custom Settings…)",
      "action": "convert",
      "advanced": false,
      "parameters": [
        {
          "name": "Convert format",
          "key": "convert",
          "allowFreeform": false,
          "optional": false
        },
        {
          "name": "Quality (1–100)",
          "key": "quality",
          "allowFreeform": true,
          "optional": true
        }
      ],
      "target": "current selection"
    },
    {
      "command": "shortcut-pdf",
      "name": "Export Selected Layers as PDF",
      "action": "pdf",
      "advanced": false,
      "parameters": [],
      "target": "current selection"
    },
    {
      "command": "shortcut-motion",
      "name": "Export Selected Figma Motion (Custom Settings…)",
      "action": "motion",
      "advanced": false,
      "parameters": [
        {
          "name": "Format",
          "key": "format",
          "allowFreeform": false,
          "optional": true
        },
        {
          "name": "Frames per second",
          "key": "fps",
          "allowFreeform": false,
          "optional": true
        }
      ],
      "target": "current selection"
    },
    {
      "command": "shortcut-tidy",
      "name": "Arrange Selected Layers (Custom Settings…)",
      "action": "tidy",
      "advanced": false,
      "parameters": [
        {
          "name": "Layout",
          "key": "layout",
          "allowFreeform": false,
          "optional": true
        },
        {
          "name": "Horizontal gap (px)",
          "key": "horizontalSpacing",
          "allowFreeform": true,
          "optional": true
        },
        {
          "name": "Vertical gap (px)",
          "key": "verticalSpacing",
          "allowFreeform": true,
          "optional": true
        }
      ],
      "target": "current selection"
    }
  ],
  "actions": {
    "open": {
      "description": "Open the normal interactive plugin",
      "fields": {},
      "target": "none",
      "execution": "builtin"
    },
    "compress": {
      "description": "Compress selected layers without changing their Figma export formats",
      "fields": {
        "quality": {
          "type": "number",
          "min": 1,
          "max": 100,
          "default": 90,
          "description": "Compression quality"
        }
      },
      "target": "many",
      "execution": "worker"
    },
    "pdf": {
      "description": "Merge selected frames into a screen PDF",
      "fields": {},
      "target": "many",
      "execution": "worker"
    },
    "motion": {
      "description": "Export native Figma Motion from one source",
      "fields": {
        "format": {
          "type": "string",
          "values": [
            "GIF",
            "MP4",
            "WEBM"
          ],
          "default": "GIF",
          "description": "Animation format"
        },
        "fps": {
          "type": "number",
          "values": [
            10,
            15,
            24,
            25,
            30,
            60
          ],
          "default": 30,
          "description": "Frames per second; native plan restrictions still apply"
        }
      },
      "target": "one",
      "execution": "worker"
    },
    "convert": {
      "description": "Convert selected layers to an explicitly chosen output format",
      "fields": {
        "convert": {
          "type": "string",
          "values": [
            "webp",
            "webpjpg",
            "webppng",
            "avif",
            "tinysvg"
          ],
          "required": true,
          "description": "Output conversion; use compress to keep original formats"
        },
        "quality": {
          "type": "number",
          "min": 1,
          "max": 100,
          "default": 90,
          "description": "Compression quality"
        }
      },
      "target": "many",
      "execution": "worker"
    },
    "tidy": {
      "description": "Arrange explicit sibling layers; sorting, wrapping, renaming and pager updates require explicit options",
      "fields": {
        "layout": {
          "type": "string",
          "description": "Layout direction",
          "values": [
            "auto",
            "rows",
            "columns"
          ],
          "default": "auto"
        },
        "horizontalSpacing": {
          "type": "number",
          "description": "Horizontal spacing in pixels",
          "min": 0,
          "max": 10000,
          "default": 100
        },
        "verticalSpacing": {
          "type": "number",
          "description": "Vertical spacing in pixels",
          "min": 0,
          "max": 10000,
          "default": 100
        }
      },
      "target": "many",
      "execution": "worker"
    }
  },
  "examples": {
    "compress": {
      "quality": "90"
    },
    "pdf": {},
    "motion": {
      "format": "GIF",
      "fps": "30"
    },
    "convert": {
      "convert": "webp",
      "quality": "90"
    },
    "tidy": {
      "layout": "auto",
      "horizontalSpacing": "100",
      "verticalSpacing": "100"
    }
  },
  "limitsAndBehavior": "Compression uses selected layers' Figma export formats; conversion requires a chosen format. Export shortcuts do not downsize source image fills. Motion accepts one source; set frame rate in Custom Settings. Arrange changes layout and spacing only. Print canvases, logo canvases, bulk video assembly and detailed Tidy controls use the normal panel.",
  "entitlement": {
    "verificationRequired": true,
    "validLicenseOrRemainingTrials": true,
    "openPanelExempt": true
  },
  "completion": {
    "deadlineMs": 300000,
    "visibleNotifications": true,
    "nativeSaveDialog": true,
    "verifySavedArtifact": true
  },
  "invocation": "Figma Quick Actions or a verified host launcher; no REST/MCP launcher is provided",
  "results": "Normal Figma success/error notifications, document changes, native file downloads and published pages"
}
