# onf_update_workspace_library

Replace workspace installed pack IDs with expectedRevision (0 for absent link metadata). Uninstalling affects discovery only and preserves all graph nodes, pins, history and runtime state.

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

Replace workspace installed pack IDs with expectedRevision (0 for absent link metadata). Uninstalling affects discovery only and preserves all graph nodes, pins, history and runtime state.

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

## Inputs

| Field | Required | Contract |
| --- | --- | --- |
| `expectedRevision` | Yes | integer |
| `packIds` | Yes | Array of string |
| `workspaceId` | Yes | string |

## Exact input schema


```json
{
  "type": "object",
  "properties": {
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "packIds": {
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_.-]{1,120}$"
      }
    },
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "pattern": "^[A-Za-z0-9_.-]+$"
    }
  },
  "required": [
    "expectedRevision",
    "packIds",
    "workspaceId"
  ]
}
```


## MCP annotations

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

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

## Calling this tool

Use the exact registered name `onf_update_workspace_library` 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/library-pack-tools.ts`

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