Connect Tool Library
v2.0.0Interact with remote tool libraries via cogenticlink CLI. Use this skill when you need to manage Tool libraries (tokens), browse available tools, and execute...
Like a lobster shell, security has layers — review code before you run it.
Runtime requirements
Install
npm i -g cogenticlinkConnect Tool Library Skill (via cogenticlink CLI)
Managing Tool Libraries (Tokens)
Before using any tool, you must add a library (API token) using the cogenticlink CLI:
-
Set a library (name, token, optional description):
cogenticlink libraries set <name> <token> [description] -
List all libraries (markdown output):
cogenticlink libraries -
Remove a library:
cogenticlink libraries remove <name>
Executing Tool Calls
All tool commands require the library name as a positional argument.
-
Fetch Tool Categories (markdown output):
cogenticlink categories <library>. Returns a list of categories. -
Fetch Tool List of Category (markdown output):
cogenticlink list <library>. If category is omitted, defaults to All Tools. -
Obtain Tool Description & Input Schema:
cogenticlink describe <library> <tool>. Returns Markdown containing the tool's description and JSON schema for parameters. -
Call a Tool:
cogenticlink call <library> <tool> [parameters]. parameters is an optional JSON object (default {}). Successful responses return JSON with a content array. Errors return isError: true with details in content.
Workflow
- Check/Create Library – If no library exists, instruct the user to set one:
cogenticlink libraries set <name> <token> [description]. If the token is unknown, ask the user to create a tool library in Cogentic Hub. - Fetch Tool Categories – Run
cogenticlink categories <library>to see available categories. - Select a category, If none selected, use
All Toolscategory. - Fetch Tool List from Selected Category – Run
cogenticlink list <library> <category>to see tools and their tags. - Obtain Tool Description (optional) – Run
cogenticlink describe <library> <tool>to understand required parameters. - Call Tool – Run
cogenticlink call <library> <tool> '<json-params>'to execute.
Troubleshooting with the CLI
- Library not found – Run
cogenticlink librariesto list existing libraries. - Invalid token – Re‑set the library with the correct token.
- Tool not found – Verify the tool name using
cogenticlink list <library>. - Invalid parameters – Check the tool's input schema with
cogenticlink describe <library> <tool>.
Comments
Loading comments...
