chat
Send a message to an Ollama model for AI-generated responses. Includes optional system prompts and conversation history for contextual replies.
Instructions
Chat with 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>",
"message": "<message>"
},
"name": "chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | The name of the model to use | |
| stream | No | Whether to stream the response | |
| system | No | Optional system prompt | |
| context | No | Optional conversation context (array of messages) | |
| message | Yes | The message to send to the model |