Slash commands
Type "/" in the chat input to open a shortcut menu — help, keyboard shortcuts, validate the current document, clear the message list, and more.
Slash commands are the quick-access menu of AI Chat. Type a single / in the input and a dropdown appears; pressing Enter on an item either executes it immediately or submits a preset prompt to the AI. Clicking an item with the mouse, or pressing Tab, only autocompletes it into the input box — you still need to press Enter to run it.
Built-in commands
| Command | Action | Type |
|---|---|---|
/help | View all available commands | Dialog |
/shortcuts | View keyboard shortcuts | Dialog |
/validate | Ask AI to validate the current document's structure and widget references | Prompt template |
/clear | Empty the message list of the current conversation (display only — the AI keeps the earlier context) | Action |
Two command forms
- Action commands: fire immediately on Enter (e.g.,
/helpopens a dialog,/clearempties the message list after a confirmation); - Prompt-template commands: for commands without arguments (e.g.
/validate), the preset prompt is submitted to the AI immediately on Enter — it never appears in the input box for editing. Commands that declare arguments instead fill/command-nameinto the input and wait for you to type the argument before sending.
Here is roughly what /validate submits to the AI (the underlying template is written in Chinese):
Please verify that the structure and semantics of the current document are correct —
run validate_board to check the document structure, that every referenced widget
exists, and that the referenced workspace documents exist.
List each issue and propose a fix.Keyboard operation
| Key | Action |
|---|---|
/ | Open slash command menu |
↑ / ↓ | Move selection |
Tab | Autocomplete the selected command into the input (does not send) |
Enter | Pick the current command |
Esc | Close the menu |
IME compatibility
The input uses isComposing detection so that pressing Enter mid-IME-composition (e.g., while typing pinyin or Japanese kana) doesn't accidentally send the message — only after composition commits will Enter trigger a send.
Custom commands
Create your own prompt-template commands under Settings → Commands: give it a name, write a prompt template (supports an {{args}} placeholder for parameters), and once saved you can invoke it as /your-command-name from the input.
Next step
Prompt writing tips
Three techniques for getting the agent to execute precisely — locate the target, add constraints, break complex tasks into steps.
BYOK (Bring Your Own Key)
Connect your own OpenAI / Anthropic / Google / DeepSeek / Qwen / Moonshot / xAI / Mistral API key — BYOK calls do not consume VizChat platform credits.