Skip to main content

ManifestExtensionCommand

The definition of an extension's command

idstringrequired

The identifier of the command

Possible values: non-empty and <= 32 characters, Value must match regular expression ^[a-z0-9A-Z-_.]{1,32}$

Example: convert
on objectrequired

The kind of entity and the conditions the command applies to

entityCommandEntityrequired

The entity the command applies to

Possible values: [Process, Images, Image]

withTagsstring[]

The tags the entity should be attached to for the command to apply

Possible values: non-empty and <= 64 characters

parameters object

The definition of the parameters the command requires

property name*any

The definition of the parameters the command requires

specifications object[]required

The specifications for the command

Possible values: >= 1

  • Array [
  • localestringrequired

    The locale the specification applies on

    Possible values: non-empty and <= 8 characters

    Default value: en
    Example: fr
    labelstringrequired

    The command label displayed on buttons

    Possible values: non-empty and <= 32 characters

    Example: Resize
    namestring

    The command name displayed on dialog boxes

    Possible values: non-empty and <= 128 characters

    Example: Resize an image
    descriptionstring

    The command description

    Possible values: non-empty and <= 1024 characters

    Example: Resizes an image given a format asked to the user.
  • ]
  • ui object

    The UI specifications of the command

    iconUristringrequired

    The URI of the command icon

    Possible values: non-empty and <= 4096 characters, Value must match regular expression ^(https?://|/?)[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]+$

    Example: /assets/icon.svg
    ManifestExtensionCommand
    {
    "id": "convert",
    "on": {
    "entity": "Process",
    "withTags": [
    "string"
    ]
    },
    "parameters": {},
    "specifications": [
    {
    "locale": "fr",
    "label": "Resize",
    "name": "Resize an image",
    "description": "Resizes an image given a format asked to the user."
    }
    ],
    "ui": {
    "iconUri": "/assets/icon.svg"
    }
    }