{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "tool-onf-update-workspace-library",
  "title": "onf_update_workspace_library",
  "section": "MCP tool reference",
  "description": "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.",
  "kind": "mcp",
  "url": "/wiki/tool-onf-update-workspace-library/",
  "markdown": "/wiki/tool-onf-update-workspace-library/index.md",
  "json": "/wiki/tool-onf-update-workspace-library/index.json",
  "headings": [
    {
      "id": "inputs",
      "title": "Inputs",
      "depth": 2
    },
    {
      "id": "exact-input-schema",
      "title": "Exact input schema",
      "depth": 2
    },
    {
      "id": "mcp-annotations",
      "title": "MCP annotations",
      "depth": 2
    },
    {
      "id": "calling-this-tool",
      "title": "Calling this tool",
      "depth": 2
    }
  ],
  "sources": [
    "server/library-pack-tools.ts"
  ],
  "contract": {
    "name": "onf_update_workspace_library",
    "description": "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.",
    "inputSchema": {
      "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"
      ]
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": false
    },
    "source": {
      "file": "server/library-pack-tools.ts",
      "line": 117
    }
  }
}
