Most LLMs have access to such tools. Well, maybe not a Unix shell, but something similar. This is from GPT 4.5's system prompt [1]:
python
When you send a message containing Python code to python, it
will be executed in a stateful Jupyter notebook environment.
python will respond with the output of the execution or time
out after 60.0 seconds. The drive at '/mnt/data' can be used
to save and persist user files. Internet access for this
session is disabled. Do not make external web requests or API
calls as they will fail.