Adding Tools
This page outlines the current workflow for introducing a new aggregated tool.
When to read this page: you are adding a new tool category.
Workflow
- Add or extend API wrappers in
src/api/*if needed - Define tool/action types in
src/core/config.tsand related schemas - Implement the tool module under
src/tools/<tool>/asindex.ts+handlers.ts - Register it in
src/core/tool-registry.ts - Add default config and help text
- Add tests
Gotchas
- Tool docs and config action lists must stay aligned
- Permission checks need to be explicit for notebook-scoped mutations
- Shared tool-layer infrastructure belongs in
src/tools/internal/; cross-tool helpers belong insrc/tools/internal/helpers/