Skip to main content
Version: 5.1

Copilot Chat Interface

Once you've signed in, this is a reference for the chat input bar itself — the controls, slash commands, and modes you'll use every time you talk to Copilot.

Chat controls​

The chat input bar is where you type prompts and control how Copilot responds. It groups the following controls:

Copilot chat controls: the slash palette listing commands and built-in skills, the Edit/Plan mode toggle, web access, attach context, and send.Copilot chat controls: the slash palette listing commands and built-in skills, the Edit/Plan mode toggle, web access, attach context, and send.
#ControlDescription
1CommandsTask-specific entry points shipped with Copilot: /typecreator, /ask, /openapi, /doc. Accessible by typing / in the chat or selecting the / icon.
2Built-in skillsDomain playbooks Copilot applies while it writes code: data mapping, AI agents, workflows. Invoke them explicitly or let Copilot pick.
3Edit / Plan modeEdit applies changes to your project directly. Plan returns a proposed approach first, with no code written until you accept.
4Web accessToggles whether Copilot may search the web for current documentation and references while answering.
5Slash paletteSelecting it opens the command and skill list, the same list you get by typing / in the message field.
6Attach contextAdds files, specs, or images to the request so Copilot works from your material rather than assumptions.
7SendSubmits the prompt with the mode, web setting, and attachments currently selected.

Slash commands​

Type / in the Copilot input bar to invoke a command for a specific task. You can also invoke an enabled skill directly: type / and select the skill from the list, for example /data-map.

CommandDescription
/askAsk questions about Ballerina to be answered based on the documentation.
/docGenerate documentation for your integration.
/openapiImport OpenAPI specifications.
/typecreatorCreate custom types.
/data-mapGenerate data mappings.
/natural-programmingExperimental. Generate code from requirements and check for drift.
note

/ask answers only from the Ballerina documentation and does not use your codebase context. For questions about your code or any other topic, message Copilot directly without a command. /data-map is powered by the built-in data-map skill rather than a command.

Modes​

Copilot has two modes: plan and edit. Switch between them using the toggle in the Copilot input bar.

  • Edit Mode: Copilot starts generating immediately and applies the changes to your integration. Best for quick edits.

  • Plan Mode: Copilot first proposes a high-level plan with a step-by-step task breakdown. Review or revise the plan, then approve it to begin generation.

    Plan mode showing a structured step-by-step breakdown of execution tasks.Plan mode showing a structured step-by-step breakdown of execution tasks.

What's next​

On this page
Was this page helpful?
Report an issue