smart_exec
Execute shell commands with real-time ANSI stripping, progress-bar suppression, and head/tail truncation to keep command output compact and reduce prompt tokens.
Instructions
Execute a shell command with real-time ANSI escape stripping, carriage-return collapse, package manager progress bar & spinner suppression, and intelligent head/tail truncation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command line to execute. | |
| max_lines | No | Maximum output lines before head/tail truncation (default: 60). |