Get started

Reference Workflows 06 / 06

Tab closed step

Recorded marker: the active tab closed; replay closes it too. A step a recorded Writ workflow can run, with its fields and an example.

Runs on Writ CloudWrit Desktop

Open in Claude Open in ChatGPT

The tab_closed step is emitted when a tab closed during recording. On replay it closes the current tab, and execution continues on a remaining tab.

In a workflow, this step is a JSON object with "type": "tab_closed". Steps run in order, and each step can read the outputs of the steps before it.

Fields

This step takes no fields. Its config object stays empty.

Example

One tab_closed step, as it appears in the steps list of a workflow.

Step
{
  "type": "tab_closed",
  "config": {}
}

How it behaves

  • You rarely write this by hand — the recorder emits it to mirror what you did.
  • After the close, follow with switch_tab if a specific remaining tab must be active.

Where it runs

The step runs wherever its workflow runs. On Writ Desktop, runs are free and can reach systems that only your own network can reach.

On Writ Cloud, each call costs credits: 20 when the run needs a browser, 2 when it does not. A call that fails because of the site or Writ costs nothing.

Next