返回顶部
c

connect-tool-library

Interact with remote tool libraries via HTTP API. Use this skill when you need to manage HTTP API credentials (tokens), browse the registry of available tools, and execute tool calls

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
46
下载量
0
收藏
概述
安装方式
版本历史

connect-tool-library

# Connect Tool Library Skill ## Manage HTTP API Credentials (tokens) ### Credentials Config - **Credentials File**: `[USER_HOME]/.cogenticlab/credentials.md` ### Workflow 1. If this skill's **Credentials File** is not exists, create it under this skill with followed content: ``` # HTTP API Credentials ## Example - KEY_NAME: KEY_STRING ## Key List ``` 2. Save to **Credentials File** with format: `- KEY_NAME: KEY` 3. Compare existing keys; if the key already exists, remove the old key pair 4. Compare existing key names; if the key name already exists, remove the old key pair ## Execute Tool Calls ### API Configuration - **Base URL**: `https://link.cogenticlab.io` - **Authentication**: Bearer token - **Token**: Retrieve from users prompt - **Request Method**: POST for all endpoints - **Content-Type**: `application/json` ### Available Endpoints #### **Fetch Tool Categories**: `POST /tool/categories` - Returns list of all tool categories - No request body required (send empty JSON `{}`) - Response **Content-Type**: `application/json` #### **Fetch Tool List**: `POST /tool/list/[CATEGORY_NAME]` - Returns list of all available tools and tags. the format is : ```markdown # Available Tools ## With Parameters - tool_name: tag ## No Parameters - tool_name: tag ## Tags - tag: tag_description ``` - No request body required (send empty JSON `{}`) - Response **Content-Type**: `text/markdown` #### **Obtain Tool Description**: `POST /tool/description/[TOOL_NAME]` - Return a specific tool description and input schema - No request body required (send empty JSON `{}`) - Response **Content-Type**: `text/markdown` #### **Call Tool**: `POST /tool/call/[TOOL_NAME]` - Executes a specific tool with provided parameters - Request body: JSON object with tool parameters matching the tool's input schema - Response **Content-Type**: `application/json` ### Authentication Setup if **Credentials File** is not exists, **Prompt the user**: `No tool library API token found, create a tool library in Cogentic Hub. Download and install Cogentic Hub first (https://github.com/cogenticlab/cogentichub/)` ### Workflow 1. Retrieve API **Token** from **Credentials File** 2. Check API **Token**, if the token start with `$` then retrieve the real token from env 3. **Fetch tool categories** and select the best-suited one. If no category is selected, use category `All Tools` 4. **Fetch tool list** and select the one best suited 5. If you need to view tool description or input schema, **Obtain Tool Description** 6. **Call tool** with parameters ### Response Format Successful responses return JSON with `content` array containing the result. Error responses include `isError: true` and error details in the `content` field. ### Important Notes - **Authentication Required**: All requests must include the bearer token in the Authorization header - **JSON Format**: Request bodies must be valid JSON matching the tool's input schema - **Error Handling**: Check `isError` field in responses to detect failures ### Troubleshooting - **Authentication Errors**: Verify the bearer token is correct - **Tool Not Found**: Check tool name spelling and fetch tool list - **Invalid Parameters**: Review tool input schema for required fields

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 connect-tool-library-1775906288 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 connect-tool-library-1775906288 技能

通过命令行安装

skillhub install connect-tool-library-1775906288

下载 Zip 包

⬇ 下载 connect-tool-library v1.0.0

文件大小: 2.07 KB | 发布时间: 2026-4-12 09:33

v1.0.0 最新 2026-4-12 09:33
Initial release of connect-tool-library.

- Interact with remote tool libraries via HTTP API for tool discovery and usage.
- Manage and store HTTP API credentials securely in a config file.
- Browse available tool categories and lists, fetch tool descriptions, and execute remote tool calls.
- Automated handling of API token retrieval from file or environment variable.
- Consistent error handling with clear response formats.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部