generate
Generate text from a prompt using any installed Ollama model. Specify model, prompt, and optional system instructions to get AI-written responses.
Instructions
Generate text using an Ollama model
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": {
"model": "<model>",
"prompt": "<prompt>"
},
"name": "generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | The name of the model to use | |
| prompt | Yes | The prompt to generate from | |
| stream | No | Whether to stream the response | |
| system | No | Optional system prompt |