Skip to main content
Every 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
Input
Output

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
Input
Output

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
Input: empty object Output

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
Input
Output

version

models.version Tool to get the version of Ollama running locally. Use to check which version of Ollama is currently installed. Risk: read
Input: empty object Output

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
Input
Output

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
Input Output

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
Input: empty object Output