---
title: "Return"
description: "Finish the main path or a nested body and send mapped output."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/module/return"
---
# Return

> Finish the main path or a nested body and send mapped output.

<block-meta block="Yes" channels="Any" folder="basic/module" group="Module" groupTo="/build/workflows/blocks/module" icon="i-lucide-circle-check" pipe="Value" scope="Any" tool="No" type="module.return">



</block-meta>

**Return** (palette name **Return**, canvas label **End**, type `module.return`) finishes a path. Connect the last block of that path into it. There is no outgoing handle.

On the **main** path, this is what callers receive. Map fields to [Start](https://docs.vettero.com/build/workflows/blocks/module/start) **Output schema**. Defining that schema is not enough — a completing path must reach Return.

Inside a [Lambda](https://docs.vettero.com/build/workflows/blocks/module/lambda) body, Return finishes **this body** (this iteration or task), not the whole workflow. The parent loop or [Async](https://docs.vettero.com/build/workflows/blocks/utility/async) task collects that value. The mapped shape must match the parent **Callback** return shape — or Lambda’s **Output schema** when you set one.

This block is valid in **any** scope. Use [Break](https://docs.vettero.com/build/workflows/blocks/loops/break) or [Continue](https://docs.vettero.com/build/workflows/blocks/loops/continue) inside a loop when you want a control signal instead of a collected value.

## Configure

Open the cog on the block (dialog header **End configuration**).

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Output
      </strong>
    </td>
    
    <td>
      Bind each property of the resolved output schema (literal or a context path)
    </td>
  </tr>
</tbody>
</table>

The form follows the schema found upstream:

<table>
<thead>
  <tr>
    <th>
      Where Return sits
    </th>
    
    <th>
      Schema used
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Main path
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/module/start">
        Start
      </a>
      
       <strong>
        Output schema
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      Nested callback
    </td>
    
    <td>
      Lambda <strong>
        Output schema
      </strong>
      
       if you applied one; otherwise the parent <strong>
        Callback
      </strong>
      
       return shape
    </td>
  </tr>
</tbody>
</table>

If nothing upstream defines a schema, the dialog explains that End is not connected through Start or a callback handle.

Each property name must match the schema **exactly** (`total`, not `Total`).

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection from the last block on this path
    </td>
  </tr>
</tbody>
</table>

There is no **Out**. Branching paths each need their own Return (or merge into one).

## Pipe schema

This block does not pass a value to a later block on the same path. The mapped **Output** is what the **caller** (main path) or the **parent callback** (nested body) receives.

## Use case

- After an [API](https://docs.vettero.com/build/workflows/blocks/utility/api) call on a **general** workflow, return `status` and `data` to the agent or widget that invoked the graph.
- Inside [For Of](https://docs.vettero.com/build/workflows/blocks/loops/for-of), return a mapped item so the loop’s main **Out** collects a list.
- On a [condition](https://docs.vettero.com/build/workflows/blocks/condition) split, put Return on each completing branch with the same output keys.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
