algorithmic-art
Generate deterministic SVG algorithmic artwork. Invoke when the user asks for geometric,…
基于飞书开放平台 API 的云文档/电子表格/多维表格/知识库(Wiki)搜索与内容读取工具(只读)。 使用场景:在飞书中搜索文档/表格/多维表格/知识库空间或节点,并读取对应内容。 Also activates for: 飞书搜索、Feishu search docs sheets base wiki、Lark docs sheets base wiki search、搜索飞书文档 表格 多维表格 知识库
$ npx -y skills add bytedance/agentkit-samples --skill byted-viking-aisearch-feishu --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/byted-viking-aisearch-feishuContext preview
The summary Claude sees to decide when to auto-load this skill.
基于飞书开放平台 API 的云文档/电子表格/多维表格/知识库(Wiki)搜索与内容读取工具(只读)。 使用场景:在飞书中搜索文档/表格/多维表格/知识库空间或节点,并读取对应内容。 Also activates for: 飞书搜索、Feishu search docs sheets base wiki、Lark docs sheets base wiki search、搜索飞书文档 表格 多维表格 知识库
name: byted-viking-aisearch-feishu
description: |
基于飞书开放平台 API 的云文档/电子表格/多维表格/知识库(Wiki)搜索与内容读取工具(只读)。
使用场景:在飞书中搜索文档/表格/多维表格/知识库空间或节点,并读取对应内容。
Also activates for: 飞书搜索、Feishu search docs sheets base wiki、Lark docs sheets base wiki search、搜索飞书文档 表格 多维表格 知识库
metadata:
version: "1.0.0"
openclaw:
identity:
- type: oauth
provider: viking_feishu_oauth_provider
env:
- LARK_USER_ACCESS_TOKEN
required: true你是一个专注于飞书「云文档 / 电子表格 / 多维表格 / 知识库(Wiki)」的搜索与内容读取助手。你必须严格只读,不实现任何写操作。
| 用户意图示例 | 匹配场景 | 主要方法 | 产出 | | :-- | :-- | :-- | :-- | | “搜一下飞书里关于‘Q4’的资料” | 聚合搜索 | `search_items()` / `search_docs()` | 返回条目列表(title/type/token/url/source…) | | “读取这个 docx / sheet / base 的内容” | 内容读取 | `fetch_raw_content()` | 返回 `content`(纯文本/TSV/JSON 摘要) | | “列出我有权限的知识库空间” | 知识库空间 | `list_wiki_spaces()` / `search_wiki_spaces()` | 返回空间列表 | | “列出某个知识库空间的子节点” | 空间子节点 | `list_wiki_space_nodes()` | 返回节点列表 |
from scripts.feishu_search import FeishuDocSearch # 方式一:使用环境变量(推荐) # export LARK_USER_ACCESS_TOKEN="u-xxxxxxxxxxxxxxxxxxxxxxxx" tool = FeishuDocSearch() # 方式二:显式传入 access_token tool = FeishuDocSearch(access_token="u-xxx")
**功能**:按关键词搜索云文档/电子表格/多维表格,并可选聚合知识库节点与知识库空间
**参数**:
| 参数名 | 类型 | 必填 | 默认值 | 说明 | | :-- | :-- | :-- | :-- | :-- | | `search_key` | `str` | 是 | - | 搜索关键词 | | `count` | `int` | 否 | `10` | 返回数量(分页后) | | `offset` | `int` | 否 | `0` | 偏移量(分页后) | | `types` | `List[str]` | 否 | `["doc","docx","sheet","bitable","wiki","wiki_space"]` | 搜索类型集合 | | `owner_ids` | `List[str]` | 否 | `None` | 所有者 Open ID 过滤(仅 suite docs 搜索) | | `chat_ids` | `List[str]` | 否 | `None` | 群聊 ID 过滤(仅 suite docs 搜索) | | `space_id` | `str` | 否 | `None` | 仅搜索该知识库空间内节点(wiki 节点搜索) |
**返回语义**:
**典型部分成功返回**:
{
"success": true,
"message": "搜索成功",
"data": {
"total": 3,
"has_more": false,
"items": [],
"warnings": {
"suite_error": {
"message": "文档套件搜索失败",
"error": {}
}
}
}
}`search_docs()` 为历史兼容接口,内部基于 `search_items()` 实现,默认包含 `doc/docx/sheet/bitable/wiki`。
**使用示例**:
# 基础搜索
result = tool.search_docs(search_key="项目计划")
# 指定类型搜索
result = tool.search_docs(
search_key="季度报告",
docs_types=["doc", "docx", "sheet", "bitable", "wiki"]
)
# 分页搜索
result = tool.search_docs(
search_key="技术方案",
count=20,
offset=0
)**返回示例**:
{
"success": true,
"message": "搜索成功",
"data": {
"total": 12,
"has_more": false,
"warnings": {
"wiki_error": {
"message": "权限不足,请为应用开通 wiki 搜索相关权限",
"error": {
"type": "permission_denied",
"detail": "HTTP 403: ..."
}
}
},
"items": [
{
"docs_token": "your_docs_token_xxx",
"docs_type": "docx",
"owner_id": "ou_xxx",
"title": "项目计划.docx",
"url": "https://xxx.feishu.com/docx/xxx",
"source": "suite_docs"
},
{
"docs_token": "your_docs_token_xxx",
"docs_type": "wiki",
"title": "用户操作手册",
"url": "https://xxx.feishu.com/wiki/xxx",
"space_id": "your_space_id_xxx",
"obj_type": "docx",
"obj_token": "your_obj_token_xxx",
"source": "wiki_nodes"
}
]
}
}**功能**:按 wiki 节点标题/内容搜索知识库文档
**参数**:
| 参数名 | 类型 | 必填 | 默认值 | 说明 | | :--- | :--- | :--- | :--- | :--- | | `keyword` | `str` | 是 | - | 搜索关键词 | | `count` | `int` | 否 | `None` | 返回数量 | | `offset` | `int` | 否 | `None` | 偏移量 | | `space_id` | `str` | 否 | `None` | 指定 wiki 知识空间 |
**使用示例**:
result = tool.search_wiki_nodes(
keyword="用户操作手册",
space_id="your_space_id_xxx"
)**返回示例**:
{
"success": true,
"message": "搜索成功",
"data": {
"total": 1,
"has_more": false,
"items": [
{
"docs_token": "your_docs_token_xxx",
"docs_type": "wiki",
"title": "用户操作手册",
"url": "https://xxx.feishu.com/wiki/xxx",
"space_id": "your_space_id_xxx",
"obj_type": "docx",
"obj_token": "your_obj_token_xxx",
"source": "wiki_nodes"
}
]
}
}支持的 `docs_type`:
**补充说明**:
**使用示例**:
# 读取 docx
result = tool.fetch_raw_content(
docs_type="docx",
docs_token="your_docs_token_xxx"
)
# 读取 sheet(可指定范围)
sheet_result = tool.fetch_raw_content(
docs_type="sheet",
docs_token="your_sheet_token_xxx",
range_a1="Sheet1!A1:D50"
)
# 读取 bitable(可指定表与分页)
base_result = tool.fetch_raw_content(
docs_type="bitable",
docs_token="your_app_token_xxx",
table_id="tbl_xxx",
page_size=50
)**返回示例(docx)**:
{
"success": true,
"message": "获取成功",
"data": {
"content": "Q4项目计划\n一、项目背景..."
}
}欢迎来到 AgentKit 代码工坊(Samples)仓库! AgentKit 是火山引擎推出的企业级 AI Agent 开发平台,为开发者提供完整的 Agent 构建、部署和运维解决方案。平台通过标准化的开发工具链和云原生基础设施,显著降低复杂智能体应用的开发部署门槛。 本代码库包含了一系列示例和教程,帮助您理解、实现和集成 AgentKit 的各项功能到您的应用中。
Generate deterministic SVG algorithmic artwork. Invoke when the user asks for geometric,…
Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution…
根据文字描述生成视频,一个生成图片和视频的工作流技能。依赖 skills: byted-web-search, image-generate, video-generate。注意:此…
Manage AgentKit skills, SkillHub/skillhub, skill centers, and skill spaces. Use this skill…
Upload files or directories to TOS-compatible object storage for Volcano Engine or BytePlus…
根据用户的功能需求,完成与 VeADK-Go 相关的功能; 包括:直接根据需求生成 Agent;将Enio Agent转换为VeADK-Go Agent。