---
title: "Discussion on \"Mastra working memory with tool calls: fixing 'use: tool-call' and messages missing before tool calls\" | Hashnode"
description: "Discussion on \"Mastra working memory with tool calls: fixing 'use: tool-call' and messages missing before tool calls\". Mastra issue #4221 reported that working memory in 'tool-call' mode dropped the text the agent wrote before a tool call. Here's what changed since, why the old config now throws, the current working memory setup, and how to check what was actually saved."
url: "https://hashnode.com/posts/mastra-working-memory-tool-call-messages/6adf80b133231dfd04798270"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mastra working memory with tool calls: fixing 'use: tool-call' and messages missing before tool calls](https://memorysync.hashnode.dev/mastra-working-memory-tool-call-messages?utm_source=hashnode&utm_medium=feed)

Mastra issue #4221 reported that working memory in 'tool-call' mode dropped the text the agent wrote before a tool call. Here's what changed since, why the old config now throws, the current working memory setup, and how to check what was actually saved.

Oct 26 · 6 min read · memorysync.hashnode.dev  
Updated Oct 27  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#mastra](https://hashnode.com/tag/mastra)
-   [#agents](https://hashnode.com/tag/agents)
-   [#llm](https://hashnode.com/tag/llm)

## Written by

[MemorySync](https://hashnode.com/@memorysync)

@memorysync · San Francisco, USA

  
[View profile](https://hashnode.com/@memorysync)

Building MemorySync (memorysync.io) — persistent memory infrastructure for AI agents, Cursor, and Claude Code.

Building MemorySync (memorysync.io) — persistent memory infrastructure for AI agents, Cursor, and Claude Code.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
