{"record":{"id":"1df45f4801db1637","repo":"serverless/serverless","slug":"agent-inspect-name-not-describable","errorCode":"AGENT_INSPECT_NAME_NOT_DESCRIBABLE","errorMessage":"Resource \"${name}\" (${resource.type}) is not describable -- its type isn't supported by \"serverless agent inspect\".","messagePattern":"Resource \"(.+?)\" \\((.+?)\\) is not describable -- its type isn't supported by \"serverless agent inspect\"\\.","errorType":"exception","errorClass":"ServerlessError","httpStatus":null,"severity":"error","filePath":"packages/serverless/lib/plugins/agent/lib/select.js","lineNumber":159,"sourceCode":"      const validIds = resources.map((r) => r.logicalId).sort()\n      throw new ServerlessError(\n        `Unknown --name \"${name}\". Valid logical IDs: ${validIds.join(', ')}.`,\n        'AGENT_INSPECT_UNKNOWN_NAME',\n      )\n    }\n    if (matches.length > 1) {\n      const candidates = matches\n        .map((r) => `${r.stack}/${r.logicalId}`)\n        .sort()\n        .join(', ')\n      throw new ServerlessError(\n        `Ambiguous --name \"${name}\": it matches resources in multiple stacks (${candidates}). This isn't yet disambiguable by stack; rename the conflicting resource or select by category/service instead.`,\n        'AGENT_INSPECT_AMBIGUOUS_NAME',\n      )\n    }\n    const resource = matches[0]\n    if (resource.category === 'other' || !resource.awsService) {\n      throw new ServerlessError(\n        `Resource \"${name}\" (${resource.type}) is not describable -- its type isn't supported by \"serverless agent inspect\".`,\n        'AGENT_INSPECT_NAME_NOT_DESCRIBABLE',\n      )\n    }\n    return resource\n  })\n}\n\n/**\n * Dedup rule (fixed by category, not by flag order): a function's IAM role\n * policies are inlined under the function only when functions are in the\n * RESOLVED selection and iam is NOT -- checked on the union of both axes, so\n * `--iam --functions` and `--functions --iam` (and `--functions\n * --aws-services iam`) all produce the identical decision.\n */\nfunction computeInlineFunctionRole(selected) {\n  const categories = new Set(selected.map((r) => r.category))\n  return categories.has('functions') && !categories.has('iam')","sourceCodeStart":141,"sourceCodeEnd":177,"githubUrl":"https://github.com/serverless/serverless/blob/b9d7ea51c8cce57cff1207964b9b71123673081f/packages/serverless/lib/plugins/agent/lib/select.js#L141-L177","documentation":"Error \"Resource \"${name}\" (${resource.type}) is not describable -- its type isn't supported by \"serverless agent inspect\".\" thrown in serverless/serverless.","triggerScenarios":"Thrown at packages/serverless/lib/plugins/agent/lib/select.js:159 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Choose a resource whose type is supported by 'serverless agent inspect', or inspect this resource via the AWS CLI/console directly."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b9d7ea51c8cce57cff1207964b9b71123673081f","analyzedAt":"2026-08-13T04:14:40.386Z","schemaVersion":2},"datasetVersion":"2026-08-13T09:17:06.757Z"}