depguard_sbom
Generate a CycloneDX 1.
Instructions
Generate a CycloneDX 1.6 Software Bill of Materials (SBOM) for an npm project. Reads package.json + lock file to enumerate direct + transitive components with PURLs and integrity hashes. Set includeVex=true to embed vulnerability data (VEX) from the audit pipeline. Use this when the user asks for an SBOM, a compliance report, or to comply with EU CRA / US EO 14028 requirements.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "depguard_sbom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to package.json file | |
| includeVex | No | Include vulnerability data (VEX section). Default: false. Slower because it runs auditProject under the hood. | |
| targetLicense | No | Project license for compatibility check when includeVex is true (default: MIT) | |
| includeDevDependencies | No | Include devDependencies in the dependency graph (default: false) |