library_link
Link or unlink a cloud knowledge library using its exact cloud://owner/slug to add it to searchable account libraries or remove it and free its slot.
Instructions
Link a cloud knowledge library to this account, or unlink one (action: "unlink"). Pass the exact cloud://owner/slug — from a library_search result to link, from list_libraries to unlink; bare names, local:// references and document ids are rejected.
LINK (default action): the library appears in list_libraries immediately and search / explore / list accept its cloud://owner/slug right away. Who can link: Public libraries — any signed-in user; Showcase and Private libraries — the owner or an invited reader only (the tool answers invite_required, or not_found for a private library you cannot see). Linking the same library again is safe and answers already_linked without using another Slot. Every link uses one Slot (Free plan: 1, Pro: 99). When the quota is full the tool answers slot_exhausted with the current count, the limit and an upgrade link — do NOT pick a library to unlink yourself: show the user their linked libraries (list_libraries), let them name the one to release, then call this tool with action "unlink" on it and retry.
UNLINK (action: "unlink"): the library disappears from list_libraries and stops being searchable through this MCP server — for every client of this account, not just this session — and its Slot is freed. Call it ONLY for a library the user has named ("replace A with B"); never choose on their behalf, and never unlink to make room without being told which one. Unlinking is reversible: the user keeps their reader access and stars, so linking again later works — any time for a Public library, and while the invitation stands for a Showcase / Private one. Unlinking a library that is not linked is safe and answers already_unlinked.
This tool never searches anything: use library_search to find a library, search to find documents.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"library": "<library>"
},
"name": "library_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | "link" (default) adds the library to this account; "unlink" removes it and frees its Slot. Omit or send null to link. | |
| library | Yes | The cloud library, exactly as returned by `library_search` (to link) or listed by `list_libraries` (to unlink): `cloud://<owner>/<slug>` (e.g. `cloud://acme/handbook`). No other form is accepted. |