Skip to main content
Ollama logo
  • Category: ai models
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 8
  • Triggers: 0
  • Slug: OLLAMA
  • Version: 20261101_00

Tools

Slug: OLLAMA_CHATTool to send a chat message with conversation history to Ollama. Use when you need to have a multi-turn conversation with an LLM model.

Input Parameters

string
required
Model name to use for generating responses
string
Enables thinking output; accepts true/false or ‘high’/‘medium’/‘low’
array
Optional function tools the model may call during chat
string
Format for response: ‘json’ or JSON schema object
boolean
Returns streamed partial responses; defaults to false
object
Runtime options controlling text generation (ModelOptions)
boolean
Returns log probabilities of output tokens
array
required
Chat history as message objects with role and content
string
Model keep-alive duration (e.g., ‘5m’ or 0 to unload immediately)
integer
Number of most likely tokens per position when logprobs enabled

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: OLLAMA_GENERATETool 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.

Input Parameters

boolean
When true, bypasses prompt templating and returns the raw response from the model. Use this for debugging or when you need full control over the prompt. Note: raw mode will not return a context.
string
required
Model name to use for generation. Examples: ‘llama2’, ‘mistral’, ‘gemma3:4b’.
string
Enables thinking output. Accepts true/false or ‘high’/‘medium’/‘low’ for verbosity level.
string
Structured output format. Use ‘json’ for JSON output or provide a JSON schema object.
array
Array of base64-encoded images for multimodal models.
string
Text for the model to generate a response from. Required unless using raw mode with a complete prompt.
boolean
When true, returns partial responses as stream. Default is false for non-streaming responses.
string
Text that appears after the user prompt. Used for fill-in-the-middle models.
string
System prompt for the model to generate a response from.
object
Runtime options for model generation behavior.
boolean
Whether to return log probabilities of output tokens.
string
Model keep-alive duration. Examples: ‘5m’ for 5 minutes, 0 to unload immediately.
integer
Number of most likely tokens to return at each position. Requires logprobs=true.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: OLLAMA_LIST_MODELSTool 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.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: OLLAMA_OPEN_AI_CHAT_COMPLETIONSTool to create OpenAI-compatible chat completions using Ollama models. Use when you need conversational AI responses with OpenAI API format compatibility.

Input Parameters

integer
Number of chat completion choices to generate. Default: 1
integer
Seed for reproducible outputs. Same seed with same parameters produces same results
string
Stop sequences where the API will stop generating further tokens. Can be a string or array of strings
string
Unique identifier for the end-user for monitoring and abuse detection
string
required
Model identifier to use for completion (e.g., ‘llama2’, ‘mistral’, ‘gemma3:4b’)
array
Array of tool/function definitions available for the model to call
number
Nucleus sampling parameter. Alternative to temperature. Default: 1.0
boolean
Enable streaming responses. If true, tokens are sent as server-sent events. Default: false
array
required
Array of message objects representing the conversation history
object
Modify likelihood of specified tokens appearing in the completion. Map of token IDs to bias values (-100 to 100)
integer
Maximum number of tokens to generate in the completion
number
Sampling temperature for randomness (0-2). Higher values make output more random. Default: 1.0
string
Controls which tool the model should use (‘none’, ‘auto’, or specific tool name)
object
Additional streaming options.
object
Response format specification for structured outputs.
number
Penalize tokens that have appeared to encourage new topics (-2.0 to 2.0). Default: 0
number
Penalize frequent tokens to reduce repetition (-2.0 to 2.0). Default: 0

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: OLLAMA_OPEN_AI_COMPLETIONSTool to create OpenAI-compatible text completions using Ollama models. Use when you need text generation with OpenAI API format compatibility beyond chat-based interactions.

Input Parameters

integer
Number of completions to generate for the prompt. Default: 1
boolean
Returns the prompt embedded within the completion response. Default: false
integer
Random seed for reproducible outputs. Same seed with same parameters should yield same result
string
Sequences where the model should stop generating. Can be a single string or array of strings
string
Unique identifier representing the end-user for tracking and abuse monitoring
string
required
Model identifier to use for completion (e.g., ‘llama2’, ‘mistral’, ‘deepseek-v3.2’)
number
Nucleus sampling parameter controlling diversity (0-1). Recommended to alter either temperature or top_p, not both. Default: 1.0
string
required
Text prompt for completion generation. Note: Currently only accepts a string, not arrays
boolean
Enable streaming responses as Server-Sent Events. Default: false
string
Text that comes after the completion. Used for insertion mode
integer
Generates multiple completions server-side and returns the best one. Default: 1
integer
Number of log probabilities to return (up to 5)
object
Modify likelihood of specified tokens appearing. Maps token IDs to bias values (-100 to 100)
integer
Maximum number of tokens to generate in the completion. Total of prompt + max_tokens cannot exceed model’s context length
number
Controls randomness in output (0-2). Lower values make output more focused, higher values more random. Default: 1.0
object
Additional streaming options.
number
Penalizes tokens based on whether they appear in text so far (-2.0 to 2.0). Positive values encourage new topics. Default: 0
number
Penalizes tokens based on frequency in text so far (-2.0 to 2.0). Positive values decrease repetition. Default: 0

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: OLLAMA_OPEN_AI_LIST_MODELSTool 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.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: OLLAMA_SHOWTool to show comprehensive information about an Ollama model. Use when you need to retrieve model details, parameters, template, license, or system prompt.

Input Parameters

string
required
The name of the model to retrieve information about.
boolean
When enabled, includes large verbose fields in the response.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: OLLAMA_VERSIONGet the version of the configured Ollama instance.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not