{"record":{"id":"1fd569e0c258a2d4","repo":"n8n-io/n8n","slug":"agent-listing-is-not-available-on-this-instance","errorCode":null,"errorMessage":"Agent listing is not available on this instance.","messagePattern":"Agent listing is not available on this instance\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/tools/agents.tool.ts","lineNumber":47,"sourceCode":"\t\t}),\n\t),\n});\n\nexport function createAgentsTool(context: OrchestrationContext) {\n\treturn new Tool(DOMAIN_TOOL_IDS.AGENTS)\n\t\t.description(\n\t\t\t'List the n8n Agent artifacts in this project — id, name, published state, and last ' +\n\t\t\t\t'update, most recently updated first. Use it to answer questions about existing ' +\n\t\t\t\t'agents and to find the `agentId` to pass to `build-agent` when the user wants to ' +\n\t\t\t\t'edit an agent that was not built in this conversation. Read-only; agents are ' +\n\t\t\t\t'created and edited via `build-agent`.',\n\t\t)\n\t\t.input(agentsInputSchema)\n\t\t.output(agentsOutputSchema)\n\t\t.handler(async () => {\n\t\t\tconst delegate = context.domainContext?.builderDelegate;\n\t\t\tif (!delegate) {\n\t\t\t\tthrow new Error('Agent listing is not available on this instance.');\n\t\t\t}\n\t\t\tconst agents = await delegate.listAgents();\n\t\t\treturn { count: agents.length, agents };\n\t\t})\n\t\t.build();\n}\n","sourceCodeStart":29,"sourceCodeEnd":54,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/tools/agents.tool.ts#L29-L54","documentation":"Error \"Agent listing is not available on this instance.\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/tools/agents.tool.ts:47 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-13T04:17:16.726Z"}