OLLAMA MCP Tools

Total Tools: 2

Quick Reference

# List all ollama tools
dmtools list | jq '.tools[] | select(.name | startswith("ollama_"))'

# Example usage
dmtools ollama_ai_chat [arguments]

Usage in JavaScript Agents

// Direct function calls for ollama tools
const result = ollama_ai_chat(...);
const result = ollama_ai_chat_with_files(...);

Available Tools

Tool NameDescriptionParameters
ollama_ai_chatSend a text message to Ollama AI and get responsemessage (string, required)
ollama_ai_chat_with_filesSend a text message to Ollama AI with file attachments. Supports images and other file types for analysis and questions.message (string, required)
filePaths (array, required)

Detailed Parameter Information

ollama_ai_chat

Send a text message to Ollama AI and get response

Parameters:

  • message (string) Required
    • Text message to send to AI

Example:

dmtools ollama_ai_chat "value"
// In JavaScript agent
const result = ollama_ai_chat("message");

ollama_ai_chat_with_files

Send a text message to Ollama AI with file attachments. Supports images and other file types for analysis and questions.

Parameters:

  • message (string) Required

    • Text message to send to Ollama AI
    • Example: What is in this image? Please analyze the document content.
  • filePaths (array) Required

    • Array of file paths to attach to the message
    • Example: ['/path/to/image.png', '/path/to/document.pdf']

Example:

dmtools ollama_ai_chat_with_files "value" "value"
// In JavaScript agent
const result = ollama_ai_chat_with_files("message", "filePaths");

Edit this page on GitHub →

Rendered from dmtools-ai-docs/references/mcp-tools/ollama-tools.md, the same Markdown the DMTools agent skill reads. Last updated .