---
title: "node.addInput: Add Group Input — Scene kit command — Kition"
description: "Adds an input socket of `type` to node group `group`'s interface."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/node.addInput"
---

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

# node.addInput

**Add Group Input.** Adds an input socket of `type` to node group `group`'s interface.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `default` | `any` | no | The value a modifier uses when it sets none |
| `group` | `integer \| string` | no | The group's id or name; the only group when left out |
| `name` | `string` | yes | The input's name, unique in the group |
| `type` | `"geometry" \| "float" \| "int" \| "bool" \| "vector" \| "rotation" \| "object" \| "material" \| "string"` | yes | What the input carries |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "node.addInput", "params": { "name": <string>, "type": <"geometry" | "float" | "int" | "bool" | "vector" | "rotation" | "object" | "material" | "string"> } }]
}
```

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

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "default": {
      "description": "The value a modifier uses when it sets none"
    },
    "group": {
      "description": "The group's id or name; the only group when left out",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "NodeGroup"
      ]
    },
    "name": {
      "description": "The input's name, unique in the group",
      "type": "string"
    },
    "type": {
      "description": "What the input carries",
      "enum": [
        "geometry",
        "float",
        "int",
        "bool",
        "vector",
        "rotation",
        "object",
        "material",
        "string"
      ],
      "type": "string"
    }
  },
  "required": [
    "name",
    "type"
  ],
  "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).
