p6_list_wbs
List a Primavera P6 WBS tree in hierarchical order with pagination and optional activity rollups, so you can inspect work breakdown structure codes, parents, depths, and subtree totals.
Instructions
WBS tree in P6 order (each node before its children), one page: {total, offset, returned, next_offset, rows, root}. Row: wbs_id, parent_wbs_id, depth (project node 0), wbs_code (as P6 shows it, e.g. 'PRJ.5.1'), wbs_short_name, wbs_name, children (direct), and with rollups=True the rollup of its whole subtree: activities, open (not completed, LOE and WBS summary left out), not_started, in_progress, completed, min_tf_d and negative_float (open activities, days of each calendar), start, finish (actual, else early), budget_units, actual_units (labor plus nonlabor), units_pct (actual / at completion, as P6 Units % Complete). parent= starts at that WBS code, full or relative to the project node ('5.1'); max_depth counts levels below the start node. root repeats the start node (unplaced = activities outside the tree, when it is the project node).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows per page (max 200). | |
| offset | No | Rows to skip: pass next_offset from the previous page. | |
| parent | No | ||
| project | Yes | Project ID as shown in P6 (p6_list_projects). | |
| rollups | No | ||
| max_depth | No |