Repository: pmcelhaney/counterfact
Pull request #213 (2022-09-27 00:56:00)

fix the way the context type is referenced


Patch:
diff --git a/src/typescript-generator/operation-type-coder.js b/src/typescript-generator/operation-type-coder.js
index 8092ad2..0fcf1b7 100644
--- a/src/typescript-generator/operation-type-coder.js
+++ b/src/typescript-generator/operation-type-coder.js
@@ -1,7 +1,6 @@
 import nodePath from "node:path";
 
 import { Coder } from "./coder.js";
-import { ToolsCoder } from "./tools-coder.js";
 import { SchemaTypeCoder } from "./schema-type-coder.js";
 import { ParametersTypeCoder } from "./parameters-type-coder.js";
 import { ResponseTypeCoder } from "./response-type-coder.js";
@@ -100,10 +99,7 @@ export class OperationTypeCoder extends Coder {
       this.requirement.get("responses")
     ).write(script);
 
-    return `({ query, path, header, body, context, tools }: { query: ${queryType}, path: ${pathType}, header: ${headerType}, body: ${bodyType}, context: ${contextImportName}, response: ${responseType}, tools: ${script.importType(
-      new ToolsCoder(),
-      "internal/tools.ts"
-    )}}) => ${this.responseTypes(
+    return `({ query, path, header, body, context }: { query: ${queryType}, path: ${pathType}, header: ${headerType}, body: ${bodyType}, context: typeof ${contextImportName}, response: ${responseType} }) => ${this.responseTypes(
       script
     )} | { status: 415, contentType: "text/plain", body: string }
     | void`;
diff --git a/src/typescript-generator/script.js b/src/typescript-generator/script.js
index d72f6b3..5f85307 100644
--- a/src/typescript-generator/script.js
+++ b/src/typescript-generator/script.js
@@ -105,7 +105,7 @@ export class Script {
     return this.import(coder, true);
   }
 
-  importDefault(coder, isType = true) {
+  importDefault(coder, isType = false) {
     return this.import(coder, isType, true);
   }
 


Test patch:
diff --git a/test/typescript-generator/__snapshots__/end-to-end.test.js.snap b/test/typescript-generator/__snapshots__/end-to-end.test.js.snap
index 35adaa4..5f54d63 100644
--- a/test/typescript-generator/__snapshots__/end-to-end.test.js.snap
+++ b/test/typescript-generator/__snapshots__/end-to-end.test.js.snap
@@ -45,14 +45,13 @@ Map {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1pet/post@[object Object]:true" => "HTTP_POST",
             "OperationTypeCoder@petstore.yaml#/paths/~1pet/put@[object Object]:true" => "HTTP_PUT",
-            "ContextCoder@petstore.yaml#/paths/~1pet/post@paths//$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1pet/post@paths//$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/Pet.ts:true:false" => "Pet",
-            "tools@internal/tools.ts:true:false" => "Tools",
-            "ContextCoder@petstore.yaml#/paths/~1pet/put@paths//$context.ts:true:true" => "Context2",
+            "ContextCoder@petstore.yaml#/paths/~1pet/put@paths//$context.ts:false:true" => "Context2",
           },
           "exports": Map {
             "HTTP_POST" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: Pet, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: Pet, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -69,7 +68,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Pet
@@ -95,7 +94,7 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_PUT" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: Pet, context: Context2, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: Pet, context: typeof Context2, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -122,7 +121,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Pet
@@ -171,7 +170,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -183,7 +182,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -292,49 +291,9 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
             "Context2" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -346,7 +305,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -379,14 +338,13 @@ Map {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1pet/post@[object Object]:true" => "HTTP_POST",
             "OperationTypeCoder@petstore.yaml#/paths/~1pet/put@[object Object]:true" => "HTTP_PUT",
-            "ContextCoder@petstore.yaml#/paths/~1pet/post@paths//$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1pet/post@paths//$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/Pet.ts:true:false" => "Pet",
-            "tools@internal/tools.ts:true:false" => "Tools",
-            "ContextCoder@petstore.yaml#/paths/~1pet/put@paths//$context.ts:true:true" => "Context2",
+            "ContextCoder@petstore.yaml#/paths/~1pet/put@paths//$context.ts:false:true" => "Context2",
           },
           "exports": Map {
             "HTTP_POST" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: Pet, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: Pet, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -403,7 +361,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Pet
@@ -429,7 +387,7 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_PUT" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: Pet, context: Context2, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: Pet, context: typeof Context2, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -456,7 +414,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Pet
@@ -505,7 +463,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -517,7 +475,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -626,49 +584,9 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
             "Context2" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -680,7 +598,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -717,14 +635,13 @@ Map {
     "cache": Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1pet/post@[object Object]:true" => "HTTP_POST",
       "OperationTypeCoder@petstore.yaml#/paths/~1pet/put@[object Object]:true" => "HTTP_PUT",
-      "ContextCoder@petstore.yaml#/paths/~1pet/post@paths//$context.ts:true:true" => "Context",
+      "ContextCoder@petstore.yaml#/paths/~1pet/post@paths//$context.ts:false:true" => "Context",
       "SchemaTypeCoder@undefined@components/Pet.ts:true:false" => "Pet",
-      "tools@internal/tools.ts:true:false" => "Tools",
-      "ContextCoder@petstore.yaml#/paths/~1pet/put@paths//$context.ts:true:true" => "Context2",
+      "ContextCoder@petstore.yaml#/paths/~1pet/put@paths//$context.ts:false:true" => "Context2",
     },
     "exports": Map {
       "HTTP_POST" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: Pet, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: Pet, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -741,7 +658,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Pet
@@ -767,7 +684,7 @@ Map {
         "typeDeclaration": "",
       },
       "HTTP_PUT" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: Pet, context: Context2, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: Pet, context: typeof Context2, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -794,7 +711,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Pet
@@ -843,7 +760,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -855,7 +772,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1pet/post",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -964,49 +881,9 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
       "Context2" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -1018,7 +895,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1pet/post",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -1070,13 +947,12 @@ Map {
         "script": Script {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1findByStatus/get@[object Object]:true" => "HTTP_GET",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get@paths/pet/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get@paths/pet/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/Pet.ts:true:false" => "Pet",
-            "tools@internal/tools.ts:true:false" => "Tools",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: {status?: string}, path: never, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: {status?: string}, path: never, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -1093,7 +969,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Array<Pet>
@@ -1132,7 +1008,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -1146,7 +1022,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -1255,46 +1131,6 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
           },
           "path": "path-types/pet/findByStatus.types.ts",
           "repository": Repository {
@@ -1315,13 +1151,12 @@ Map {
   "path-types/pet/findByStatus.types.ts" => Script {
     "cache": Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1pet~1findByStatus/get@[object Object]:true" => "HTTP_GET",
-      "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get@paths/pet/$context.ts:true:true" => "Context",
+      "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get@paths/pet/$context.ts:false:true" => "Context",
       "SchemaTypeCoder@undefined@components/Pet.ts:true:false" => "Pet",
-      "tools@internal/tools.ts:true:false" => "Tools",
     },
     "exports": Map {
       "HTTP_GET" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: {status?: string}, path: never, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: {status?: string}, path: never, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -1338,7 +1173,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Array<Pet>
@@ -1377,7 +1212,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -1391,7 +1226,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -1500,46 +1335,6 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
     },
     "path": "path-types/pet/findByStatus.types.ts",
     "repository": Repository {
@@ -1576,13 +1371,12 @@ Map {
         "script": Script {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1findByTags/get@[object Object]:true" => "HTTP_GET",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1findByTags/get@paths/pet/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1findByTags/get@paths/pet/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/Pet.ts:true:false" => "Pet",
-            "tools@internal/tools.ts:true:false" => "Tools",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: {tags?: Array<string>}, path: never, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: {tags?: Array<string>}, path: never, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -1599,7 +1393,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Array<Pet>
@@ -1638,7 +1432,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -1652,7 +1446,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -1761,46 +1555,6 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
           },
           "path": "path-types/pet/findByTags.types.ts",
           "repository": Repository {
@@ -1821,13 +1575,12 @@ Map {
   "path-types/pet/findByTags.types.ts" => Script {
     "cache": Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1pet~1findByTags/get@[object Object]:true" => "HTTP_GET",
-      "ContextCoder@petstore.yaml#/paths/~1pet~1findByTags/get@paths/pet/$context.ts:true:true" => "Context",
+      "ContextCoder@petstore.yaml#/paths/~1pet~1findByTags/get@paths/pet/$context.ts:false:true" => "Context",
       "SchemaTypeCoder@undefined@components/Pet.ts:true:false" => "Pet",
-      "tools@internal/tools.ts:true:false" => "Tools",
     },
     "exports": Map {
       "HTTP_GET" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: {tags?: Array<string>}, path: never, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: {tags?: Array<string>}, path: never, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -1844,7 +1597,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Array<Pet>
@@ -1883,7 +1636,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -1897,7 +1650,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -2006,46 +1759,6 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
     },
     "path": "path-types/pet/findByTags.types.ts",
     "repository": Repository {
@@ -2108,15 +1821,14 @@ Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/get@[object Object]:true" => "HTTP_GET",
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/post@[object Object]:true" => "HTTP_POST",
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@[object Object]:true" => "HTTP_DELETE",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/get@paths/pet/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/get@paths/pet/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/Pet.ts:true:false" => "Pet",
-            "tools@internal/tools.ts:true:false" => "Tools",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/post@paths/pet/$context.ts:true:true" => "Context2",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@paths/pet/$context.ts:true:true" => "Context3",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/post@paths/pet/$context.ts:false:true" => "Context2",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@paths/pet/$context.ts:false:true" => "Context3",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {petId: number}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {petId: number}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -2138,7 +1850,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Pet
@@ -2169,14 +1881,14 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_POST" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: {name?: number, status?: string}, path: {petId: number}, header: never, body: undefined, context: Context2, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: {name?: number, status?: string}, path: {petId: number}, header: never, body: undefined, context: typeof Context2, response: ResponseBuilderBuilder<{
       405: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 405, 
           
           
@@ -2192,14 +1904,14 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_DELETE" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {petId: string}, header: {api_key?: string}, body: undefined, context: Context3, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {petId: string}, header: {api_key?: string}, body: undefined, context: typeof Context3, response: ResponseBuilderBuilder<{
       400: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 400, 
           
           
@@ -2228,7 +1940,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -2242,7 +1954,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -2351,49 +2063,9 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
             "Context2" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -2407,7 +2079,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -2425,7 +2097,7 @@ Map {
             },
             "Context3" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -2439,7 +2111,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -2473,15 +2145,14 @@ Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/get@[object Object]:true" => "HTTP_GET",
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/post@[object Object]:true" => "HTTP_POST",
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@[object Object]:true" => "HTTP_DELETE",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/get@paths/pet/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/get@paths/pet/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/Pet.ts:true:false" => "Pet",
-            "tools@internal/tools.ts:true:false" => "Tools",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/post@paths/pet/$context.ts:true:true" => "Context2",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@paths/pet/$context.ts:true:true" => "Context3",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/post@paths/pet/$context.ts:false:true" => "Context2",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@paths/pet/$context.ts:false:true" => "Context3",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {petId: number}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {petId: number}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -2503,7 +2174,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Pet
@@ -2534,14 +2205,14 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_POST" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: {name?: number, status?: string}, path: {petId: number}, header: never, body: undefined, context: Context2, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: {name?: number, status?: string}, path: {petId: number}, header: never, body: undefined, context: typeof Context2, response: ResponseBuilderBuilder<{
       405: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 405, 
           
           
@@ -2557,14 +2228,14 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_DELETE" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {petId: string}, header: {api_key?: string}, body: undefined, context: Context3, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {petId: string}, header: {api_key?: string}, body: undefined, context: typeof Context3, response: ResponseBuilderBuilder<{
       400: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 400, 
           
           
@@ -2593,7 +2264,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -2607,7 +2278,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -2716,49 +2387,9 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
             "Context2" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -2772,7 +2403,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -2790,7 +2421,7 @@ Map {
             },
             "Context3" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -2804,7 +2435,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -2838,15 +2469,14 @@ Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/get@[object Object]:true" => "HTTP_GET",
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/post@[object Object]:true" => "HTTP_POST",
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@[object Object]:true" => "HTTP_DELETE",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/get@paths/pet/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/get@paths/pet/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/Pet.ts:true:false" => "Pet",
-            "tools@internal/tools.ts:true:false" => "Tools",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/post@paths/pet/$context.ts:true:true" => "Context2",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@paths/pet/$context.ts:true:true" => "Context3",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/post@paths/pet/$context.ts:false:true" => "Context2",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@paths/pet/$context.ts:false:true" => "Context3",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {petId: number}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {petId: number}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -2868,7 +2498,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Pet
@@ -2899,14 +2529,14 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_POST" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: {name?: number, status?: string}, path: {petId: number}, header: never, body: undefined, context: Context2, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: {name?: number, status?: string}, path: {petId: number}, header: never, body: undefined, context: typeof Context2, response: ResponseBuilderBuilder<{
       405: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 405, 
           
           
@@ -2922,14 +2552,14 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_DELETE" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {petId: string}, header: {api_key?: string}, body: undefined, context: Context3, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {petId: string}, header: {api_key?: string}, body: undefined, context: typeof Context3, response: ResponseBuilderBuilder<{
       400: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 400, 
           
           
@@ -2958,7 +2588,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -2972,7 +2602,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -3081,49 +2711,9 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
             "Context2" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -3137,7 +2727,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -3155,7 +2745,7 @@ Map {
             },
             "Context3" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -3169,7 +2759,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -3207,15 +2797,14 @@ Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/get@[object Object]:true" => "HTTP_GET",
       "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/post@[object Object]:true" => "HTTP_POST",
       "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@[object Object]:true" => "HTTP_DELETE",
-      "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/get@paths/pet/$context.ts:true:true" => "Context",
+      "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/get@paths/pet/$context.ts:false:true" => "Context",
       "SchemaTypeCoder@undefined@components/Pet.ts:true:false" => "Pet",
-      "tools@internal/tools.ts:true:false" => "Tools",
-      "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/post@paths/pet/$context.ts:true:true" => "Context2",
-      "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@paths/pet/$context.ts:true:true" => "Context3",
+      "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/post@paths/pet/$context.ts:false:true" => "Context2",
+      "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}/delete@paths/pet/$context.ts:false:true" => "Context3",
     },
     "exports": Map {
       "HTTP_GET" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: never, path: {petId: number}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: never, path: {petId: number}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -3237,7 +2826,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Pet
@@ -3268,14 +2857,14 @@ Map {
         "typeDeclaration": "",
       },
       "HTTP_POST" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: {name?: number, status?: string}, path: {petId: number}, header: never, body: undefined, context: Context2, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: {name?: number, status?: string}, path: {petId: number}, header: never, body: undefined, context: typeof Context2, response: ResponseBuilderBuilder<{
       405: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 405, 
           
           
@@ -3291,14 +2880,14 @@ Map {
         "typeDeclaration": "",
       },
       "HTTP_DELETE" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: never, path: {petId: string}, header: {api_key?: string}, body: undefined, context: Context3, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: never, path: {petId: string}, header: {api_key?: string}, body: undefined, context: typeof Context3, response: ResponseBuilderBuilder<{
       400: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 400, 
           
           
@@ -3327,7 +2916,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -3341,7 +2930,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -3450,49 +3039,9 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
       "Context2" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -3506,7 +3055,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -3524,7 +3073,7 @@ Map {
       },
       "Context3" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -3538,7 +3087,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -3590,13 +3139,12 @@ Map {
         "script": Script {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}~1uploadImage/post@[object Object]:true" => "HTTP_POST",
-            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}~1uploadImage/post@paths/pet/{petId}/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}~1uploadImage/post@paths/pet/{petId}/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/ApiResponse.ts:true:false" => "ApiResponse",
-            "tools@internal/tools.ts:true:false" => "Tools",
           },
           "exports": Map {
             "HTTP_POST" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: {additionalMetadata?: number}, path: {petId: number}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: {additionalMetadata?: number}, path: {petId: number}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -3605,7 +3153,7 @@ Map {
             }
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/json\\",
           body?: ApiResponse
@@ -3634,7 +3182,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -3648,7 +3196,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}~1uploadImage/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -3694,46 +3242,6 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
           },
           "path": "path-types/pet/{petId}/uploadImage.types.ts",
           "repository": Repository {
@@ -3754,13 +3262,12 @@ Map {
   "path-types/pet/{petId}/uploadImage.types.ts" => Script {
     "cache": Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1pet~1{petId}~1uploadImage/post@[object Object]:true" => "HTTP_POST",
-      "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}~1uploadImage/post@paths/pet/{petId}/$context.ts:true:true" => "Context",
+      "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}~1uploadImage/post@paths/pet/{petId}/$context.ts:false:true" => "Context",
       "SchemaTypeCoder@undefined@components/ApiResponse.ts:true:false" => "ApiResponse",
-      "tools@internal/tools.ts:true:false" => "Tools",
     },
     "exports": Map {
       "HTTP_POST" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: {additionalMetadata?: number}, path: {petId: number}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: {additionalMetadata?: number}, path: {petId: number}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -3769,7 +3276,7 @@ Map {
             }
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/json\\",
           body?: ApiResponse
@@ -3798,7 +3305,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -3812,7 +3319,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}~1uploadImage/post",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -3858,46 +3365,6 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
     },
     "path": "path-types/pet/{petId}/uploadImage.types.ts",
     "repository": Repository {
@@ -3934,12 +3401,11 @@ Map {
         "script": Script {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1store~1inventory/get@[object Object]:true" => "HTTP_GET",
-            "ContextCoder@petstore.yaml#/paths/~1store~1inventory/get@paths/store/$context.ts:true:true" => "Context",
-            "tools@internal/tools.ts:true:false" => "Tools",
+            "ContextCoder@petstore.yaml#/paths/~1store~1inventory/get@paths/store/$context.ts:false:true" => "Context",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -3948,7 +3414,7 @@ Map {
             }
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/json\\",
           body?: {[key: string]: number}
@@ -3977,7 +3443,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -3991,7 +3457,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1store~1inventory/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -4007,46 +3473,6 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
           },
           "path": "path-types/store/inventory.types.ts",
           "repository": Repository {
@@ -4067,12 +3493,11 @@ Map {
   "path-types/store/inventory.types.ts" => Script {
     "cache": Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1store~1inventory/get@[object Object]:true" => "HTTP_GET",
-      "ContextCoder@petstore.yaml#/paths/~1store~1inventory/get@paths/store/$context.ts:true:true" => "Context",
-      "tools@internal/tools.ts:true:false" => "Tools",
+      "ContextCoder@petstore.yaml#/paths/~1store~1inventory/get@paths/store/$context.ts:false:true" => "Context",
     },
     "exports": Map {
       "HTTP_GET" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -4081,7 +3506,7 @@ Map {
             }
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/json\\",
           body?: {[key: string]: number}
@@ -4110,7 +3535,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -4124,7 +3549,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1store~1inventory/get",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -4140,46 +3565,6 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
     },
     "path": "path-types/store/inventory.types.ts",
     "repository": Repository {
@@ -4216,13 +3601,12 @@ Map {
         "script": Script {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1store~1order/post@[object Object]:true" => "HTTP_POST",
-            "ContextCoder@petstore.yaml#/paths/~1store~1order/post@paths/store/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1store~1order/post@paths/store/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/Order.ts:true:false" => "Order",
-            "tools@internal/tools.ts:true:false" => "Tools",
           },
           "exports": Map {
             "HTTP_POST" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: Order, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: Order, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -4236,7 +3620,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/json\\",
           body?: Order
@@ -4270,7 +3654,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -4284,7 +3668,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1store~1inventory/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -4330,46 +3714,6 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
           },
           "path": "path-types/store/order.types.ts",
           "repository": Repository {
@@ -4390,13 +3734,12 @@ Map {
   "path-types/store/order.types.ts" => Script {
     "cache": Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1store~1order/post@[object Object]:true" => "HTTP_POST",
-      "ContextCoder@petstore.yaml#/paths/~1store~1order/post@paths/store/$context.ts:true:true" => "Context",
+      "ContextCoder@petstore.yaml#/paths/~1store~1order/post@paths/store/$context.ts:false:true" => "Context",
       "SchemaTypeCoder@undefined@components/Order.ts:true:false" => "Order",
-      "tools@internal/tools.ts:true:false" => "Tools",
     },
     "exports": Map {
       "HTTP_POST" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: Order, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: Order, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -4410,7 +3753,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/json\\",
           body?: Order
@@ -4444,7 +3787,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -4458,7 +3801,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1store~1inventory/get",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -4504,46 +3847,6 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
     },
     "path": "path-types/store/order.types.ts",
     "repository": Repository {
@@ -4593,14 +3896,13 @@ Map {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get@[object Object]:true" => "HTTP_GET",
             "OperationTypeCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/delete@[object Object]:true" => "HTTP_DELETE",
-            "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get@paths/store/order/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get@paths/store/order/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/Order.ts:true:false" => "Order",
-            "tools@internal/tools.ts:true:false" => "Tools",
-            "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/delete@paths/store/order/$context.ts:true:true" => "Context2",
+            "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/delete@paths/store/order/$context.ts:false:true" => "Context2",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {orderId: number}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {orderId: number}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -4622,7 +3924,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Order
@@ -4653,7 +3955,7 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_DELETE" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {orderId: number}, header: never, body: undefined, context: Context2, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {orderId: number}, header: never, body: undefined, context: typeof Context2, response: ResponseBuilderBuilder<{
       400: {
           headers: {};
           content: {
@@ -4665,7 +3967,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 400, 
           
           
@@ -4699,7 +4001,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -4713,7 +4015,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -4759,49 +4061,9 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
             "Context2" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -4815,7 +4077,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -4848,14 +4110,13 @@ Map {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get@[object Object]:true" => "HTTP_GET",
             "OperationTypeCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/delete@[object Object]:true" => "HTTP_DELETE",
-            "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get@paths/store/order/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get@paths/store/order/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/Order.ts:true:false" => "Order",
-            "tools@internal/tools.ts:true:false" => "Tools",
-            "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/delete@paths/store/order/$context.ts:true:true" => "Context2",
+            "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/delete@paths/store/order/$context.ts:false:true" => "Context2",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {orderId: number}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {orderId: number}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -4877,7 +4138,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Order
@@ -4908,7 +4169,7 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_DELETE" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {orderId: number}, header: never, body: undefined, context: Context2, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {orderId: number}, header: never, body: undefined, context: typeof Context2, response: ResponseBuilderBuilder<{
       400: {
           headers: {};
           content: {
@@ -4920,7 +4181,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 400, 
           
           
@@ -4954,7 +4215,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -4968,7 +4229,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -5014,49 +4275,9 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
             "Context2" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -5070,7 +4291,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -5107,14 +4328,13 @@ Map {
     "cache": Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get@[object Object]:true" => "HTTP_GET",
       "OperationTypeCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/delete@[object Object]:true" => "HTTP_DELETE",
-      "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get@paths/store/order/$context.ts:true:true" => "Context",
+      "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get@paths/store/order/$context.ts:false:true" => "Context",
       "SchemaTypeCoder@undefined@components/Order.ts:true:false" => "Order",
-      "tools@internal/tools.ts:true:false" => "Tools",
-      "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/delete@paths/store/order/$context.ts:true:true" => "Context2",
+      "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/delete@paths/store/order/$context.ts:false:true" => "Context2",
     },
     "exports": Map {
       "HTTP_GET" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: never, path: {orderId: number}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: never, path: {orderId: number}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -5136,7 +4356,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: Order
@@ -5167,7 +4387,7 @@ Map {
         "typeDeclaration": "",
       },
       "HTTP_DELETE" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: never, path: {orderId: number}, header: never, body: undefined, context: Context2, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: never, path: {orderId: number}, header: never, body: undefined, context: typeof Context2, response: ResponseBuilderBuilder<{
       400: {
           headers: {};
           content: {
@@ -5179,7 +4399,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 400, 
           
           
@@ -5213,7 +4433,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -5227,7 +4447,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -5273,49 +4493,9 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
       "Context2" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -5329,7 +4509,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -5381,13 +4561,12 @@ Map {
         "script": Script {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1user/post@[object Object]:true" => "HTTP_POST",
-            "ContextCoder@petstore.yaml#/paths/~1user/post@paths//$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1user/post@paths//$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/User.ts:true:false" => "User",
-            "tools@internal/tools.ts:true:false" => "Tools",
           },
           "exports": Map {
             "HTTP_POST" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: User, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: User, context: typeof Context, response: ResponseBuilderBuilder<{
       [statusCode in HttpStatusCode]: {
           headers: {};
           content: {
@@ -5399,7 +4578,7 @@ Map {
             }
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: number | undefined, 
           contentType?: \\"application/json\\",
           body?: User
@@ -5433,7 +4612,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -5445,7 +4624,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1pet/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -5491,46 +4670,6 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
           },
           "path": "path-types/user.types.ts",
           "repository": Repository {
@@ -5551,13 +4690,12 @@ Map {
   "path-types/user.types.ts" => Script {
     "cache": Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1user/post@[object Object]:true" => "HTTP_POST",
-      "ContextCoder@petstore.yaml#/paths/~1user/post@paths//$context.ts:true:true" => "Context",
+      "ContextCoder@petstore.yaml#/paths/~1user/post@paths//$context.ts:false:true" => "Context",
       "SchemaTypeCoder@undefined@components/User.ts:true:false" => "User",
-      "tools@internal/tools.ts:true:false" => "Tools",
     },
     "exports": Map {
       "HTTP_POST" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: User, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: User, context: typeof Context, response: ResponseBuilderBuilder<{
       [statusCode in HttpStatusCode]: {
           headers: {};
           content: {
@@ -5569,7 +4707,7 @@ Map {
             }
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: number | undefined, 
           contentType?: \\"application/json\\",
           body?: User
@@ -5603,7 +4741,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -5615,7 +4753,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1pet/post",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -5661,46 +4799,6 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
     },
     "path": "path-types/user.types.ts",
     "repository": Repository {
@@ -5737,13 +4835,12 @@ Map {
         "script": Script {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1createWithList/post@[object Object]:true" => "HTTP_POST",
-            "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post@paths/user/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post@paths/user/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/User.ts:true:false" => "User",
-            "tools@internal/tools.ts:true:false" => "Tools",
           },
           "exports": Map {
             "HTTP_POST" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: Array<User>, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: Array<User>, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -5760,7 +4857,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: User
@@ -5799,7 +4896,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -5813,7 +4910,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -5859,46 +4956,6 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
           },
           "path": "path-types/user/createWithList.types.ts",
           "repository": Repository {
@@ -5919,13 +4976,12 @@ Map {
   "path-types/user/createWithList.types.ts" => Script {
     "cache": Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1user~1createWithList/post@[object Object]:true" => "HTTP_POST",
-      "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post@paths/user/$context.ts:true:true" => "Context",
+      "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post@paths/user/$context.ts:false:true" => "Context",
       "SchemaTypeCoder@undefined@components/User.ts:true:false" => "User",
-      "tools@internal/tools.ts:true:false" => "Tools",
     },
     "exports": Map {
       "HTTP_POST" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: undefined, path: undefined, header: undefined, body: Array<User>, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: undefined, path: undefined, header: undefined, body: Array<User>, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -5942,7 +4998,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: User
@@ -5981,7 +5037,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -5995,7 +5051,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -6041,46 +5097,6 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
     },
     "path": "path-types/user/createWithList.types.ts",
     "repository": Repository {
@@ -6117,12 +5133,11 @@ Map {
         "script": Script {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1login/get@[object Object]:true" => "HTTP_GET",
-            "ContextCoder@petstore.yaml#/paths/~1user~1login/get@paths/user/$context.ts:true:true" => "Context",
-            "tools@internal/tools.ts:true:false" => "Tools",
+            "ContextCoder@petstore.yaml#/paths/~1user~1login/get@paths/user/$context.ts:false:true" => "Context",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: {username?: string, password?: string}, path: never, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: {username?: string, password?: string}, path: never, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {\\"X-Rate-Limit\\": { schema: number};\\"X-Expires-After\\": { schema: string}};
           content: {
@@ -6139,7 +5154,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: string
@@ -6178,7 +5193,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -6192,7 +5207,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -6208,46 +5223,6 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
           },
           "path": "path-types/user/login.types.ts",
           "repository": Repository {
@@ -6268,12 +5243,11 @@ Map {
   "path-types/user/login.types.ts" => Script {
     "cache": Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1user~1login/get@[object Object]:true" => "HTTP_GET",
-      "ContextCoder@petstore.yaml#/paths/~1user~1login/get@paths/user/$context.ts:true:true" => "Context",
-      "tools@internal/tools.ts:true:false" => "Tools",
+      "ContextCoder@petstore.yaml#/paths/~1user~1login/get@paths/user/$context.ts:false:true" => "Context",
     },
     "exports": Map {
       "HTTP_GET" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: {username?: string, password?: string}, path: never, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: {username?: string, password?: string}, path: never, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {\\"X-Rate-Limit\\": { schema: number};\\"X-Expires-After\\": { schema: string}};
           content: {
@@ -6290,7 +5264,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: string
@@ -6329,7 +5303,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -6338,60 +5312,20 @@ Map {
           "exports": Map {
             "Context" => Object {
               "code": Object {
-                "raw": "export { default } from \\"../$context.js\\"",
-              },
-              "done": true,
-              "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
-              "isDefault": true,
-              "isType": true,
-              "name": "Context",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {},
-          "imports": Map {},
-          "path": "paths/user/$context.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
+                "raw": "export { default } from \\"../$context.js\\"",
+              },
               "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
+              "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
+              "isDefault": true,
+              "isType": false,
+              "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
             },
           },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
+          "externalImports": Map {},
           "imports": Map {},
-          "path": "internal/tools.ts",
+          "path": "paths/user/$context.ts",
           "repository": Repository {
             "scripts": [Circular],
             "writeFiles": [Function],
@@ -6433,19 +5367,18 @@ Map {
         "script": Script {
           "cache": Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1logout/get@[object Object]:true" => "HTTP_GET",
-            "ContextCoder@petstore.yaml#/paths/~1user~1logout/get@paths/user/$context.ts:true:true" => "Context",
-            "tools@internal/tools.ts:true:false" => "Tools",
+            "ContextCoder@petstore.yaml#/paths/~1user~1logout/get@paths/user/$context.ts:false:true" => "Context",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: never, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: never, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       [statusCode in HttpStatusCode]: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: number | undefined, 
           
           
@@ -6474,7 +5407,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -6488,7 +5421,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -6504,46 +5437,6 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
           },
           "path": "path-types/user/logout.types.ts",
           "repository": Repository {
@@ -6564,19 +5457,18 @@ Map {
   "path-types/user/logout.types.ts" => Script {
     "cache": Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1user~1logout/get@[object Object]:true" => "HTTP_GET",
-      "ContextCoder@petstore.yaml#/paths/~1user~1logout/get@paths/user/$context.ts:true:true" => "Context",
-      "tools@internal/tools.ts:true:false" => "Tools",
+      "ContextCoder@petstore.yaml#/paths/~1user~1logout/get@paths/user/$context.ts:false:true" => "Context",
     },
     "exports": Map {
       "HTTP_GET" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: never, path: never, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: never, path: never, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       [statusCode in HttpStatusCode]: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: number | undefined, 
           
           
@@ -6605,7 +5497,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -6619,7 +5511,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -6635,46 +5527,6 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
     },
     "path": "path-types/user/logout.types.ts",
     "repository": Repository {
@@ -6737,15 +5589,14 @@ Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/get@[object Object]:true" => "HTTP_GET",
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/put@[object Object]:true" => "HTTP_PUT",
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/delete@[object Object]:true" => "HTTP_DELETE",
-            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/get@paths/user/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/get@paths/user/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/User.ts:true:false" => "User",
-            "tools@internal/tools.ts:true:false" => "Tools",
-            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/put@paths/user/$context.ts:true:true" => "Context2",
-            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/delete@paths/user/$context.ts:true:true" => "Context3",
+            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/put@paths/user/$context.ts:false:true" => "Context2",
+            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/delete@paths/user/$context.ts:false:true" => "Context3",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -6767,7 +5618,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: User
@@ -6798,14 +5649,14 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_PUT" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: User, context: Context2, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: User, context: typeof Context2, response: ResponseBuilderBuilder<{
       [statusCode in HttpStatusCode]: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: number | undefined, 
           
           
@@ -6821,7 +5672,7 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_DELETE" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: undefined, context: Context3, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: undefined, context: typeof Context3, response: ResponseBuilderBuilder<{
       400: {
           headers: {};
           content: {
@@ -6833,7 +5684,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 400, 
           
           
@@ -6867,7 +5718,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -6881,7 +5732,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -6927,49 +5778,9 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
             "Context2" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -6983,7 +5794,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -7001,7 +5812,7 @@ Map {
             },
             "Context3" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -7015,7 +5826,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -7049,15 +5860,14 @@ Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/get@[object Object]:true" => "HTTP_GET",
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/put@[object Object]:true" => "HTTP_PUT",
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/delete@[object Object]:true" => "HTTP_DELETE",
-            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/get@paths/user/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/get@paths/user/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/User.ts:true:false" => "User",
-            "tools@internal/tools.ts:true:false" => "Tools",
-            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/put@paths/user/$context.ts:true:true" => "Context2",
-            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/delete@paths/user/$context.ts:true:true" => "Context3",
+            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/put@paths/user/$context.ts:false:true" => "Context2",
+            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/delete@paths/user/$context.ts:false:true" => "Context3",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -7079,7 +5889,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: User
@@ -7110,14 +5920,14 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_PUT" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: User, context: Context2, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: User, context: typeof Context2, response: ResponseBuilderBuilder<{
       [statusCode in HttpStatusCode]: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: number | undefined, 
           
           
@@ -7133,7 +5943,7 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_DELETE" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: undefined, context: Context3, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: undefined, context: typeof Context3, response: ResponseBuilderBuilder<{
       400: {
           headers: {};
           content: {
@@ -7145,7 +5955,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 400, 
           
           
@@ -7179,7 +5989,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -7193,7 +6003,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -7239,49 +6049,9 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
             "Context2" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -7295,7 +6065,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -7313,7 +6083,7 @@ Map {
             },
             "Context3" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -7327,7 +6097,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -7361,15 +6131,14 @@ Map {
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/get@[object Object]:true" => "HTTP_GET",
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/put@[object Object]:true" => "HTTP_PUT",
             "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/delete@[object Object]:true" => "HTTP_DELETE",
-            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/get@paths/user/$context.ts:true:true" => "Context",
+            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/get@paths/user/$context.ts:false:true" => "Context",
             "SchemaTypeCoder@undefined@components/User.ts:true:false" => "User",
-            "tools@internal/tools.ts:true:false" => "Tools",
-            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/put@paths/user/$context.ts:true:true" => "Context2",
-            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/delete@paths/user/$context.ts:true:true" => "Context3",
+            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/put@paths/user/$context.ts:false:true" => "Context2",
+            "ContextCoder@petstore.yaml#/paths/~1user~1{username}/delete@paths/user/$context.ts:false:true" => "Context3",
           },
           "exports": Map {
             "HTTP_GET" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -7391,7 +6160,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: User
@@ -7422,14 +6191,14 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_PUT" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: User, context: Context2, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: User, context: typeof Context2, response: ResponseBuilderBuilder<{
       [statusCode in HttpStatusCode]: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: number | undefined, 
           
           
@@ -7445,7 +6214,7 @@ Map {
               "typeDeclaration": "",
             },
             "HTTP_DELETE" => Object {
-              "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: undefined, context: Context3, response: ResponseBuilderBuilder<{
+              "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: undefined, context: typeof Context3, response: ResponseBuilderBuilder<{
       400: {
           headers: {};
           content: {
@@ -7457,7 +6226,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 400, 
           
           
@@ -7491,7 +6260,7 @@ Map {
           "imports": Map {
             "Context" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -7505,7 +6274,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -7551,49 +6320,9 @@ Map {
                 "typeCache": Map {},
               },
             },
-            "Tools" => Object {
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "script": Script {
-                "cache": Map {
-                  "tools@[object Object]:true" => "Tools",
-                },
-                "exports": Map {
-                  "Tools" => Object {
-                    "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-                    "done": true,
-                    "id": "tools",
-                    "isDefault": false,
-                    "isType": true,
-                    "name": "Tools",
-                    "promise": Promise {},
-                    "typeDeclaration": "",
-                  },
-                },
-                "externalImports": Map {
-                  "JSONSchema6" => Object {
-                    "isType": false,
-                    "modulePath": "json-schema",
-                  },
-                },
-                "imports": Map {},
-                "path": "internal/tools.ts",
-                "repository": Repository {
-                  "scripts": [Circular],
-                  "writeFiles": [Function],
-                },
-                "typeCache": Map {},
-              },
-            },
             "Context2" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -7607,7 +6336,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -7625,7 +6354,7 @@ Map {
             },
             "Context3" => Object {
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "script": Script {
                 "cache": Map {
@@ -7639,7 +6368,7 @@ Map {
                     "done": true,
                     "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
                     "isDefault": true,
-                    "isType": true,
+                    "isType": false,
                     "name": "Context",
                     "promise": Promise {},
                     "typeDeclaration": "",
@@ -7677,15 +6406,14 @@ Map {
       "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/get@[object Object]:true" => "HTTP_GET",
       "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/put@[object Object]:true" => "HTTP_PUT",
       "OperationTypeCoder@petstore.yaml#/paths/~1user~1{username}/delete@[object Object]:true" => "HTTP_DELETE",
-      "ContextCoder@petstore.yaml#/paths/~1user~1{username}/get@paths/user/$context.ts:true:true" => "Context",
+      "ContextCoder@petstore.yaml#/paths/~1user~1{username}/get@paths/user/$context.ts:false:true" => "Context",
       "SchemaTypeCoder@undefined@components/User.ts:true:false" => "User",
-      "tools@internal/tools.ts:true:false" => "Tools",
-      "ContextCoder@petstore.yaml#/paths/~1user~1{username}/put@paths/user/$context.ts:true:true" => "Context2",
-      "ContextCoder@petstore.yaml#/paths/~1user~1{username}/delete@paths/user/$context.ts:true:true" => "Context3",
+      "ContextCoder@petstore.yaml#/paths/~1user~1{username}/put@paths/user/$context.ts:false:true" => "Context2",
+      "ContextCoder@petstore.yaml#/paths/~1user~1{username}/delete@paths/user/$context.ts:false:true" => "Context3",
     },
     "exports": Map {
       "HTTP_GET" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: undefined, context: Context, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: undefined, context: typeof Context, response: ResponseBuilderBuilder<{
       200: {
           headers: {};
           content: {
@@ -7707,7 +6435,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 200, 
           contentType?: \\"application/xml\\",
           body?: User
@@ -7738,14 +6466,14 @@ Map {
         "typeDeclaration": "",
       },
       "HTTP_PUT" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: User, context: Context2, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: User, context: typeof Context2, response: ResponseBuilderBuilder<{
       [statusCode in HttpStatusCode]: {
           headers: {};
           content: {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: number | undefined, 
           
           
@@ -7761,7 +6489,7 @@ Map {
         "typeDeclaration": "",
       },
       "HTTP_DELETE" => Object {
-        "code": "({ query, path, header, body, context, tools }: { query: never, path: {username: string}, header: never, body: undefined, context: Context3, response: ResponseBuilderBuilder<{
+        "code": "({ query, path, header, body, context }: { query: never, path: {username: string}, header: never, body: undefined, context: typeof Context3, response: ResponseBuilderBuilder<{
       400: {
           headers: {};
           content: {
@@ -7773,7 +6501,7 @@ Map {
       
     };
         }
-      }>, tools: Tools}) => {  
+      }> }) => {  
             status: 400, 
           
           
@@ -7807,7 +6535,7 @@ Map {
     "imports": Map {
       "Context" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -7821,7 +6549,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -7867,49 +6595,9 @@ Map {
           "typeCache": Map {},
         },
       },
-      "Tools" => Object {
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "script": Script {
-          "cache": Map {
-            "tools@[object Object]:true" => "Tools",
-          },
-          "exports": Map {
-            "Tools" => Object {
-              "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-              "done": true,
-              "id": "tools",
-              "isDefault": false,
-              "isType": true,
-              "name": "Tools",
-              "promise": Promise {},
-              "typeDeclaration": "",
-            },
-          },
-          "externalImports": Map {
-            "JSONSchema6" => Object {
-              "isType": false,
-              "modulePath": "json-schema",
-            },
-          },
-          "imports": Map {},
-          "path": "internal/tools.ts",
-          "repository": Repository {
-            "scripts": [Circular],
-            "writeFiles": [Function],
-          },
-          "typeCache": Map {},
-        },
-      },
       "Context2" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -7923,7 +6611,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -7941,7 +6629,7 @@ Map {
       },
       "Context3" => Object {
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "script": Script {
           "cache": Map {
@@ -7955,7 +6643,7 @@ Map {
               "done": true,
               "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
               "isDefault": true,
-              "isType": true,
+              "isType": false,
               "name": "Context",
               "promise": Promise {},
               "typeDeclaration": "",
@@ -7989,7 +6677,7 @@ Map {
         "done": true,
         "id": "ContextCoder@petstore.yaml#/paths/~1pet/post",
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "promise": Promise {},
         "typeDeclaration": "",
@@ -8092,41 +6780,6 @@ Map {
     },
     "typeCache": Map {},
   },
-  "internal/tools.ts" => Script {
-    "cache": Map {
-      "tools@[object Object]:true" => "Tools",
-    },
-    "exports": Map {
-      "Tools" => Object {
-        "code": "
-    {
-        oneOf: (array: string[]) => string;
-        randomFromSchema: (schema: JSONSchema6 ) => unknown;
-        accepts: (contentType: string) => boolean;
-    }",
-        "done": true,
-        "id": "tools",
-        "isDefault": false,
-        "isType": true,
-        "name": "Tools",
-        "promise": Promise {},
-        "typeDeclaration": "",
-      },
-    },
-    "externalImports": Map {
-      "JSONSchema6" => Object {
-        "isType": false,
-        "modulePath": "json-schema",
-      },
-    },
-    "imports": Map {},
-    "path": "internal/tools.ts",
-    "repository": Repository {
-      "scripts": [Circular],
-      "writeFiles": [Function],
-    },
-    "typeCache": Map {},
-  },
   "paths/pet/$context.ts" => Script {
     "cache": Map {
       "default" => "Context",
@@ -8139,7 +6792,7 @@ Map {
         "done": true,
         "id": "ContextCoder@petstore.yaml#/paths/~1pet~1findByStatus/get",
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "promise": Promise {},
         "typeDeclaration": "",
@@ -8166,7 +6819,7 @@ Map {
         "done": true,
         "id": "ContextCoder@petstore.yaml#/paths/~1pet~1{petId}~1uploadImage/post",
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "promise": Promise {},
         "typeDeclaration": "",
@@ -8218,7 +6871,7 @@ Map {
         "done": true,
         "id": "ContextCoder@petstore.yaml#/paths/~1store~1inventory/get",
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "promise": Promise {},
         "typeDeclaration": "",
@@ -8270,7 +6923,7 @@ Map {
         "done": true,
         "id": "ContextCoder@petstore.yaml#/paths/~1store~1order~1{orderId}/get",
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "promise": Promise {},
         "typeDeclaration": "",
@@ -8322,7 +6975,7 @@ Map {
         "done": true,
         "id": "ContextCoder@petstore.yaml#/paths/~1user~1createWithList/post",
         "isDefault": true,
-        "isType": true,
+        "isType": false,
         "name": "Context",
         "promise": Promise {},
         "typeDeclaration": "",
diff --git a/test/typescript-generator/__snapshots__/operation-type-coder.test.js.snap b/test/typescript-generator/__snapshots__/operation-type-coder.test.js.snap
index 683ef9c..afb7a21 100644
--- a/test/typescript-generator/__snapshots__/operation-type-coder.test.js.snap
+++ b/test/typescript-generator/__snapshots__/operation-type-coder.test.js.snap
@@ -7,13 +7,12 @@ exports[`an OperationTypeCoder generates a complex post operation 1`] = `
   header,
   body,
   context,
