docs(base): document Base attachment download via docs +media-download#404
docs(base): document Base attachment download via docs +media-download#404
Conversation
Base attachment files must be downloaded via 'lark-cli docs +media-download', not 'lark-cli drive +download' (which returns HTTP 403). The existing lark-doc reference already documents the command thoroughly, so this PR just adds entries to the lark-base skill that reference it. - SKILL.md: add download row to field classification, routing, and record commands tables, referencing lark-doc-media-download.md - references/lark-base-record.md: add download entry to the command navigation table and notes, referencing lark-doc-media-download.md
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (2)
📝 WalkthroughWalkthroughAdded documentation entries guiding users to download Lark Base attachment files using Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR adds cross-reference documentation for downloading Base attachment files via Confidence Score: 5/5Documentation-only PR with no code changes; safe to merge. All changes are cross-reference additions in Markdown documentation. The §2.3.3 routing row correctly names the skills/lark-base/SKILL.md §3.2 — "不要误走" column for the download row carries a token-source hint rather than an explicit anti-pattern warning (flagged in a prior thread). Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User wants to download Base attachment] --> B[+record-get to retrieve record]
B --> C[Extract file_token from attachment field array]
C --> D["lark-cli docs +media-download\n--token <file_token> --output <path>"]
D --> E[File saved locally]
A --> F["❌ lark-cli drive +download\n(returns HTTP 403 for Base attachments)"]
F --> G[Error — wrong command]
style F fill:#ffcccc,stroke:#cc0000
style G fill:#ffcccc,stroke:#cc0000
style D fill:#ccffcc,stroke:#006600
style E fill:#ccffcc,stroke:#006600
Reviews (2): Last reviewed commit: "docs: add output flag to base attachment..." | Re-trigger Greptile |
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@d513fdbafebf7eea0ea12c3ef8a6ff7132d5da6f🧩 Skill updatenpx skills add larksuite/cli#docs/base-skill-download-attachment -y -g |
|
Tip: Greploop — Automatically fix all review issues by running Use the Greptile plugin for Claude Code to query reviews, search comments, and manage custom context directly from your terminal. |
Summary
Document the correct way to download files from Base attachment fields. Base attachment files cannot be downloaded via lark-cli drive +download (which returns HTTP 403). The correct command is lark-cli docs +media-download --token
<file_token>, which is already documented in the lark-doc skill. This PR just adds cross-references from lark-base to that existing documentation.
Changes
No new reference doc — we reuse the existing thorough documentation in lark-doc instead of duplicating it.
Test Plan
Related Issues
Summary by CodeRabbit