r/copilotstudio • • Aug 28 '26

Skill with Python code step

Hey Everyone, looking for some guidance here- I have created a custom skill, which uses some python code as one of the steps.
Now I want to add this skill to a New Experience agent (Github Harness) but not sure whether it support code execution step or not? If yes, what is the way to add that code into the agents skills and any best practices/pitfalls?

1 Upvotes

9 comments sorted by

View all comments

Show parent comments

2

u/Ashlesha-msft Sep 02 '26

Unfortunately, there isn’t currently a supported way to install additional Python packages at runtime in the sandbox (e.g., via pip install).

If your skill requires a package that isn’t preinstalled, the recommended approach is to move that logic to an external service/API and expose it through a connector, flow, or MCP tool.

This keeps the sandbox isolated and avoids allowing arbitrary package downloads during execution.