I’m trying to create a shortcut from the sharesheet to save a file to particular iCloud Drive/Files folder. However within the options for the ‘save file’ action in shortcuts only allows me to save into the directory ‘/shortcuts/‘. How do I change this so that I can specify a file path that is not within ‘/shortcuts/‘?
You can't access files outside
/Shortcuts/ on purpose, it's called sandboxing and makes sure that your iCloud data is safe!
As a matter of fact, it used to be possible to trick Shortcuts.app with a relative path (e.g.
/Shortcuts/../../hiddenData/), but that security problem (CVE-2019-7289) was fixed in February 2019: release notes