| Duration | Level | Prerequisites |
|---|---|---|
| 10 min | Beginner | Lab 03 complete (agent exists in the portal); Lab 05 complete (plugin installed) |
Overview
@copilot-studio:copilot-studio-manage clone walks an interactive sign-in to your tenant, lists your Power Platform environments, and lets you pick an agent to download as YAML. The clone places the agent at <current-folder>/HelloWorldAgent/ and produces the canonical folder layout the rest of the workshop edits.
Learning objectives
- Run the
clonesub-agent from the activecopilotsession. - Complete the interactive Entra ID sign-in for
clone(no Azure App Registration is required for clone or push). - Pick the environment and agent.
- Inspect the cloned folder shape on disk and identify each canonical file.
Exercise 6.1 — Trigger the clone
-
With your
copilotsession still open inC:\src\copilot-studio-work, run:@copilot-studio:copilot-studio-manage clone -
The sub-agent opens a browser tab for Entra ID sign-in. Complete the sign-in.

Exercise 6.2 — Pick the environment and agent
- After sign-in, the sub-agent lists your Power Platform environments. Pick the one you used in Lab 03 (for example,
Contoso). - The sub-agent then lists the agents in that environment. Pick
HelloWorldAgent. - The plugin downloads the agent YAML into your workspace.

Exercise 6.3 — Inspect the cloned folder shape
-
In VS Code’s Explorer panel, expand the newly-created
HelloWorldAgentfolder. You should see:HelloWorldAgent/ ├── agent.mcs.yml # Top-level agent definition ├── settings.mcs.yml # Display name, model, generative settings └── topics/ ├── Conversation Start.topic.mcs.yml # Default system topic ├── ... # Other default system topics -
Open
agent.mcs.ymlto confirm it parses as YAML and references the agent you created in Lab 03.

[!NOTE] Naming convention: every entity uses the
.<kind>.mcs.ymlsuffix. Topics live undertopics/, actions underactions/, knowledge underknowledge/, and global variables undervariables/. Each subfolder is created on demand by theauthorsub-agent.

Verification Checkpoint
Before proceeding, verify:
- A
HelloWorldAgent/folder now exists underC:\src\copilot-studio-work\. HelloWorldAgent/agent.mcs.ymlandHelloWorldAgent/settings.mcs.ymlexist and parse as YAML.- A
HelloWorldAgent/topics/subfolder exists with at least one default system topic (for example,Conversation Start.topic.mcs.yml).
Next Steps
Proceed to Lab 07 — Author the Hello World topic.