Execute commands in a pseudo-terminal (PTY) session with full interactive terminal support. Perfect for commands requiring terminal features like sudo, ssh, vim, interactive programs, and real-time output streaming.

**!! CRITICAL RESOURCE MANAGEMENT WARNING !!**

Key capabilities:
- Full terminal emulation (xterm-256color)
- Interactive command execution
- Real-time output streaming
- Automatic session cleanup after completion
- Terminal resizing support

Usage guidelines:
- Ideal for: sudo, ssh, vim, htop, interactive shells, build commands
- Supports: Password prompts, keyboard input, terminal applications
- Provides: Live output updates, automatic cleanup
- Use for: Commands that need full terminal interaction

Parameters:
- command (required): The command to execute in PTY session
- args (optional): Command arguments as array
- cwd (optional): Working directory (defaults to current)
- env (optional): Environment variables
- timeout (optional): Execution timeout in seconds (default: 300)
- cols/rows (optional): Terminal dimensions (default 120x30)
- title (optional): Session title for identification

**!! RESOURCE MANAGEMENT !!**

This tool automatically cleans up the PTY session after command completion or timeout.

For long-running background processes or persistent sessions:
- The session will be created and managed automatically
- Use pty_manage tool to monitor active sessions: pty_manage { "action": "list" }
- Use pty_manage tool to terminate sessions: pty_manage { "action": "close", "sessionId": "id" }

**IMPORTANT**: 
- Sessions are automatically cleaned up after command completes
- For commands that don't exit (servers, daemons), use pty_manage to close them
- Check active sessions regularly with pty_manage list action

Security: Requires explicit user authorization for each execution.
