How to get Cursor chat to create / modify files directly?

Chat suggested it could make a file for me, using this command:

ide.new(‘src/routes/asps/+page.server.ts’)

Which failed and then took me down a rabbit hole of installing jupyter extension (whatever that is), python, pip and finally, once it sort of liked that, it decided that ‘ide’ isn’t defined anyway.

None of this is documented, and I expected Cursor to have this functionality built in! It seems fairly useless that the chat function can’t create or modify files out of the box.

I’m running my workspace on WSL with a node.js application (sveltekit) if that’s relevant.

You can also use the /edit slash command to edit your current file. Is the “ide isn’t defined” error still happening?