Hey! My agent is outputting the tool call as plain text instead of actually executing the tools.
Expected behavior:
The agent should execute the tool (e.g. sessions_send or memory_search) and return the result.
Actual behavior:
The agent returns the raw JSON of the tool call as a message, like this:
{"name": "sessions_send", "parameters": {"message": "Schedule a test appointment...", "agentId": "1", "sessionKey": "teste_01"}}
{"name": "memory_search", "parameters": {"query": "...", "maxResults": 1, "minScore": 0.1}}
My setup:
- Provider: Ollama (local)
- Agent ID:
1 - Session Key:
teste_01
What I've checked:
- The agent is receiving the user message correctly
- Tools are defined in the agent
- It seems like the model is "printing" the tool call instead of executing it
Is this a known issue with Ollama providers? Could it be related to the model not supporting native function calling, a system prompt config, or how OpenClaw parses the response? Any help appreciated!