You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(deck): add card discovery and card comment tools
Extend the Deck tool module with one discovery tool and four comment
tools, together addressing a gap where the agent could not target
existing cards by name or interact with card discussions.
Card discovery (1 tool):
- list_board_cards: list all cards in a board with metadata (stack,
labels, assignees, due date, archived status, done, comments count).
Optional stack_id filter limits to a single stack. Fills the gap
raised in nextcloud#127 where add_card, add_card_label, assign_card_to_user,
and delete_card all require a card_id the agent otherwise cannot
discover (the unified search tool works for keyword lookups but does
not enumerate and does not return structured metadata).
Card comments (4 tools):
- list_card_comments: list all comments on a card with pagination
- add_card_comment: create a comment, with optional threaded reply support
- update_card_comment: edit an existing comment (author-only)
- delete_card_comment: remove a comment (author-only)
list_board_cards uses the existing /boards/{boardId}/stacks REST
endpoint via the adapter pattern consistent with the other Deck
tools, and flattens the nested stack-cards shape for agent use while
stripping internal fields (ETag, lastModified, order, etc.).
Comments use the Deck OCS API via nc.ocs(), consistent with how
shares.py and other OCS-based tools work. The existing board/card
tools (REST API) are unchanged except for docstring corrections
pointing card_id lookups at list_board_cards instead of list_boards
(which does not return cards).
Tested against Nextcloud 32.0.8 with Deck 1.16.4.
Signed-off-by: Pavlinchen <paulm.schmidt@icloud.com>
0 commit comments