gemini_cli_execute
Execute Gemini CLI synchronously with configurable parameters for interactive or non-interactive prompts, enabling direct automation of AI tasks from Claude Code.
Instructions
Execute Gemini CLI synchronously with configurable parameters. Supports both interactive and non-interactive prompts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yolo | No | Enable auto confirmation (--yolo) | |
| debug | No | Enable debug logging (--debug) | |
| query | No | Query or command arguments passed to Gemini CLI (positional arguments). | |
| sandbox | No | Enable sandbox mode (--sandbox) | |
| timeout | No | Timeout in seconds for synchronous execution | |
| extensions | No | Gemini CLI extensions (--extensions) | |
| working_dir | No | Working directory for the command (default: current directory) | |
| allowed_tools | No | Whitelisted tool names (--allowed-tools) | |
| approval_mode | No | Approval mode (--approval-mode) | |
| output_format | No | Output format (--output-format) | |
| screen_reader | No | Enable screen reader mode (--screen-reader) | |
| additional_args | No | Additional CLI arguments appended verbatim | |
| experimental_acp | No | Enable experimental ACP (--experimental-acp) | |
| include_directories | No | Additional directories (--include-directories) | |
| allowed_mcp_server_names | No | Whitelisted MCP server names (--allowed-mcp-server-names) |