Skip to content
OpenNodeFlow.DocsOpen beta ↗
Agent guide ↗
Docs/Library asset reference

Increment variable

Write a declared workspace variable, validating its saved type before committing.

23 Oct 2026 · 2 min read
Markdown ↗JSON ↗

Choose a workspace variable in Configuration and explicitly bind it to save its exact ID and declared type/version on this node. Bound Value sockets use that exact type, without creating per-variable library definitions. Renaming a bound variable preserves its identity; deleting/recreating its name does not retarget this node. Existing unbound nodes keep their dynamic any sockets and name lookup until explicitly bound.

Increment adds Amount to the current numeric value atomically.

All writes validate the whole resulting value against the exact pinned type and commit once in a transaction. Optional Expected revision adds optimistic concurrency protection. Writes and their run Storage before/after journal commit immediately, even if later code fails. Never automatically repeat an uncertain mutation; inspect its value and revision first. Exec/Next establish control ordering. Missing variables fail; no operation creates one implicitly.

Runtime helpers are context.variables.get/set/increment/append/compareAndSet/updatePath. The running workflow forces workspace scope. Name-only calls remain supported; an explicit binding enforces ID/workspace/type identity. Library tests use a fresh empty sandbox. Use Secrets/Connections for credentials.

Catalog identity#

FieldValue
Source keyapp.variables.core.variable.increment
Kindnode
Familyapp-variables
PackSee library discovery

Integration guide · Browse the catalog

Inputs#

Socket IDLabelTypeRequiredMeaning
execExeccontrolNo
amountAmountnumberYes
expectedRevisionExpected revisionnumberNo

Outputs#

Socket IDLabelTypeRequiredMeaning
nextNextcontrolNo
valueValueanyYes
revisionRevisionnumberYes

Configuration schema#

json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "title": "Variable",
      "description": "Exact name in this workflow’s workspace. Choose an existing variable from the Variables menu."
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}

Source and installed versions#

This reference describes the maintained source catalog snapshot, not a live export of your installation. Published definitions use immutable versions; installed graphs retain their exact pins. Discover and read the installed definition and selected version before wiring it. See versioning, connections and integration setup.

Source provenance

Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.

  • ../OpenNodeFlow-Library/work/catalog-all.mjs
  • ../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs
  • ../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs
  • shared/seed.ts
  • shared/storage-library.ts
  • shared/variable-library.ts
  • shared/control-flow.ts
  • shared/remote-routes.ts
  • server/runtime-library.ts
  • shared/error-library.ts
  • shared/storage-model.ts
  • shared/builtin-documentation.ts
Type to search the documentation.
↑ ↓ to navigate · Enter to openAgent map ↗