This commit is contained in:
Vincent Batts 2025-06-05 16:20:18 -04:00
parent bd55899a1e
commit bb2d8f0585

View file

@ -63,7 +63,7 @@ class Tools:
offset: int = 0,
collection_id: Optional[str] = None,
search: Optional[str] = None,
tags: Optional[str] = None,
labels: Optional[str] = None,
__user__: Optional[dict] = None
) -> str:
"""
@ -74,7 +74,7 @@ class Tools:
offset: Number of bookmarks to skip (default: 0)
collection_id: Filter by collection ID
search: Search query for bookmark titles/content
tags: Comma-separated list of tags to filter by
labels: Comma-separated list of labels to filter by
"""
if not self.valves.readeck_url or not self.valves.api_token:
@ -90,8 +90,8 @@ class Tools:
params["collection_id"] = collection_id
if search:
params["q"] = search
if tags:
params["tags"] = tags
if labels:
params["labels"] = labels
# Make request to Readeck API
result = self._make_request("/bookmarks", params)