Create a link
create_linkSave a URL as a bookmark in Linkwarden, optionally adding title, tags, description, or collection. Missing collections are created; the page title is fetched automatically and preservation is queued.
Instructions
Saves a bookmark. Linkwarden fetches the page title itself when no name is given, and queues the page for preservation according to the account defaults (get_current_user shows them).
The collection is optional; without one the link lands in "Unorganized". Naming a collection that does not exist creates it. If the account has "prevent duplicate links" enabled, saving a URL twice fails with HTTP 409.
Linkwarden does the fetching, so a URL addressing its own loopback, the link-local range or a cloud metadata endpoint is refused here. A private LAN address is accepted by this server, but Linkwarden 2.14 and later refuse to preserve one themselves — the bookmark is created and stays without an archive, so get_link_content will have nothing to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to bookmark, including the scheme | |
| name | No | Title. Omit to let Linkwarden read it from the page. | |
| tags | No | Tag names. Tags that do not exist yet are created. | |
| description | No | ||
| collection_id | No | Target collection. Mutually exclusive with collection_name. | |
| collection_name | No | Target collection by name; it is created if it does not exist. Mutually exclusive with collection_id. |