---
title: "Last"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/control/last
markdown: https://docs.nodetool.ai/nodes/nodetool/control/last.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/control/last.md
---

# Last

**Type:** `nodetool.control.Last`

**Namespace:** `nodetool.control`

## Description

Emit only the final item of a stream.
    last, final, tail, fold, stream, reduce

    Use cases:
    - Keep the final answer from an agent token stream
    - Pick the most recent item in a feed
    - Cheap fold to a single value

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| input_item | `any` | Streaming input — only the final value is forwarded. | null |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `any` |  |

## Related Nodes

Browse other nodes in the [nodetool.control](./) namespace.
