Slash commands
Slash commands
Slash commands are shortcuts that can be activated by typing '/' in a chat session (press cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains)), and selecting from the dropdown.
Slash commands can be combined with additional instructions, including context providers or highlighted code.
Prompts
Assistant prompt blocks
The easiest way to add a slash command is by adding prompt
blocks to your assistant, which show up as slash commands in Chat.
Prompt files
It is also possible to write your own slash command by defining a “.prompt file.” Prompt files can be as simple as a text file, but also include templating so that you can refer to files, URLs, highlighted code, and more.
Learn more about prompt files here
MCP Server prompts
Any prompts provided by Model Context Protocol servers are also accessible in chat as Slash Commands. See the MCP Server Deep Dive for more details.