Files
n8n-docs/docs/data/expression-reference/nodeinputdata.md
Kartik Balasubramanian 96e6ba167d Revamp the data section of n8n docs (#4077)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-02-25 14:30:33 +00:00

68 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# NodeInputData
## `$input`.**`all()`**
**Description:** Returns an array of the current nodes input items
**Syntax:** `$input`.all(branchIndex?, runIndex?)
**Returns:** Array<Item>
**Source:** Custom n8n functionality
**Parameters:**
* `branchIndex` (Number) - optional - The output branch index of the node to use. Defaults to the first branch (index 0)
* `runIndex` (Number) - optional - The run of the node to use. Defaults to the first run (index 0)
## `$input`.**`first()`**
**Description:** Returns the current nodes first input item
**Syntax:** `$input`.first(branchIndex?, runIndex?)
**Returns:** Item
**Source:** Custom n8n functionality
**Parameters:**
* `branchIndex` (Number) - optional - The output branch index of the node to use. Defaults to the first branch (index 0)
* `runIndex` (Number) - optional - The run of the node to use. Defaults to the first run (index 0)
## `$input`.**`item`**
**Description:** Returns the input item currently being processed
**Syntax:** `$input`.`$input`.**`item`**
**Returns:** Item
**Source:** Custom n8n functionality
## `$input`.**`last()`**
**Description:** Returns the current nodes last input item
**Syntax:** `$input`.last(branchIndex?, runIndex?)
**Returns:** Item
**Source:** Custom n8n functionality
**Parameters:**
* `branchIndex` (Number) - optional - The output branch index of the node to use. Defaults to the first branch (index 0)
* `runIndex` (Number) - optional - The run of the node to use. Defaults to the first run (index 0)
## `$input`.**`params`**
**Description:** The configuration settings of the current node. These are the parameters you fill out within the node when configuring it (e.g. its operation).
**Syntax:** `$input`.`$input`.**`params`**
**Returns:** NodeParams
**Source:** Custom n8n functionality