{"record":{"id":"7b255bda44566800","repo":"n8n-io/n8n","slug":"toolname-host-runner-does-not-support-inline-de","errorCode":null,"errorMessage":"${toolName} host runner does not support inline delegation without helpers.runInlineSubAgent from an Agent build.","messagePattern":"(.+?) host runner does not support inline delegation without helpers\\.runInlineSubAgent from an Agent build\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@n8n/agents/src/runtime/tools/delegate-sub-agent-tool.ts","lineNumber":807,"sourceCode":"\nfunction getChildCheckpointTarget(checkpoint: DelegateSubAgentContinuation) {\n\treturn {\n\t\tchildRunId: checkpoint.runId,\n\t\tchildToolCallId: checkpoint.toolCallId,\n\t\t...(checkpoint.threadId !== undefined ? { childThreadId: checkpoint.threadId } : {}),\n\t\t...(checkpoint.resumeContext !== undefined ? { resumeContext: checkpoint.resumeContext } : {}),\n\t};\n}\n\nfunction createRunnerHelpers(\n\tctx: ToolContext | InterruptibleToolContext,\n\trequest: DelegateSubAgentRequest,\n\tconfiguredToolName?: string,\n): DelegateSubAgentRunnerHelpers {\n\tconst toolName = configuredToolName ?? DELEGATE_SUB_AGENT_TOOL_NAME;\n\treturn {\n\t\trunInlineSubAgent: () => {\n\t\t\tthrow new Error(\n\t\t\t\t`${toolName} host runner does not support inline delegation without helpers.runInlineSubAgent from an Agent build.`,\n\t\t\t);\n\t\t},\n\t\temitChunk: createEmitChunkHelper(ctx, request),\n\t};\n}\n\nfunction isInterruptibleToolContext(\n\tctx: ToolContext | InterruptibleToolContext,\n): ctx is InterruptibleToolContext {\n\treturn 'suspend' in ctx;\n}\n\nasync function cascadeChildSuspension(\n\tctx: InterruptibleToolContext,\n\trequest: DelegateSubAgentRequest,\n\toutput: DelegateSubAgentToolOutput,\n): Promise<never> {","sourceCodeStart":789,"sourceCodeEnd":825,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/agents/src/runtime/tools/delegate-sub-agent-tool.ts#L789-L825","documentation":"Thrown by the default runInlineSubAgent helper returned from createRunnerHelpers. This helper is a stub that always throws, because true inline delegation requires the Agent build to wire the actual inline runner. When the host path (runSubAgent) is used without an Agent build, inline delegation is not available and this error surfaces if the child's provider or tool logic tries to use it.","triggerScenarios":"Using createDelegateSubAgentTool with a custom runSubAgent host runner (not registered via Agent), and the delegated child or its provider tools attempt to spawn an inline sub-agent via helpers.runInlineSubAgent(). The stub helper throws because no inline runner was wired.","commonSituations":"Building a standalone host runner integration (e.g. n8n's own runtime) that does not go through the Agent build pipeline. Testing delegate tools outside the Agent context. A child agent configured with resolveInlineSubAgentProviderTools but executed through a host runner that cannot provide inline children.","solutions":["Register the delegate tool via Agent.delegate() so the build wires a real inline runner.","If using a host runner, disable inline sub-agent provider tools (set resolveInlineSubAgentProviderTools to false or omit it).","Implement your own runInlineSubAgent in the helpers passed to runSubAgent if your host supports it."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Check whether you are using a host runner vs Agent build:\nconst usingHostRunner = options.runSubAgent !== undefined;\nconst needsInline = options.resolveInlineSubAgentProviderTools === true;\nif (usingHostRunner && needsInline) {\n  console.warn('Inline delegation not supported with host runner; disable resolveInlineSubAgentProviderTools');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Register delegate tools via Agent.delegate() to get full inline delegation support.","When using a host runner, set resolveInlineSubAgentProviderTools to false or omit it.","If your host supports inline children, implement runInlineSubAgent in the helpers object."],"tags":["delegate-tool","inline-delegation","host-runner","configuration"],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}