# onf_import_data

Validate and atomically import an ONF JSON package. Existing conflicting IDs/versions fail; new workflows are imported disabled. Does not import secrets, history or durable state.

Canonical URL: https://opennodeflow.dev/wiki/tool-onf-import-data/
JSON reference: https://opennodeflow.dev/wiki/tool-onf-import-data/index.json
Source snapshot: 2026-10-23

Validate and atomically import an ONF JSON package. Existing conflicting IDs/versions fail; new workflows are imported disabled. Does not import secrets, history or durable state.

[Agent workflow authoring](/wiki/mcp-workflow-authoring/) · [All MCP tools](/wiki/mcp-tools/)

## Inputs

| Field | Required | Contract |
| --- | --- | --- |
| `package` | Yes | object |

## Exact input schema


```json
{
  "type": "object",
  "properties": {
    "package": {
      "type": "object",
      "properties": {
        "format": {
          "type": "string",
          "const": "onf"
        },
        "version": {
          "type": "number",
          "const": 1
        },
        "workspaces": {
          "maxItems": 1000,
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "definitions": {
          "maxItems": 10000,
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "workflows": {
          "maxItems": 1000,
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "contextDocumentation": {
          "maxItems": 10000,
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "libraryFolders": {
          "maxItems": 2000,
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "libraryMetadata": {
          "maxItems": 10000,
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "libraryPacks": {
          "maxItems": 1000,
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "workspaceLibraries": {
          "maxItems": 1000,
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        }
      },
      "required": [
        "format",
        "version",
        "workspaces",
        "definitions",
        "workflows"
      ]
    }
  },
  "required": [
    "package"
  ]
}
```


## MCP annotations

- `readOnlyHint`: `false`
- `destructiveHint`: `false`
- `idempotentHint`: `false`
- `openWorldHint`: `true`

Annotations describe tool behavior; they are not an authorization boundary.

## Calling this tool

Use the exact registered name `onf_import_data` through a compatible MCP client. Start with discovery and read the current object before a change. Pass the documented revision or version guards where required. A JSON Schema default is not a substitute for reading the tool contract.

See [connection setup](/wiki/mcp-connect/) and [agent safety](/wiki/agent-safety/) for transport, permissions and uncertain-action recovery.

---

## Documentation provenance

- `server/mcp-tools.ts`

This page describes maintained source, not a live inventory or an authorization to perform actions.
