---
title: "window.restoreScriptPanels: Restore Script Panels — Motion kit command — Kition"
description: "open the script panels that were open when Kition Motion last quit (frontends call it once at launch). Panels whose script is gone or fails are reported and forgotten; the others still open."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/window.restoreScriptPanels"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/window.restoreScriptPanels](https://developer.kition.ai/docs/kits/motion/commands/window.restoreScriptPanels)

# window.restoreScriptPanels

**Restore Script Panels.** open the script panels that were open when Kition Motion last quit (frontends call it once at launch). Panels whose script is gone or fails are reported and forgotten; the others still open.

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

## Parameters

None.

## Call through motion_run

```text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "window.restoreScriptPanels" }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `failed` | `any[]` | no |  |
| `opened` | `any[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "failed": {
      "items": {},
      "type": "array"
    },
    "opened": {
      "items": {},
      "type": "array"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
