Skip to main content
Server path: /ollama | Type: Application | PCID required: Yes

Tools

ToolDescription
ollama_chatGenerate a chat message
ollama_copyCopy a model
ollama_createCreate a model
ollama_deleteDelete a model
ollama_embedGenerate embeddings
ollama_generateGenerate a response
ollama_listList models
ollama_psList running models
ollama_pullPull a model
ollama_pushPush a model
ollama_showShow model details
ollama_versionGet version

ollama_chat

Generate a chat message Parameters:
ParameterTypeRequiredDefaultDescription
formatobjectNoFormat to return a response in. Can be json or a JSON schema
keep_aliveobjectNoModel keep-alive duration (for example 5m or 0 to unload immediately)
logprobsbooleanNoWhether to return log probabilities of the output tokens
messagesobject[]YesChat history as an array of message objects (each with a role and content)
modelstringYesModel name
optionsobjectNoRuntime options that control text generation
streambooleanNoThe stream value
thinkobjectNoWhen true, returns separate thinking output in addition to content. Can be a boolean (true/false) or a string (“high”, “medium”, “low”) for supported models.
toolsobject[]NoOptional list of function tools the model may call during the chat
top_logprobsintegerNoNumber of most likely tokens to return at each token position when logprobs are enabled

ollama_copy

Copy a model Parameters:
ParameterTypeRequiredDefaultDescription
destinationstringYesNew model name to create
sourcestringYesExisting model name to copy from

ollama_create

Create a model Parameters:
ParameterTypeRequiredDefaultDescription
fromstringNoExisting model to create from
licensestring[]NoLicense string or list of licenses for the model
messagesobject[]NoMessage history to use for the model
modelstringYesName for the model to create
parametersobjectNoKey-value parameters for the model
quantizestringNoQuantization level to apply (e.g. q4_K_M, q8_0)
streambooleanNoStream status updates
systemstringNoSystem prompt to embed in the model
templatestringNoPrompt template to use for the model

ollama_delete

Delete a model Parameters:
ParameterTypeRequiredDefaultDescription
modelstringYesModel name to delete

ollama_embed

Generate embeddings Parameters:
ParameterTypeRequiredDefaultDescription
dimensionsintegerNoNumber of dimensions to generate embeddings for
inputstring[]YesText or array of texts to generate embeddings for
keep_alivestringNoModel keep-alive duration
modelstringYesModel name
optionsobjectNoRuntime options that control text generation
truncatebooleanNoIf true, truncate inputs that exceed the context window. If false, returns an error.

ollama_generate

Generate a response Parameters:
ParameterTypeRequiredDefaultDescription
formatobjectNoStructured output format for the model to generate a response from. Supports either the string "json" or a JSON schema object.
imagesstring[]NoThe images value
keep_aliveobjectNoModel keep-alive duration (for example 5m or 0 to unload immediately)
logprobsbooleanNoWhether to return log probabilities of the output tokens
modelstringYesModel name
optionsobjectNoRuntime options that control text generation
promptstringNoText for the model to generate a response from
rawbooleanNoWhen true, returns the raw response from the model without any prompt templating
streambooleanNoWhen true, returns a stream of partial responses
suffixstringNoUsed for fill-in-the-middle models, text that appears after the user prompt and before the model response
systemstringNoSystem prompt for the model to generate a response from
thinkobjectNoWhen true, returns separate thinking output in addition to content. Can be a boolean (true/false) or a string (“high”, “medium”, “low”) for supported models.
top_logprobsintegerNoNumber of most likely tokens to return at each token position when logprobs are enabled

ollama_list

List models

ollama_ps

List running models

ollama_pull

Pull a model Parameters:
ParameterTypeRequiredDefaultDescription
insecurebooleanNoAllow downloading over insecure connections
modelstringYesName of the model to download
streambooleanNoStream progress updates

ollama_push

Push a model Parameters:
ParameterTypeRequiredDefaultDescription
insecurebooleanNoAllow publishing over insecure connections
modelstringYesName of the model to publish
streambooleanNoStream progress updates

ollama_show

Show model details Parameters:
ParameterTypeRequiredDefaultDescription
modelstringYesModel name to show
verbosebooleanNoIf true, includes large verbose fields in the response.

ollama_version

Get version