get_cwe_ancestors
Trace the ancestor weaknesses of a given CWE ID. Filter by view or primary parent to map CWE taxonomy relationships precisely.
Instructions
Get ancestors of a specified CWE weakness, filtered by view and primary flag
Args: cwe_id: CWE ID (with/without 'CWE-') view: Optional view identifier to filter relationships primary: Limit ancestors to include only primary parents
Returns: Dictionary with "Ancestors" array or error information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | ||
| cwe_id | Yes | ||
| primary | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |