---
title: "operation.set: Adjust Last Operation — Scene kit command — Kition"
description: "Runs the person's last operation again with `params` over the values it ran with, from the selection it started from, in place of its undo step (Adjust Last Operation)."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/operation.set"
---

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

# operation.set

**Adjust Last Operation.** Runs the person's last operation again with `params` over the values it ran with, from the selection it started from, in place of its undo step (Adjust Last Operation).

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `params` | `object` | yes | The parameters to change, by name; null takes one back to its default |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "operation.set", "params": { "params": <object> } }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `operation` | `object` | no | null when there is none |

```json
{
  "additionalProperties": true,
  "properties": {
    "operation": {
      "additionalProperties": true,
      "description": "null when there is none",
      "properties": {
        "command": {
          "description": "null for a transform",
          "type": "string"
        },
        "fields": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "key": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "params": {
          "additionalProperties": true,
          "properties": {},
          "type": "object"
        },
        "title": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "params": {
      "additionalProperties": true,
      "description": "The parameters to change, by name; null takes one back to its default",
      "type": "object"
    }
  },
  "required": [
    "params"
  ],
  "type": "object"
}
```

Generated from the command list of @kition/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
