diff --git "a/tools/tool_github_search/1.0.0/GitHub API \346\237\245\350\257\242.tool" "b/tools/tool_github_search/1.0.0/GitHub API \346\237\245\350\257\242.tool" new file mode 100644 index 0000000..441281e Binary files /dev/null and "b/tools/tool_github_search/1.0.0/GitHub API \346\237\245\350\257\242.tool" differ diff --git a/tools/tool_github_search/README.md b/tools/tool_github_search/README.md new file mode 100644 index 0000000..e5767c1 --- /dev/null +++ b/tools/tool_github_search/README.md @@ -0,0 +1,61 @@ +# GitHub API 查询工具 + +查询 GitHub 仓库信息、Issues、Pull Requests、Releases 和贡献者数据。 + +## 功能特点 + +- 仓库基本信息查询 +- Issues/PRs 查询 +- Releases 查询 +- 贡献者查询 +- 支持 Token 认证 + +## 参数说明 + +**输入参数**: owner, repo, query_type, state, per_page +```python +def query_github_repository( + owner: str, + repo: str, + query_type: str, + state: str, + token: Optional[str] = None, + per_page: int = 10, + page: int = 1 +) -> Dict[str, Any]: + """查询 GitHub 仓库信息 + + Args: + owner: 仓库所有者(用户名或组织名) + repo: 仓库名称 + token: GitHub Personal Access Token(可选,用于提高速率限制) + query_type: 查询类型,可选 "info"/"issues"/"pulls"/"releases"/"contributors" + state: 状态过滤,可选 "open"/"closed"/"all",默认 "open" + per_page: 每页结果数,默认 10 + page: 页码,默认 1 + + Returns: + Dict[str, Any]: 包含查询结果的字典,结构如下: + - success (bool): 是否成功 + - data (Dict|None): 查询数据,包含: + - type (str): 查询类型 + - repository (str): 仓库全名 + - info (Dict|None): 仓库基本信息 + - items (List|None): 结果列表(issues/prs/releases 等) + - total_count (int): 总数 + - message (str): 结果消息 + + Raises: + 无异常抛出,所有错误在返回值中处理 + + Examples: + >>> result = query_github_repository("1Panel-dev", "MaxKB", query_type="info") + >>> if result["success"]: + ... print(f"Stars: {result['data']['info']['stargazers_count']}") + """ +``` +**启动参数**: token (可选) + +## 使用说明 + +无需 Token 即可查询公开仓库,提供 Token 可提高速率限制。 diff --git a/tools/tool_github_search/data.yaml b/tools/tool_github_search/data.yaml new file mode 100644 index 0000000..274607f --- /dev/null +++ b/tools/tool_github_search/data.yaml @@ -0,0 +1,5 @@ +name: GitHub API 查询 +tags: + - 联网搜索 +title: GitHub API 查询工具 +description: 查询 GitHub 仓库信息、Issues、Pull Requests、Releases、贡献者等数据,支持仓库基本信息统计和动态查询 diff --git a/tools/tool_github_search/logo.png b/tools/tool_github_search/logo.png new file mode 100644 index 0000000..c68d8d7 Binary files /dev/null and b/tools/tool_github_search/logo.png differ diff --git a/tools/tool_jina_reader/1.0.0/Jina Reader.tool b/tools/tool_jina_reader/1.0.0/Jina Reader.tool new file mode 100644 index 0000000..2872ae8 Binary files /dev/null and b/tools/tool_jina_reader/1.0.0/Jina Reader.tool differ diff --git a/tools/tool_jina_reader/README.md b/tools/tool_jina_reader/README.md new file mode 100644 index 0000000..97a9966 --- /dev/null +++ b/tools/tool_jina_reader/README.md @@ -0,0 +1,39 @@ +# Jina Reader 工具 + +使用 Jina AI Reader 将 URL 转换为 LLM 友好的 Markdown 格式。 + +## 功能特点 + +- URL 转 Markdown +- 智能内容提取 +- 自动清理噪音 +- 支持中文优化 + +## 参数说明 + +**输入参数**: url, return_format +```python +def read_url_with_jina( + url: str, + return_format: str, + api_key: Optional[str] = None +) -> Dict[str, Any]: + """使用 Jina Reader 读取 URL 内容 + + Args: + url: 要读取的网页 URL + api_key: Jina API 密钥 (可选) + return_format: 返回格式 markdown/html + + Returns: + Dict[str, Any]: 包含读取结果的字典 + """ +``` +**启动参数**: api_key (可选) + +## 使用示例 + +``` +url: https://example.com/article +return_format: markdown +``` diff --git a/tools/tool_jina_reader/data.yaml b/tools/tool_jina_reader/data.yaml new file mode 100644 index 0000000..9ce8624 --- /dev/null +++ b/tools/tool_jina_reader/data.yaml @@ -0,0 +1,5 @@ +name: Jina Reader +tags: + - 内容处理 +title: Jina AI Reader +description: 使用 Jina AI Reader 将任意 URL 转换为 LLM 友好的 Markdown 格式,支持全文提取和智能清理 diff --git a/tools/tool_jina_reader/logo.png b/tools/tool_jina_reader/logo.png new file mode 100644 index 0000000..6f227e8 Binary files /dev/null and b/tools/tool_jina_reader/logo.png differ