generate
Produce text with Google's Gemini API for prose, code, chat, or reasoning. Supply a prompt and optionally set JSON output, system instructions, or model.
Instructions
Generate text with Gemini: prose, code, chat, reasoning. The core generative call.
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": "generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | Force a JSON response. | |
| model | No | Override the Gemini text model. | |
| prompt | Yes | The prompt. | |
| system | No | Optional system instruction. |