---
title: "script.list: Document JavaScripts — PDF kit command — Kition"
description: "List the document-level JavaScripts (name and source), which define functions field scripts use."
canonical: "https://developer.kition.ai/docs/kits/pdf/commands/script.list"
---

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

# script.list

**Document JavaScripts.** List the document-level JavaScripts (name and source), which define functions field scripts use.

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

## Parameters

None.

## Call through pdf_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `scripts` | `any[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "scripts": {
      "type": "array"
    }
  },
  "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).
