| title | Lab 06 — Clone the agent into your workspace |
|---|---|
| description | Use @copilot-studio:copilot-studio-manage clone to download the HelloWorldAgent YAML into your local workspace, then inspect the canonical folder shape on disk. |
| nav_order | 8 |
| permalink | /labs/lab-06-clone-agent |
| Duration | Level | Prerequisites |
|---|---|---|
| 10 min | Beginner | Lab 03 complete (agent exists in the portal); Lab 05 complete (plugin installed) |
@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.
- 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.
-
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.
- 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.
-
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.yml suffix. Topics live under topics/, actions under actions/, knowledge under knowledge/, and global variables under variables/. Each subfolder is created on demand by the author sub-agent.
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).
Proceed to Lab 07 — Author the Hello World topic.



