---
title: "bookmark.list: List bookmarks — PDF kit command — Kition"
description: "The bookmarks in outline order, one page at a time: each with its path (1-based, as the other bookmark tools take it), title, target page and open state, and its children on the same page. next is the offset of the following page, or null at the end. Bookmarks nested deeper than 33 levels are not listed."
canonical: "https://developer.kition.ai/docs/kits/pdf/commands/bookmark.list"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/pdf/commands/bookmark.list](https://developer.kition.ai/docs/kits/pdf/commands/bookmark.list)

# bookmark.list

**List bookmarks.** The bookmarks in outline order, one page at a time: each with its path (1-based, as the other bookmark tools take it), title, target page and open state, and its children on the same page. next is the offset of the following page, or null at the end. Bookmarks nested deeper than 33 levels are not listed.

- Kit: PDF 0.1.0 (.pdf); reference: [PDF kit commands](https://developer.kition.ai/docs/kits/pdf.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | no | Bookmarks in the page (default 100) (maximum 1000, minimum 1) |
| `offset` | `integer` | no | Where the page starts, counted from 0 (the previous page's next) (minimum 0) |

## Call through pdf_run

```text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "bookmark.list" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `limit`, `offset`. pdf_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `bookmarks` | `any[]` | no |  |
| `next` | `any` | no |  |
| `truncated` | `boolean` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "bookmarks": {
      "type": "array"
    },
    "next": {},
    "truncated": {
      "type": "boolean"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "limit": {
      "description": "Bookmarks in the page (default 100) (maximum 1000, minimum 1)",
      "type": "integer"
    },
    "offset": {
      "description": "Where the page starts, counted from 0 (the previous page's next) (minimum 0)",
      "type": "integer"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/pdf-darwin-arm64@0.1.0 and the kit itself (pdf_commands through @kition/cli@0.1.1, built from KitionAI/kition-pdf@b0d2725).
