gemini
Execute Gemini CLI commands for queries, interactive sessions, and extension management. Run AI tasks directly from your MCP-enabled tools.
Instructions
Execute Gemini CLI commands. Supports queries, interactive mode, and extension management.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "gemini"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yolo | No | Auto-approve all actions (YOLO mode) | |
| model | No | Model to use (e.g., gemini-pro, gemini-1.5-flash) | |
| query | Yes | Query to send to Gemini CLI (or extension command when using extensions) | |
| sandbox | No | Run in sandbox mode for code execution | |
| extensions | No | Extension command: 'list' or 'info:extensionName' | |
| interactive | No | Run in interactive mode (returns command for manual execution) |