Dynamic Toolsのロゴ

Dynamic Tools

組織
opencrabs
dynamic-tools

tool_manageとtools.toml形式を使った、実行中のツール管理です。再起動せずにツールの作成、有効化、無効化、再読み込みができます。(/dynamic-tools、tool_manage、runtime tools)

Add to TypingMind

概要

公開者opencrabs
リポジトリopencrabs
スキル名dynamic-tools
スター
981
フォーク
105
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    opencrabsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Dynamic Tools」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/opencrabs/opencrabs/tree/main/src/docs/reference/templates/skills/dynamic-tools
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opencrabs/opencrabs.git /tmp/opencrabs
mkdir -p .claude/skills
cp -r /tmp/opencrabs/src/docs/reference/templates/skills/dynamic-tools .claude/skills/dynamic-tools
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDynamic Toolsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDynamic Toolsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Dynamic Toolsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Dynamic Tools Reference

Runtime tool creation — define tools in ~/.opencrabs/tools.toml and they become callable immediately without restart or rebuild.

tool_manage Meta-Tool

ActionRequiredWhat
list—Show all dynamic tools with enabled/disabled status
addname, description, executor, method/commandCreate new tool (persists to tools.toml)
removenameDelete a tool
enable / disablenameToggle without removing
reload—Hot-reload from tools.toml

Executor Types

Two executor types, set via the executor field:

ExecutorField
executor = "shell"command — shell command string
executor = "http"method, url — HTTP method and endpoint

Parameter Handling

Every tool parameter defined in [[tools.params]] becomes available in two ways:

  1. $OPENCRABS_PARAMS — Environment variable pointing to a temporary JSON file containing all params with their current values. The file is created before the command runs and cleaned up after. Use with --params-file flags or read directly inside scripts:

    toml
    command = "/usr/local/bin/mycli send --params-file \"$OPENCRABS_PARAMS\""

    Inside a shell script, read the file directly:

    sh
    #!/bin/sh
    # $OPENCRABS_PARAMS points to a JSON file with all tool params
    action=$(jq -r '.action // "default"' "$OPENCRABS_PARAMS")
    payload=$(jq -r '.payload // empty' "$OPENCRABS_PARAMS")
    exec mycli "$action" --data "$payload"
  2. {{param_name}} — Inline template substitution. Replaced with the string value of the parameter:

    toml
    command = "curl -s -H \"Authorization: Bearer {{api_key}}\" {{endpoint}}"

Conditional Sections

Wrap template content with {{#param_name}}...{{/param_name}} to include only when the parameter is non-null and non-empty:

toml
command = """curl -s {{#query}}-G --data-urlencode "q={{query}}"{{/query}} {{url}}"""

Coercion Rules

Each param can specify how null/empty values are handled before being written to $OPENCRABS_PARAMS:

coerce_empty_to / coerce_null_toEffect
"keep" (default)Pass null/empty as-is into the JSON
"omit"Drop the key entirely from $OPENCRABS_PARAMS JSON
"null"Convert to JSON null
"error"Reject the tool call with a validation error

Example:

toml
[[tools.params]]
name = "query"
type = "string"
required = false
default = "null"
coerce_empty_to = "null"

tools.toml Format

Shell Executor

toml
[[tools]]
name = "send_notification"
description = "Send a notification via the notification service"
executor = "shell"
enabled = true
requires_approval = true
timeout_secs = 30
command = "/usr/local/bin/notify-send --params-file \"$OPENCRABS_PARAMS\""

[[tools.params]]
name = "channel"
type = "string"
description = "Notification channel: email, slack, or push"
required = true

[[tools.params]]
name = "message"
type = "string"
description = "Message body"
required = true

[[tools.params]]
name = "priority"
type = "string"
description = "Priority level: low, normal, high"
required = false
default = "normal"

HTTP Executor

toml
[[tools]]
name = "check_api_health"
description = "Check if the production API is responding"
executor = "http"
enabled = true
method = "GET"
url = "https://api.example.com/health"

[tools.headers]
Authorization = "Bearer {{api_key}}"

Rate Limiting

toml
[tools.rate_limit]
requests = "10"
window = "1m"

Full Example — CLI tool with $OPENCRABS_PARAMS

toml
[[tools]]
name = "search_index"
description = "Search indexed documents by query"
executor = "shell"
enabled = true
requires_approval = false
timeout_secs = 60
command = "/usr/local/bin/doc-search --params-file \"$OPENCRABS_PARAMS\" 2>&1"

[[tools.params]]
name = "query"
type = "string"
description = "Search text"
required = true

[[tools.params]]
name = "limit"
type = "integer"
description = "Max results to return"
required = false
default = "50"

[[tools.params]]
name = "source"
type = "string"
description = "Document source filter"
required = false
default = ""

How It Works

  1. On startup, tools from tools.toml load into the ToolRegistry alongside compiled tools.
  2. Dynamic tools appear in the LLM's tool list — the agent calls them autonomously.
  3. Use tool_manage add to create new tools at runtime.
  4. Use tool_manage reload to pick up manual edits to tools.toml.
  5. Unlike commands.toml (user-triggered slash commands), these are agent-callable tools.
  6. Shell commands run via sh -c — $OPENCRABS_PARAMS is set as an environment variable pointing to the real temp JSON file path. The file is cleaned up after command completion.

よくある質問

AIスキル「Dynamic Tools」では何ができますか?

tool_manageとtools.toml形式を使った、実行中のツール管理です。再起動せずにツールの作成、有効化、無効化、再読み込みができます。(/dynamic-tools、tool_manage、runtime tools)

TypingMindでDynamic Toolsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Dynamic Toolsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDynamic Toolsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/opencrabs/opencrabs/tree/main/src/docs/reference/templates/skills/dynamic-toolsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Dynamic Toolsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Dynamic Toolsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDynamic Toolsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Dynamic Tools」は無料ですか?

はい。opencrabsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