CreatorWeave has 30+ agent tools, but there's no tutorial showing how to add a new one.
What to do:
- Study an existing simple tool like
web/agent/tools/ls.tool.ts
- Study the tool registration in
web/agent/tools/ and the ToolEntry type in tool-types.ts
- Write a step-by-step tutorial at
docs/tutorials/custom-agent-tool.md covering:
- How tool definitions work (OpenAI function calling format)
- How to implement a
ToolExecutor
- How to register a tool
- A complete example (e.g., a "word count" tool)
Skills needed: TypeScript, ability to read and understand existing code patterns
Reference files:
web/agent/tools/ls.tool.ts — simple tool example
web/agent/tools/tool-types.ts — type definitions
web/agent/tools/switch-mode.tool.ts — another simple tool
Estimated time: 3-4 hours
CreatorWeave has 30+ agent tools, but there's no tutorial showing how to add a new one.
What to do:
web/agent/tools/ls.tool.tsweb/agent/tools/and theToolEntrytype intool-types.tsdocs/tutorials/custom-agent-tool.mdcovering:ToolExecutorSkills needed: TypeScript, ability to read and understand existing code patterns
Reference files:
web/agent/tools/ls.tool.ts— simple tool exampleweb/agent/tools/tool-types.ts— type definitionsweb/agent/tools/switch-mode.tool.ts— another simple toolEstimated time: 3-4 hours