tools
БесплатноБез исполняемых скриптовНе проверенGive your agents capabilities through tools (function calling). Helps you identify what your agent needs to do, create tool definitions, and attach them to…
от launchdarkly★ 32 звезды на GitHubОб этом скилле
Config Tools
You're using a skill that will guide you through adding capabilities to your agents through tools (function calling). Your job is to identify what your agent needs to do, create tool definitions, attach them to variations, and verify they work.
Prerequisites
This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.
Required MCP tools:
create-ai-tool-- create a new tool definition with a schemaupdate-agent-configwithresource: "variation"-- attach tools to a config variationget-agent-configs-- verify tools are attached to the variation
Optional MCP tools:
get-ai-tools-- browse existing tools in the project; withtoolKey, inspect one tool's schema
Core Principles
- Start with Capabilities: Think about what your agent needs to do before creating tools
- Framework Matters: LangGraph/CrewAI often auto-generate schemas; OpenAI SDK needs manual schemas
- Create Before Attach: Tools must exist before you can attach them to variations
- Verify: The agent fetches the config to confirm attachment
- Complete the Full Workflow: Listing existing tools is a discovery step, not the end goal. After listing, always proceed to create the requested tool, attach it, and verify. Do not stop after exploration.
Workflow
Step 1: Identify Needed Capabilities
What should the agent be able to do?
- Query databases, call APIs, perform calculations, send notifications
- Check what exists in the codebase (API clients, functions)
- Consider framework: LangGraph/LangChain auto-generate schemas; direct SDK needs manual schemas
If the user asks to check existing tools first, or you have no codebase context about what tools exist, follow this exact order:
get-ai-tools-- explore what existscreate-ai-tool-- create the new tool (with a key different from existing ones)update-agent-configwithresource: "variation"-- attach itget-agent-configs-- verify
Call get-ai-tools as your first tool call before any creation. Never stop after listing alone -- always proceed through all four steps.
Step 2: Create Tools
Use create-ai-tool with:
key-- unique identifier for the tooldescription-- clear description (the LLM uses this to decide when to call the tool)schema-- raw JSON Schema (do NOT use the OpenAI function calling wrapper):
{
"type": "object",
"properties": {
"query": {"type": "string", "description": "Search query"},
"limit": {"type": "integer", "default": 10}
},
"required": ["query"]
}
Step 3: Attach to Variation
Use update-agent-config with resource: "variation" to attach tools. Pass only the tools field (plus projectKey, configKey, variationKey, and confirm). Do not bundle instructions, messages, model, or parameters into this PATCH unless the user has explicitly asked you to also update those fields. Those fields may have been edited in the LaunchDarkly UI since the variation was created, and including them in a tool-attachment PATCH will silently clobber the UI edits.
{
"projectKey": "my-project",
"configKey": "support-chatbot",
"resource": "variation",
"variationKey": "default",
"tools": [
{"key": "search-knowledge-base", "version": 1}
],
"confirm": true
}
If you observe a UI-clear bug where attaching tools wipes other fields, do not work around it by re-sending those fields from the previous get-agent-configs response — that masks the bug and can resurrect stale values that the user has since edited. Report the bug instead.
Step 4: Verify
- Use
get-ai-toolsto confirm the tool exists with a valid schema - Use
get-agent-configsto confirm the tool is attached to the variation (checktoolsin the variation's output)
Report results:
- Tool created with valid schema
- Tool attached to variation
- Flag any issues
Implement the tools in your application
LaunchDarkly stores each tool's schema and attaches it to the variation. Your application supplies the function that runs when the model calls the tool. With the AI SDK (launchdarkly-ai-server for Python, @launchdarkly/ai-node for Node.js) and a provider handler package, that function is all you write. The handler converts the schemas to the provider's format, runs the tool loop, and records a $ld:ai:tool_call event for every call. You don't convert schemas, write a loop, or call a tracker.
Pass the functions as tool_handlers (Python) or toolHandlers (Node.js), keyed by the tool key you created in Step 2:
from launchdarkly_ai_server import config
from launchdarkly_ai_openai_messages import create_openai_messages_handler
def search_knowledge_base(args):
# args is one dict of the arguments the model sent, matching the tool's schema
return kb.search(args["query"], limit=args.get("limit", 10))
result = await config(
key="support-chatbot",
han
Установить tools в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл tools?
Give your agents capabilities through tools (function calling). Helps you identify what your agent needs to do, create tool definitions, and attach them to config variations.
Как установить скилл tools?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tools запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic