Tool generation
When to use
- •Changing tool generation logic or output
- •Adjusting OpenAPI parsing or operation lookup
- •Adding or changing composite tools
Steps
- •Update the relevant types in
src/types/profile.tsif tool definitions change. - •Modify
src/tool-generator.tsfor tool generation behavior. - •Modify
src/openapi-parser.tsfor operation lookup or parsing. - •For composite tools, update
src/composite-executor.tsand ensure steps use store_as and depends_on correctly. - •Update tests in
src/tool-generator.test.tsandsrc/composite-executor.test.ts.
Checks and tests
- •Run
npm run typecheckbefore finishing. - •Run
npm testwith a targeted pattern if needed.
Notes
- •Composite tools should use steps with
store_asanddepends_on. - •Use
partial_resultsonly if callers can handle partial output.