Is the `ls` command a good UX experience for a bot? No! It keeps trying to query folders that don't exist and it gets an error message. It then wastes tokens trying to guess the folders that exist. `ls` for a bot needs to say, "That doesn't exist, here is what does exist" And then the bot can continue with the task.
UX for bots is like taking something that had bad UX to start with and imagining it will also be good for octopus.