I Asked a Microsoft Copilot Harness Agent to Turn a Gingerbread Man into an STL File
Neil Haddley • November 26, 2026
I created an agent in Copilot Studio, powered by the Microsoft Copilot harness, with one line of instructions, gave it two photos of a gingerbread man, and asked for a 3D printing file. The first test stopped because I had not set up billing, so I turned on pay-as-you-go, and the agent then produced two STL files. I sliced the textured one and sent it to my Bambu Lab P1S.
I had two photos of a gingerbread man lying on lined paper next to a ruler. I wanted a file my 3D printer could read. So I asked an agent that I created in Copilot Studio, powered by the Microsoft Copilot harness, to make one.
This post follows the whole trip: sign-up, one line of instructions, a message about credits, a pay-as-you-go billing plan that I set up, two STL files, a slicer and a print job.
Signing up for Copilot Studio
I went to the Copilot Studio sign-up page. It recognised my account and asked me to select Continue.
The home page greeted me with three cards: Agent, Workflow and App (preview). A small badge said Uses Copilot Credits.
One line of instructions
The new agent opened as "Untitled Agent". The right-hand panel already had a model set to Auto, a tool called Work IQ and a knowledge source called Search all websites. The instructions box held a template asking for five things: what the agent should accomplish, what is in and out of scope, how it should communicate, when it should use knowledge or take action, and when it should act alone, ask for input or stop.
I wrote one sentence and named the agent STL file generator.
PROMPT
1Use the supplied photographs to generate a 3D STL model of an item
The first attempt
In the Preview tab I attached two photos and typed a request.
The agent stopped with an error message.
The message said that the environment was out of credits, and gave the error code EnforcementUsageCredits. I had not set up any billing, so the environment had no credits to spend. The fix was mine to make: I had to set up pay-as-you-go billing.
Which kind of agent is this?
Copilot Studio runs every agent on a harness, which is the runtime between the model and the agent you design. Microsoft describes three: the standard harness, the Microsoft Copilot harness and the Customer Conversation harness (Harnesses in Copilot Studio).
My agent runs on the Microsoft Copilot harness. This is how I created it:
Here is what points to that harness:
- I created it from the New agent menu by choosing the first option, Agent, which carries the Uses Copilot Credits badge and is described as an agent that acts autonomously and answers questions on my behalf. The menu also offers a Customer conversation agent and an Agent labelled Standard, described as a rule-based conversational agent with predefined topics and flows. I chose neither of those.
- The agent has four tabs, Build, Preview, Evaluate and Monitor, with Skills, Memory (preview) and Connected agents on the Build tab, and no Topics page. Microsoft's documentation describes the Build tab as the single place where this harness is configured.
- The agent created files and said that they were in
/app/created. Microsoft says this harness works with files in a secure sandbox. - It uses Copilot Credits, which is how Microsoft bills this harness.
You may also see this harness called the GitHub Copilot harness. Earlier Microsoft blog posts used that name, and Microsoft's current documentation uses Microsoft Copilot harness.
The two main harnesses differ like this:
| Standard harness | Microsoft Copilot harness | |
|---|---|---|
| How it works | Follows the topics and rules that I define | Takes a goal, plans the steps and adapts |
| Best for | Short, bounded, rule-based tasks | Long, multi-step processes |
| Building | Topics, triggers, variables, prompts | Instructions, skills, tools, workflows, memory |
| Files | Not a focus | Creates and edits files in a sandbox |
| Predictability | Tighter control | Less predictable, because the agent chooses the next step |
| Billing | Existing Copilot Studio licensing | Usage-based Copilot Credits |
Microsoft says that the Copilot harness can overwork a simple problem and spend credits without a better result (Compare Copilot Studio agent harnesses).
Setting up pay-as-you-go billing
The fix took me out of Copilot Studio and into two other Microsoft portals.
First, in the Azure portal, I created a resource group named CopilotStudioResourceGroup in East US, under my Azure subscription.
Then, in the Power Platform admin center, I opened Licensing and Billing plans. The list said "No data to display".
I selected New billing plan. The dialog warned me that creating the plan turns on pay-as-you-go billing for every resource in the environments I select, charged to an Azure subscription. I named the plan CopilotStudioBillingPlan and ticked two meters: Copilot Studio and Windows 365 for Agents.
Next I chose the United States region and the one environment I had, haddley.com (default).
The plan appeared with the status Enabled.
The second attempt
I went back to the preview chat, attached the same two photos and typed the request again.
This time the agent worked. After a pause it replied with a long message. I have summarised what it said, because the details are the interesting part.
- It made two STL models and a preview image. One file was smooth, with a clean flat top. The other, the textured one, added the pitted, crumbly surface from my photo, up to 0.8 mm deep.
- It said that it checked both files and that they are fully closed solids with no gaps, so they are ready for a slicer.
- It gave a size of 42.8 × 72.0 × 8.0 mm. It said that it scaled the model using the ruler in my photos, and that both photos agreed on the length at about 72 to 73 mm.
- It described its method. It traced the outline from the upright photo and ignored the shadow, turned the outline into a solid with a flat bottom, and rounded the top edges with a 2.5 mm radius.
- It admitted a weakness. Both photos were taken from above, so it could not measure the thickness. It guessed 8 mm, and it offered to update both files if I told it the real thickness or sent a photo from the side.
I liked that answer. The agent did not hide the guess. It put the guess under the heading "One thing to check".
What did the agent actually do?
It is easy to think that the agent built a 3D model of a cookie from two photos. From its own summary, it did something simpler:
- It traced the outline of the cookie from the upright photo and ignored the shadow.
- It scaled the outline using the ruler.
- It pushed the outline up into a solid with a flat bottom and rounded top edges, and for the textured file it added a pitted surface up to 0.8 mm deep.
- It guessed the thickness, because neither photo showed the cookie from the side.
That is a flat silhouette extruded to a chosen height, and it is the easy case. I did not see the code that the agent ran, so this comes from its own description. A cookie is a good subject for it. I would expect a mug with a handle to be much harder.
Three parts did the work:
- The LLM read the photos, spotted the ruler and the shadow, chose the method, wrote the code and said which number it had guessed. For this job, I think most of the skill is in the LLM.
- The code did the outline tracing, the scaling and the writing of the STL file.
- The Microsoft Copilot harness gave the model a sandbox to run that code in, kept the loop going and handed back the files. Microsoft says that this harness runs each task in a secure sandbox (Harnesses in Copilot Studio).
Looking at the file
I downloaded the textured STL and opened it in a file viewer. I saw a flat gingerbread man with a pitted top and a steep edge with fine vertical streaks.
From STL to print job
I opened only the textured file in Bambu Studio. I did not slice or print the smooth one. I used my Bambu Lab P1S with a 0.4 mm nozzle, PLA Basic filament and the 0.20 mm Standard process.
The slicer reported 2.85 m of filament, 8.64 g and a total time of 34 minutes and 33 seconds, for a cost of 0.14. I sent that one job to the printer.
A file that a slicer accepts without repair is a good sign. It is not the same as a part that fits.
Publishing the agent
I wanted to share the agent. I selected Publish. The dialog told me to add a channel so people can start conversations, and that without a channel, triggers run the agent automatically.
I published without a channel first. Copilot Studio said the agent was published but not on any channel yet, so nobody could reach it.
A red badge appeared on the Review button. I also noticed that the Work IQ tool, which reads Microsoft 365 data, was still attached to a program that only needs photographs. I selected its X, and Copilot Studio asked me to confirm the removal.
I opened the settings. Under Safety and access, the Authentication setting offered two choices: No authentication and Authenticate with Microsoft. A note on top said that changes take effect after I save and publish.
Further down the same page, a setting called Pause agent after repeated failures was switched on. It pauses the agent after ten failed runs in a row within 24 hours, to reduce failures and credit use.
Sharing the demo website
I added the Demo website channel, and Copilot Studio told me that my agent published successfully.
The Share dialog gave me a link for team members to try the agent, an Open demo website button and an Embed tab.
The demo website opened with a big headline announcing my new agent and the chat on the right. The page described itself as a testing space before you roll the agent out to a broader audience.
Microsoft calls it a demo website, and the page says so.
Other ways I could have done this
Copilot Studio was not the only route. I tried the other harnesses, but not Agent Builder, so I make no claim about how well that would work:
- Agent Builder in Microsoft 365 Copilot. Microsoft says its code interpreter is always on, runs Python in a sandbox and can produce downloadable files (code interpreter). It is available to users with a Microsoft 365 Copilot licence, so it might have avoided the pay-as-you-go plan.
- Other harnesses. I used both Claude Code and DeepSeek Harness to convert the same photos to an STL file. It was easy, and certainly no harder than using the Microsoft Copilot harness agent.
For a similar job done with Claude Code, see 3D Printing, where I designed two versions of the back half of a rear light and measured it from a photo.


























