List Links
links_listList all links in the workspace with optional filtering by tags and search.
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": {
"pageSize": "<pageSize>"
},
"name": "links_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags to filter links by (matches links containing any of the provided tags) | |
| view | No | View mode for the link listing. LINK_VIEW_UNSPECIFIED (default): returns all links regardless of directory. LINK_VIEW_DIRECTORY: scoped to a directory; use directory_id to pick which one, or omit directory_id to get root-level links (not in any directory). | |
| search | No | Search query to filter links by name or shortlink | |
| sortBy | No | Field to sort links by (defaults to updated_at if not specified) | |
| include | No | List of related resources to include in the response. Supported values: "customDomain", "qrcodeDesign", "qrcodeSignedUrl", "tags", "pageTheme". Use "qrcodeSignedUrl" to fetch signed QR image URLs—they are omitted by default to keep requests fast. | |
| pageSize | Yes | The maximum number of links to return. | |
| pageToken | No | The token for retrieving the next page of results If not provided, the first page of results will be returned | |
| directoryId | No | The directory to scope to when view is LINK_VIEW_DIRECTORY. Ignored when view is LINK_VIEW_UNSPECIFIED (all links). | |
| sortDirection | No | Sort direction (defaults to descending if not specified) |