Is your feature request related to a problem? Please describe.
The run code action seems to handle file generation perfectly. The run code tool does not. But there does seem to be some code in the tool to support this? Am I doing something wrong?
Describe the solution you'd like
When the run code tool runs, it generates files the same way as the action.
Describe alternatives you've considered
Using the action, which works.