gemini_code_execute
Generate and execute code from natural language prompts using Gemini's built-in execution environment.
Instructions
Generate and execute code using Gemini's built-in code execution capability
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": {
"prompt": "<prompt>"
},
"name": "gemini_code_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to use (default: gemini-3.1-pro-preview) | |
| prompt | Yes | The prompt describing what code to generate and execute |