propose_command
Stages a single-line command in an iTerm2 session without running it, so the user can review and approve or decline before execution.
Instructions
Type a single-line command into an iTerm2 session WITHOUT pressing Enter, for the user to review. Then ask the user; call execute_command only after they approve, or clear_proposed_command if they decline. Refuses if a command is already staged there (unless replace: true) and refuses multi-line commands.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Single-line command to stage. | |
| replace | No | Clear an already-staged command first (default false). | |
| session_id | No | Session ID from list_iterm_sessions. Optional: defaults to the last session used. | |
| description | No | One line: what it does and why. |