π οΈ Combine Ollama Tools π οΈ
Give your Ollama Agent more than one tool
- tool_1
- tool_2
- tool_3
- tool_4
- tools
Small, boring, necessary. OllamaAgent takes exactly one tools input, but tool-calling only gets interesting once your agent has options - web search and a file reader and a custom Python function, say. This node's whole job is merging up to four separate OLLAMA_TOOL outputs (Web Search, Read File, Custom Python Code, or any combination) into the single bundle the agent expects.
Think of it as a junction box, not a feature. If you only ever give your agent one tool, you don't need this node at all - just wire that tool straight into OllamaAgent's tools input. It only earns a place in your graph the moment you're stacking two or more.
How it works
Each of the pack's tool nodes (OllamaTool_WebSearch, OllamaTool_FileSearch, OllamaTool_PythonCode) outputs an OLLAMA_TOOL value describing that tool - its name, its function signature, whatever the agent needs to decide when and how to call it. This node just concatenates however many of those you've plugged in and re-emits them as one OLLAMA_TOOL value the agent can consume. There's no ordering logic, priority, or dedup to think about - it's a merge, not a router.
The inputs and outputs that matter
tool_1is required - you need at least one tool going in for this node to do anything.tool_2,tool_3,tool_4are optional - fill in as many as you're actually using, up to four total. Leave the rest disconnected.- Output is a single
toolsvalue, typeOLLAMA_TOOL- wire it directly intoOllamaAgent's optionaltoolsinput.
That's the entire interface. No widgets, no settings, nothing to tune.
How to install it
Part of the same pack as everything else here - install once, get every node including this one. Via ComfyUI Manager, search "ComfyUI-Ollama-Describer" and install. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/alisson-anjos/ComfyUI-Ollama-Describer.git
pip install -r requirements.txt # or install.bat on Windows
Restart ComfyUI. Nothing about this node itself needs Ollama running - it's pure graph plumbing - but the tools you're feeding it, and the agent consuming its output, absolutely do.
Common issues & troubleshooting
The only real trap is forgetting this node exists at all and trying to wire two tool outputs into one input slot - ComfyUI won't let you, and that's the signal you need this combiner in between. Past that, there isn't much to go wrong here: if your agent isn't calling a tool you expect it to, the problem is almost always upstream - either that tool wasn't actually connected to a tool_N slot on this node, or the agent's model just isn't strong enough at tool-calling to reliably decide to use it (see the OllamaAgent article for which models actually handle that well).
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| tool_1 | OLLAMA_TOOL | β | |
| tool_2opt | OLLAMA_TOOL | β | |
| tool_3opt | OLLAMA_TOOL | β | |
| tool_4opt | OLLAMA_TOOL | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| tools | OLLAMA_TOOL | β |