shell
Generate shell commands with Gemini. By default, explains commands without executing; set dryRun=false to execute in a sandbox.
Instructions
Generate and optionally execute shell commands using Gemini. By default runs in dry-run mode (explains commands). Set dryRun=false to execute in sandbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Shell task description. REQUIRED. Describe what you want to accomplish (e.g., "find TypeScript files modified last week", "compress log files"). Gemini will generate appropriate commands. | |
| model | No | Gemini model to use. DEFAULT: 'gemini-3-flash-preview' (fast). Use 'gemini-3-pro-preview' for complex operations. | |
| dryRun | No | Command execution mode. DEFAULT: true (safe, explains without executing). When false: executes in sandbox. Set to false only for actual execution. | |
| workingDirectory | No | Directory to run commands in. OPTIONAL. Use @ prefix (e.g., @src/). If omitted, uses current working directory. |