From srp-allstaff
Access and search Lark/Feishu cloud documents with user permissions (飞书云文档权限访问)
npx claudepluginhub serendipityoneinc/srp-claude-code-marketplaceThis skill uses the workspace's default tool permissions.
以用户身份访问和搜索飞书云文档,包括文档、表格、多维表格和知识库等。
Searches and navigates PDFs/DOCX/PPTX/Markdown documents, extracts tables/figures, builds wiki knowledge bases using retrieval, deep reading, and ingestion tools.
Searches group Yuque knowledge bases using natural language queries, extracts keywords, retrieves relevant docs via yuque-mcp tools, and summarizes answers with key points and source links. For team repository Q&A.
Searches personal Yuque knowledge bases with natural language queries, retrieves relevant documents via yuque-mcp tools, and synthesizes summarized answers with key points and source links. Useful for querying user's own docs.
Share bugs, ideas, or general feedback.
以用户身份访问和搜索飞书云文档,包括文档、表格、多维表格和知识库等。
Access and search Lark cloud documents as the authenticated user, including docs, sheets, bitables, and wiki spaces.
搜索包含'OKR'的文档
Search for documents containing 'product roadmap'
获取这个文档的内容:https://example.feishu.cn/docx/abc123
Get the content of this document: https://example.feishu.cn/wiki/xyz789
在知识库中搜索关于'架构设计'的内容
Search wiki for 'system architecture' documentation
Search across all document types that the user has access to:
Available MCP Tools:
mcp__lark__docx_builtin_search - Search cloud documentsmcp__lark__wiki_v1_node_search - Search wiki contentSearch Parameters:
search_key (required): Keyword to search fordocs_types: Filter by document type (doc, sheet, bitable, mindnote, file)owner_ids: Filter by document owner's open_idchat_ids: Filter by group where document is locatedcount: Number of results (max 50, default 10)offset: Pagination offsetRetrieve the actual content of documents:
Available MCP Tools:
mcp__lark__docx_v1_document_rawContent - Get plain text contentmcp__lark__wiki_v2_space_getNode - Get wiki node informationParameters:
document_id: The unique document identifierlang: Language for @mentions (0=Chinese, 1=English)Check and manage document permissions:
Available MCP Tools:
mcp__lark__drive_v1_permissionMember_create - Add permissionsPermission Roles:
view: Read-only accessedit: Can edit the documentfull_access: Full management access1. User: "搜索包含'产品路线图'的文档"
2. Assistant uses: mcp__lark__docx_builtin_search
- search_key: "产品路线图"
- count: 10
3. Display results with titles and URLs
4. User: "打开第一个文档"
5. Assistant uses: mcp__lark__docx_v1_document_rawContent
- document_id: extracted from URL
6. Display document content
1. User: "Show me the engineering wiki"
2. Assistant uses: mcp__lark__wiki_v1_node_search
- query: "engineering"
3. Display wiki pages and their hierarchy
4. User: "Get the content of the API documentation page"
5. Assistant uses: mcp__lark__wiki_v2_space_getNode
- token: wiki_page_token
6. Display wiki content
1. User: "张三创建的所有文档"
2. First get user ID: mcp__lark__contact_v3_user_batchGetId
- emails: ["zhangsan@company.com"]
3. Then search: mcp__lark__docx_builtin_search
- search_key: ""
- owner_ids: [user_open_id]
4. Display documents created by that user
User (Chinese):
帮我搜索包含'季度OKR'的文档
Assistant Response:
I'll search for documents containing '季度OKR'.
<uses mcp__lark__docx_builtin_search>
- search_key: "季度OKR"
- count: 10
Found 3 documents:
1. **2024 Q4 OKR Review** (docx)
- Owner: 张三
- Updated: 2024-01-10
- Link: https://example.feishu.cn/docx/abc123
2. **Team OKR Template** (docx)
- Owner: 李四
- Updated: 2024-01-08
- Link: https://example.feishu.cn/docx/def456
3. **Q1 2025 OKR Planning** (sheet)
- Owner: 王五
- Updated: 2024-01-12
- Link: https://example.feishu.cn/sheets/ghi789
Would you like me to open any of these documents?
User (English):
Get the content of this document: https://example.feishu.cn/docx/abc123
Assistant Response:
I'll retrieve the content of that document.
<uses mcp__lark__docx_v1_document_rawContent>
- document_id: abc123
Here's the document content:
# 2024 Q4 OKR Review
## Engineering Team
### Objective 1: Improve System Reliability
- KR1: Achieve 99.9% uptime ✓ (Completed: 99.95%)
- KR2: Reduce MTTR to under 30 minutes ✓ (Completed: 25 min)
- KR3: Complete disaster recovery testing ⚠ (In Progress: 80%)
### Objective 2: Enhance Developer Productivity
- KR1: Reduce build time by 40% ✓ (Completed: 45% reduction)
- KR2: Implement automated code review ✓ (Completed)
- KR3: Launch internal developer portal ✗ (Delayed to Q1 2025)
[... more content ...]
Would you like me to summarize the key points or search for related documents?
User (Chinese):
在工程知识库中搜索关于'微服务架构'的文档
Assistant Response:
我会在工程知识库中搜索'微服务架构'相关内容。
<uses mcp__lark__wiki_v1_node_search>
- query: "微服务架构"
找到 5 个相关页面:
1. **微服务架构设计指南**
- 路径: 工程文档 > 架构设计 > 微服务
- 更新时间: 2024-01-10
- [查看页面](https://example.feishu.cn/wiki/page1)
2. **服务拆分最佳实践**
- 路径: 工程文档 > 架构设计 > 最佳实践
- 更新时间: 2024-01-08
- [查看页面](https://example.feishu.cn/wiki/page2)
3. **API Gateway 配置说明**
- 路径: 工程文档 > 基础设施 > 网关
- 更新时间: 2024-01-12
- [查看页面](https://example.feishu.cn/wiki/page3)
需要我打开其中某个页面查看详细内容吗?
Document URLs have this format:
https://*.feishu.cn/docx/{document_id}https://*.feishu.cn/wiki/{wiki_token}https://*.feishu.cn/sheets/{spreadsheet_id}https://*.feishu.cn/base/{app_token}Extract the ID/token from the URL when accessing content.
docx_v1_document_rawContent returns plain text (no formatting)Common errors and solutions:
"Permission denied" (权限被拒绝)
"Document not found" (文档未找到)
"Invalid token" (无效令牌)
lark-messages: Access Lark messages and groupslark-approval, lark-calendar, lark-drive