← 返回 Skills 市场
peter7397

Dynamic Tool

作者 Peter7397 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
596
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install tooldyn
功能描述
Intent-based tool selection. Activate when you want to know which tools are relevant for the current user message (weather→exec, document→feishu_doc, search→...
使用说明 (SKILL.md)

Dynamic Tool Policy

When to use: Before calling many tools, or when the user message is about weather, search, documents, or Feishu — call get_recommended_tools with the latest user message to get a short list of recommended tools and a hint.

Intent mapping:

  • 天气 / weather / wttr → use exec (e.g. curl wttr.in/\x3Ccity>?format=3)
  • 搜索 / search → use web_search once, then reply; do not call web_search again in the same turn
  • 文档 / create doc / 飞书文档 → use feishu_doc only when the user explicitly asks for a document
  • 读文件 / read file → read; 写/编辑 → write

Tool: get_recommended_tools({ user_message }) → returns recommended_tools (array of tool names) and hint (short instruction).

安全使用建议
This skill appears to do what it says: keyword-based recommendations for which tools to expose. Before installing or applying its suggestions: 1) Be cautious about following the README's 'gateway-level filtering' advice — it proposes patching OpenClaw distribution files (auth-profiles-*.js). Back up those files and review any code you paste into core bundles. 2) Note that the implementation always includes the 'exec' tool in recommendations; ensure your exec tool is safely sandboxed or disabled if you don't want agents running shell commands. 3) Verify and inspect any external links or code snippets (the README references a GitHub path that looks like a placeholder). 4) If you plan to apply the gateway patch, restrict who can perform that change and test in a non-production environment. If you want a lower-risk approach, use the skill's get_recommended_tools output in your agent logic without modifying core OpenClaw files.
功能分析
Type: OpenClaw Skill Name: tooldyn Version: 1.0.0 The dynamic-tool-policy skill is a utility designed to optimize tool selection for AI agents by mapping user intent to specific tools (e.g., weather to 'exec', search to 'web_search'). The implementation in index.js is a straightforward keyword-based router with no requested permissions and no external network or file system access. While it encourages the use of the high-privilege 'exec' tool for weather queries (via wttr.in) and mentions manual patching of OpenClaw core files for advanced optimization in the README.md, these are presented as legitimate architectural workarounds for token optimization in small-model environments and do not exhibit malicious intent.
能力评估
Purpose & Capability
Name/description match the implementation: index.js implements keyword-to-tool mapping and exposes get_recommended_tools which returns recommended_tools and a hint. No unrelated env vars, binaries, or credentials are required.
Instruction Scope
SKILL.md/README stay within purpose (call get_recommended_tools with the last user message) but also recommend: (1) specific system-prompt rules, and (2) optionally patching the OpenClaw distribution (auth-profiles-*.js) to perform gateway-level filtering. The README's recommendation to patch core gateway files is potentially risky and should be reviewed carefully. Also, the implementation unconditionally includes 'exec' in every recommendation, which may cause the agent to prefer running shell commands; ensure exec tool restrictions/policies are in place.
Install Mechanism
No install spec; skill is instruction + small JS module. Nothing is downloaded from external URLs and there are no install-time scripts, so no high-risk installation behavior is present in the package itself.
Credentials
No environment variables, credentials, or config paths are requested. The skill does not require secrets or unrelated service tokens.
Persistence & Privilege
The skill does not request always:true and is user-invocable only. However, README suggests modifying gateway-level code to enforce filtering — that change would grant persistent behavior to the gateway and should be treated as a privileged modification (backup and review recommended).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tooldyn
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tooldyn 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of dynamic-tool-policy for intent-based tool selection: - Introduces `get_recommended_tools` API to suggest relevant tools based on user messages and provide usage hints. - Maps common intents (weather, search, documents, Feishu) to specific tools, helping avoid unnecessary tool loops. - Reduces context switching by recommending only essential tools for each user request.
元数据
Slug tooldyn
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Dynamic Tool 是什么?

Intent-based tool selection. Activate when you want to know which tools are relevant for the current user message (weather→exec, document→feishu_doc, search→... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 596 次。

如何安装 Dynamic Tool?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install tooldyn」即可一键安装,无需额外配置。

Dynamic Tool 是免费的吗?

是的,Dynamic Tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Dynamic Tool 支持哪些平台?

Dynamic Tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Dynamic Tool?

由 Peter7397(@peter7397)开发并维护,当前版本 v1.0.0。

💬 留言讨论