Command

Information about the settings for the commands specified in the commands manifest.json key.

An array of these objects is returned from commands.getAll().

Type

A value of this type is an object containing these properties for the commands:

name

string. Name of the command. This is passed into the commands.onCommand event listener.

description Optional

string. Description of the command. This is used to explain to the user what this command does.

shortcut Optional

string. Keys used to execute the command, specified as a string. See the shortcut values section of the commands manifest key documentation for more details.

description and shortcut reflect the values given in the commands manifest.json key unless they have been updated with commands.update()` or, in the case of the shortcut, customized by the user.

Browser compatibility

BCD tables only load in the browser

Note: This API is based on Chromium's chrome.commands API.