Ai.commands
configurationDefines the shared fast commands for the side panel AI Prompt tool and the inline popup prompt tool. The commands are displayed in the side panel AI Prompt view and the context menu of the inline popup tool.
The commands can be configured separately in the ai.aiPrompt.commands and ai.inlineAIPrompt.commands properties.
ai.commands
Arrayai.commands.icon
String|ObjectThe icon of the command.
Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
ai.commands.id
StringThe id of the command.
ai.commands.prompt
FunctionThe prompt for the command. The function accepts the following arguments:
context- The text in the editor.
ai.commands.text
StringThe text of the command.