Chat Integration
How to use the @boxlang chat participant in VS Code — AI-assisted BoxLang coding, documentation lookup, and the /docs command.
The BoxLang extension includes an AI chat participant that provides BoxLang-aware assistance directly in VS Code's Chat view. It integrates with GitHub Copilot Chat to answer questions, suggest code, and look up documentation.
Getting Started
Invoke the Chat Participant
Open the Chat view (
Ctrl+Shift+I/Cmd+Shift+I).Type
@boxlangfollowed by your question.Press Enter.
@boxlang How do I use queryExecute with parameterized queries?The chat participant responds with BoxLang-specific answers, drawing from the BoxLang documentation and runtime knowledge.
Features
BoxLang-Aware Responses
The @boxlang participant is tuned for BoxLang and CFML development. It can:
Write BoxLang code snippets
Explain language features and built-in functions (BIFs)
Help debug errors and suggest fixes
Recommend best practices and patterns
Explain framework concepts (ColdBox, TestBox, etc.)
Documentation Lookup Tool
The chat participant has access to a built-in Documentation Lookup tool (lookupBoxLangDocumentation) that:
Searches the complete BoxLang documentation index
Identifies the most relevant documentation pages for your question
Fetches those pages and includes them in the chat context
Bases its answers on authoritative documentation
This means answers are grounded in real BoxLang docs, not just model training data.
/docs Command
Use the /docs slash command to get quick links to relevant documentation without asking a specific question:
This returns direct links to the BoxLang documentation pages most relevant to your topic.
Example Prompts
Code Generation
Debugging Help
Learning
Framework Questions
Documentation Links
How It Works
The @boxlang chat participant uses the @vscode/chat-extension-utils library to:
Receive your prompt with full chat history context
Filter available language model tools to BoxLang-relevant ones
Send the request to the AI model with a specialized BoxLang system prompt
Stream the response back with reference links
The system prompt is loaded from a bundled resource file that contains BoxLang-specific instructions, conventions, and knowledge.
Requirements
GitHub Copilot Chat must be installed and active
An active GitHub Copilot subscription
The BoxLang extension must be activated (open any
.bx,.bxs,.bxm, or.cfcfile)
Related Pages
Commands ReferenceSettings ReferenceLast updated
Was this helpful?