Skip to content

js-multi-tools

Generated from plugins/js-multi-tools/README.md.

Example multi-tool Node.js/TypeScript package.

This package demonstrates named export selection via package.json#agent.tools[].export.

  • Plugin ids: js_echo, js_reverse
  • Tool function(s): echo, reverse

Tool implementations live in: - src/EchoTool.ts - src/ReverseTool.ts

Build

esbuild src/index.ts --bundle --platform=node --format=esm --outdir=dist

Configure (local path)

Note: these examples assume you are using the application plugin manager (AgentApplication) and have set plugin_cache_dir plus plugin_policy.base_dir so relative paths resolve.

  • Verbose form:
{
  "plugins": [
    { "node_tool": { "path": "./plugins/js-multi-tools" } }
  ]
}
  • String shortcut:
{
  "plugins": [
    "node:./plugins/js-multi-tools"
  ]
}

TypeScript build

Because dist/ is gitignored, the application plugin manager will install dependencies and run the package build script in its cache automatically.

For safety/hardening, you can disable Node installs/builds globally via plugin_policy (applies to all Node tools):

{
  "plugin_policy": {
    "node_install_deps": false,
    "node_build": false,
    "node_allow_install_scripts": false
  }
}

License

Copyright 2026 Dynamic Programming Solutions Kft.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.