@moxxy/mode-tool-use is the default mode. The model calls tools; the loop runs them and feeds results back; the model emits a final assistant_message to stop. Best for everything well-scoped.
Install
sh
pnpm add @moxxy/mode-tool-useUse
ts
import { toolUseModePlugin } from '@moxxy/mode-tool-use';
session.pluginHost.registerStatic(toolUseModePlugin);
session.modes.setActive('tool-use');Exports
toolUseMode— theModeDef.toolUseModePlugin— thePluginyou register.TOOL_USE_MODE_NAME— the registered name ('tool-use').CollectedToolUse— internal type re-exported for advanced wrappers.
See also
- Modes guide — comparison with
plan-executeandbmad.
