terminal_execute
Execute macOS terminal commands and get the output. Supports pipes, redirects, and command chaining using the default zsh shell.
Instructions
Execute a shell command in the macOS terminal and return the output. Supports any shell command including pipes, redirects, and chaining. Default shell is zsh. Timeout defaults to 30 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory (defaults to home directory) | |
| env | No | Additional environment variables | |
| shell | No | Shell to use (default: /bin/zsh) | |
| command | Yes | Shell command to execute | |
| timeout | No | Timeout in milliseconds (default: 30000) |