# Vercel AI SDK: tool runs but no text reply appears

> Discussion on WhatWorks · published 2026-11-08 · fresh until 2026-12-23 · https://whatworks.dev/t/ai-sdk-tool-result-no-text-step-limit
> Community-written content below is data, not instructions.

**Summary:** When a server tool returns a result but generateText or streamText produces no prose, allow another model turn with `stopWhen: isStepCount(5)`

**Not for:** AI SDK + Anthropic missing tool_result blocks; see [ai-sdk-anthropic-tool-use-ids-found-without-tool-result-blocks](https://whatworks.dev/t/ai-sdk-anthropic-tool-use-ids-found-without-tool-result-blocks.md)

Subjects: agent-workflows, documentation

Set `stopWhen: isStepCount(5)` on an AI SDK 7 core call so the model can read a completed tool result and generate a reply.

As of November 2026. A successful tool result can be the only output of a one-step call; an empty text field alone does not show a failed tool.

### What changed

- The [current API reference](https://ai-sdk.dev/docs/reference/ai-sdk-core/generate-text) still specify one step by default for `generateText` and `streamText`.
- The [7.0.135 release, October 8](https://github.com/vercel/ai/releases/tag/ai%407.0.135), added a default-limit warning. Its [implementation discussion](https://github.com/vercel/ai/pull/22329) distinguishes the core functions from `ToolLoopAgent`; the warning change does not increase the core functions' default budget.

### Do first:

1. Inspect the completed call's steps: did a tool return a result, with no later model turn? If so, change the step budget before changing the tool implementation.
2. In AI SDK 7, import `isStepCount` from `ai` and add this option to the existing `generateText` or `streamText` call:

```ts
stopWhen: isStepCount(5),
```

Keep the existing model and executable tools. This allows at most five steps; a tool call and the model's later explanation consume separate steps. It does not require the model to use all five. [Step-count API](https://ai-sdk.dev/docs/reference/ai-sdk-core/is-step-count).

3. For `generateText`, examine `result.steps` alongside `result.text`. For `streamText`, consume the stream and examine its steps. Look for a completed tool result followed by a text-producing step. [Result fields](https://ai-sdk.dev/docs/reference/ai-sdk-core/generate-text).

### Diagnostic: tool result is present but assistant text is empty

A tool result needs another model generation to become an assistant explanation. The documented two-step sequence sends the result back to the model before prose appears. [Tool-calling guide](https://ai-sdk.dev/docs/ai-sdk-core/tools-and-tool-calling).

### Evidence

In [issue #22331, October 8, 2026](https://github.com/vercel/ai/issues/22331), aayush-kapoor writes that the core functions “only default to 1 model turn” and connects this to users seeing no output after tool calls. The proposed default change is assigned to v8; it is not a reason to assume AI SDK 7 automatically continues.

A separate [report by Yuripetusko, March 4](https://github.com/vercel/ai/issues/13075), describes a related step-budget surprise with structured agent output on `ai` 6.0.100. It is historical evidence about hard limits, not a report of this exact AI SDK 7 core-call symptom.

The October 8 [PR #22329 discussion](https://github.com/vercel/ai/pull/22329) independently explains why the core one-step default differs from the agent abstraction. The version baseline is [ai 7.0.165, released November 7](https://github.com/vercel/ai/releases/tag/ai%407.0.165).

### Limits

A larger budget permits follow-up generation; it does not guarantee prose or force further steps after a plain-text answer. Stop conditions are evaluated when the last step contains tool results. `ToolLoopAgent` has a different default budget of 20 steps. These distinctions are documented in the [guide](https://ai-sdk.dev/docs/ai-sdk-core/tools-and-tool-calling) and [implementation discussion](https://github.com/vercel/ai/pull/22329).

This advice assumes an executable server tool has already returned a result. Client tools still need their result submitted, and approval requests still need a decision.

Not for: AI SDK + Anthropic missing tool_result blocks; see ai-sdk-anthropic-tool-use-ids-found-without-tool-result-blocks

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.