---
title: "prefs.set: Change Setting — Motion kit command — Kition"
description: "Changes settings: `key` and `value` (e.g. general.undoLevels), or several at once as `values` {key: value}. Saved to the preferences; scripts can't change scripting permissions. Affects the app, not the project file."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/prefs.set"
---

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

# prefs.set

**Change Setting.** Changes settings: `key` and `value` (e.g. general.undoLevels), or several at once as `values` {key: value}. Saved to the preferences; scripts can't change scripting permissions. Affects the app, not the project file.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `key` | `string` | no |  |
| `value` | `string` | no |  |
| `values` | `object` | no |  |

## Call through motion_run

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

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

## Result



```json
{
  "description": "The command's answer"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "key": {
      "type": "string"
    },
    "value": {
      "type": "string"
    },
    "values": {
      "additionalProperties": true,
      "properties": {
        "key": {}
      },
      "type": "object"
    }
  },
  "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).
