Input determination
- User wants to browse recommendations → Step 1
- User provided a feed_id → Step 2
Execution flow
1. Get the recommendation feed
Call list_feeds(no parameters), returns the list of recommended notes on the home page.
Display each note's title, author, and engagement data, along with feed_id and xsec_token。
2. View note details
Call get_feed_detail:
feed_id(string, required)xsec_token(string, required)load_all_comments(bool, optional, default false, return only the first 10 comments)limit(int, optional, effective when load_all_comments=true, default 20)click_more_replies(bool, optional, whether to expand second-level replies)reply_limit(int, optional, skip comments with more replies than this value, default 10)scroll_speed(string, optional: slow | normal | fast)
Display: note content, images, author information, engagement data, comment list.
Prompt the user that they can:
- Like/bookmark (use xhs-interact)
- Post a comment (use xhs-interact)
- View the author's profile (use xhs-profile)
Failure handling
| Scenario | Handling |
|---|---|
| Not logged in | Guide to use xhs-login |
| Note deleted or not visible | Inform the user that the note is inaccessible |