-  tools,
 }: {
   query: { name?: string };
   path: { id?: string };
   header: { name?: string };
   body: Type;
-  context: default;
+  context: typeof default;
   response: ResponseBuilderBuilder<{
     200: {
       headers: {};
@@ -40,7 +39,6 @@ exports[`an OperationTypeCoder generates a complex post operation 1`] = `
       };
     };
   }>;
-  tools: Type;
 }) =>
   | {
       status: 200;
@@ -69,13 +67,12 @@ exports[`an OperationTypeCoder generates a simple get operation 1`] = `
   header,
   body,
   context,
-  tools,
 }: {
   query: undefined;
   path: undefined;
   header: undefined;
   body: undefined;
-  context: default;
+  context: typeof default;
   response: ResponseBuilderBuilder<{
     [statusCode in HttpStatusCode]: {
       headers: {};
@@ -86,7 +83,6 @@ exports[`an OperationTypeCoder generates a simple get operation 1`] = `
       };
     };
   }>;
-  tools: Type;
 }) =>
   | {
       status: number | undefined;
diff --git a/test/typescript-generator/script.test.js b/test/typescript-generator/script.test.js
index e24e6b3..3b23c60 100644
--- a/test/typescript-generator/script.test.js
+++ b/test/typescript-generator/script.test.js
@@ -95,7 +95,7 @@ describe("a Script", () => {
     expect(script.importStatements()).toStrictEqual([
       'import { Account0 } from "./export-from-me.js";',
       'import type { Account1 } from "./export-from-me.js";',
-      'import type Account2 from "./export-from-me.js";',
+      'import Account2 from "./export-from-me.js";',
     ]);
   });