← Back to Skills Marketplace
peter7397

Dynamic Tool

by Peter7397 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
596
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install tooldyn
Description
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→...
README (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).

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install tooldyn
  3. After installation, invoke the skill by name or use /tooldyn
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug tooldyn
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is 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→... It is an AI Agent Skill for Claude Code / OpenClaw, with 596 downloads so far.

How do I install Dynamic Tool?

Run "/install tooldyn" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Dynamic Tool free?

Yes, Dynamic Tool is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Dynamic Tool support?

Dynamic Tool is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Dynamic Tool?

It is built and maintained by Peter7397 (@peter7397); the current version is v1.0.0.

💬 Comments