in the Option of the List View or Masonry View as CommandResponse.view.options[].action
export type Action =
| ActionOpenURL
| ActionPaste
| ActionCopy
| ActionShowToast
| ActionMove;
type ActionMove = ActionMoveAddParam;
ActionOpenURL
Opens a given URL using the system's default handler.
type:"open-url"
url: The URL to open. You can use any valid URI schema. For example, "https://", "file://", "ssh://", "slack://" (native app). Provide a string to open a single URL or an array of strings to open multiple URLs at once.
Shows a message in a toast (an ephemeral message displayed on the screen).
type:"show-toast"
message: The message that will be displayed in a toast.
{
"view": {
"type": "list",
"options": [
{
"title": "Show a Message",
"action": {
"type": "show-toast",
"message": "The task has been successfully completed!"
}
}
]
}
}
ActionMoveAddParam
Allows to change the location of the Command Bar. Currently, there is only one Move Action supported – add a param. Location parameters are then passed to the Command when it's run.
Typically, the "add-param" Action is used in the moveAction property of some Option that can be triggered by pressing Tab.