ollama.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Chat
chat
chat.chat
Tool to send a chat message with conversation history to Ollama. Use when you need to have a multi-turn conversation with an LLM model.
Risk: write
messages full type
messages full type
format full type
format full type
options full type
options full type
message full type
message full type
generate
chat.generate
Tool to generate text responses from Ollama models with optional raw mode. Use raw=true to bypass prompt templating when you need full control over the prompt for debugging or custom processing. Note that raw mode will not return a context.
Risk: write
format full type
format full type
options full type
options full type
Models
listModels
models.listModels
Tool to list all available Ollama models and their details. Use when you need to fetch installed models with metadata including name, size, last modified timestamp, digest, and format information.
Risk: read
models full type
models full type
showModel
models.showModel
Tool to show comprehensive information about an Ollama model. Use when you need to retrieve model details, parameters, template, license, or system prompt.
Risk: read
options full type
options full type
details full type
details full type
model_info full type
model_info full type
version
models.version
Tool to get the version of Ollama running locally. Use to check which version of Ollama is currently installed.
Risk: read
Openai
createOpenAiChatCompletion
openai.createOpenAiChatCompletion
Tool to create OpenAI-compatible chat completions using Ollama models. Use when you need conversational AI responses with OpenAI API format compatibility.
Risk: write
messages full type
messages full type
choices full type
choices full type
usage full type
usage full type
createOpenAiCompletion
openai.createOpenAiCompletion
Tool to create OpenAI-compatible text completions using Ollama models. Use when you need text generation with OpenAI API format compatibility beyond chat-based interactions.
Risk: write
Output
choices full type
choices full type
usage full type
usage full type
listOpenAiModels
openai.listOpenAiModels
Tool to list available models using OpenAI-compatible API format. Use when you need to retrieve locally available Ollama models with metadata following OpenAI’s model list format.
Risk: read
data full type
data full type