p6_list_wbs
Lists a Primavera P6 project's WBS tree in P6 order with paging, optional subtree rollups, parent/depth filters, and baseline progress metrics for schedule analysis.
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) and bl_planned_pct: baseline planned units at the data date / baseline budget units of the subtree, x 100 (the baseline's labor and nonlabor assignments placed by the Activity ID of the current activities, linear between their planned dates as p6_progress_curve and the dashboard; None without a baseline, a data date or baseline units). baseline= a Project ID (default: the project baseline); the result says which one (baseline). 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).
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": {
"project": "<project>"
},
"name": "p6_list_wbs"
}
}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 | ||
| baseline | No | ||
| max_depth | No |