{"record":{"id":"5706870b6bde173d","repo":"n8n-io/n8n","slug":"node-type-not-found","errorCode":"NODE_TYPE_NOT_FOUND","errorMessage":"Node type \"${nodeType}\" not found","messagePattern":"Node type \"(.+?)\" not found","errorType":"error_code","errorClass":"NodeTypeNotFoundError","httpStatus":null,"severity":"error","filePath":"packages/@n8n/ai-workflow-builder.ee/src/tools/add-node.tool.ts","lineNumber":198,"sourceCode":"\t\t\t\t} = validatedInput;\n\n\t\t\t\t// Report tool start\n\t\t\t\treporter.start(validatedInput);\n\n\t\t\t\t// Get current state\n\t\t\t\tconst state = getWorkflowState();\n\t\t\t\tconst workflow = getCurrentWorkflow(state);\n\n\t\t\t\t// Report progress with reasoning\n\t\t\t\treporter.progress(`Adding ${name} (${initialParametersReasoning})`);\n\n\t\t\t\t// Find the node type\n\t\t\t\tconst nodeTypeDesc = findNodeType(nodeType, nodeVersion, nodeTypes);\n\t\t\t\tif (!nodeTypeDesc) {\n\t\t\t\t\tconst nodeError = new NodeTypeNotFoundError(nodeType);\n\t\t\t\t\tconst error = {\n\t\t\t\t\t\tmessage: nodeError.message,\n\t\t\t\t\t\tcode: 'NODE_TYPE_NOT_FOUND',\n\t\t\t\t\t\tdetails: { nodeType },\n\t\t\t\t\t};\n\t\t\t\t\treporter.error(error);\n\t\t\t\t\treturn createErrorResponse(config, error);\n\t\t\t\t}\n\n\t\t\t\t// Create the new node (id will be undefined in production, defined in E2E if provided)\n\t\t\t\tconst newNode = createNode(\n\t\t\t\t\tnodeTypeDesc,\n\t\t\t\t\tnodeVersion,\n\t\t\t\t\tname,\n\t\t\t\t\tworkflow.nodes, // Use current workflow nodes\n\t\t\t\t\tnodeTypes,\n\t\t\t\t\tinitialParameters as INodeParameters,\n\t\t\t\t\tid,\n\t\t\t\t\tnodeSettings,\n\t\t\t\t);\n","sourceCodeStart":180,"sourceCodeEnd":216,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/ai-workflow-builder.ee/src/tools/add-node.tool.ts#L180-L216","documentation":"Error \"Node type \"${nodeType}\" not found\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/ai-workflow-builder.ee/src/tools/add-node.tool.ts:198 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}