Execute code (stateless/stateful Python), shell commands, and manage interactive background sessions with timeouts, environment variables, and error handling.