localmodels
v0.1.0Talk to a local Ollama server: list, pull, inspect, generate, chat and embed.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_models
List the models available on the local Ollama server.
show_model
Show information about a model on the local Ollama server.
| Parameter | Type | Description |
|---|---|---|
model * | string | The name of the model to show information for (e.g. 'llama3.2'). |
pull_model
Pull a model from the registry onto the local Ollama server.
| Parameter | Type | Description |
|---|---|---|
model * | string | The name of the model to pull from the registry (e.g. 'llama3.2'). |
delete_model
Delete a model from the local Ollama server.
| Parameter | Type | Description |
|---|---|---|
model * | string | The name of the model to delete from the local Ollama server. |
copy_model
Copy a model on the local Ollama server under a new name.
| Parameter | Type | Description |
|---|---|---|
destination * | string | The new model name to copy the source model to. |
source * | string | The name of the existing model to copy from. |
generate_completion
Generate a completion for a prompt using a local model.
| Parameter | Type | Description |
|---|---|---|
model * | string | The name of the local model to generate the completion with. |
prompt * | string | The prompt text to generate a completion for. |
system | string | Optional system prompt sent with the generation request when non-empty. |
chat_completion
Generate a chat response for a list of messages using a local model.
| Parameter | Type | Description |
|---|---|---|
messages * | array | The non-empty list of chat messages (each with a role and content) to send to the model. |
model * | string | The name of the local model to generate the chat response with. |
create_embedding
Create embeddings for input text using a local model.
| Parameter | Type | Description |
|---|---|---|
input * | string | The input text to create embeddings for. |
model * | string | The name of the local embedding model to use. |
list_running_models
List the models currently running on the local Ollama server.
get_version
Get the version of the local Ollama server.