> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# steps

> [!TIP]
>
> Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.

[Source: node-sdk/src/session.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/session.ts)

Get one page of the session's steps. Each step has the shape of an item of
`status().steps`. Pass the page's `next_cursor` back as `cursor`, as is, to
get the next page; it is `null` on the last page. Works after `stop()`.

```typescript theme={null}
Session.steps(options?: SessionStepsOptions): Promise<SessionStepsResponse>;
```

## Parameters

**options** `SessionStepsOptions`

Default:

```typescript theme={null}
{}
```

## Returns

```typescript theme={null}
Promise<SessionStepsResponse>
```

## Raises

* NotteAPIError with status 400 when `cursor` is no longer valid: restart from the first page (no `cursor`).

## Example

```typescript theme={null}
let page = await session.steps({ limit: 50 });
while (page.next_cursor !== null) {
  page = await session.steps({ cursor: page.next_cursor, limit: 50 });
}
```

## Related types

* [SessionStepsOptions](https://docs.notte.cc/typescript-sdk-reference/types/sessionstepsoptions)
* [SessionStepsResponse](https://docs.notte.cc/typescript-sdk-reference/types/sessionstepsresponse)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.