Generate a weekly meal recommendation document with images and Xiaohongshu source links, stored as a Feishu doc in the receipts folder.
docx:document, docx:document:create, drive:drivemeals/profile.yaml (see references/profile-template.yaml)Read meals/profile.yaml for:
location — determines seasonal ingredientshousehold.portions — serving sizecooking.equipment — available appliances (air fryer, pressure cooker, etc.)cooking.timeAvailable — quick/moderate/slowcooking.spiceTolerance — none/mild/medium-hot/hotpreferences.cuisinesFavourite — preferred cuisinespreferences.explorationLevel — conservative/adventurousschedule.cookingDays — how many days per weekIf profile doesn't exist, ask user the basics and create one from references/profile-template.yaml.
Use agent-reach Xiaohongshu search to find trending recipes:
text
mcporter call 'xiaohongshu.search_feeds(keyword: "<search_term>")'
Search strategy (3-5 searches):
Pick the top results by likes/collects. Aim for 20 candidate dishes across 6 categories:
Organize 20 dishes into 6 themed sections based on equipment, cuisine, and cooking method:
Download a representative image for each dish (from Unsplash or similar free sources — Xiaohongshu CDN blocks direct downloads):
bash
curl -sL --connect-timeout 10 --max-time 20 -o ./tmp/dishes/01-name.jpg "<url>"
Store in workspace/tmp/dishes/. Verify each file is a valid JPEG/PNG (not empty or HTML error).
Read references/feishu-doc-recipe.md for the full Feishu API procedure.
Summary:
🍽️ YYYY-MM-DD 推荐菜单 (Monday's date) in receipts folderfull_access permissiondone: false) — same dish name, for user to check offreplace_imageKey constraints:
time.sleep(0.4) between API calls{"block_type": 27, "image": {}}) then filled via patchSend the document link to the user in chat. Format:
text
🍽️ 本周菜单已出炉!20 道菜已备好
👉 <document_url>
打开文档,从目录浏览所有菜,勾选你想做的~
Append the week's menu to meals/history.yaml for future reference and to avoid repeats.
KeyLocationDescriptionUser profilemeals/profile.yamlTaste preferences and constraintsReceipts folderFeishu driveToken stored in MEMORY.mdMeal historymeals/history.yamlPast menus to avoid repeats
references/profile-template.yaml — blank user profile templatereferences/feishu-doc-recipe.md — step-by-step Feishu document creation API guide