Press / to search

All documentation
docs▸Teach the agent▸Step reference

Runs onWrit CloudDesktopSelf-hosted

Interaction step

Scroll

The scroll step scrolls the page by the recorded amount, which is essential for infinite-scroll lists that load items lazily as you approach the bottom.

In a workflow, this is a step object with "type": "scroll". Steps run in order, and each step can read the outputs of the steps before it. See the fullworkflows reference for the 30+ step types.

Writ runs on your own accounts, with your own credentials and data, on sites you are authorized to use.

Fields

FieldTypeDescription
valuestringThe scroll distance, as recorded.

Example

A single scroll step as it appears in a workflow's steps array:

{
  "type": "scroll",
  "config": { "value": "800" }
}

How it behaves

  • Combine with wait_for_change so the next step reads content that has actually loaded.
  • For a single element, scroll_into_view is more precise than a page scroll.

Where it runs

The scroll step executes wherever the run executes. On yourlocal or BYO agent there is no compute charge and the agent can reach intranet-only systems; on Writ cloud the run is metered by running time (~$0.12 per browser-hour, from your plan’s included usagewallet.

What next

  • Workflows - the full step vocabulary and the workflow object.
  • Recorder - capture steps by clicking through a site.
  • Managed endpoints - turn the workflow into a REST endpoint, or an MCP tool.