get_relationships
Retrieve activity predecessor and successor relationships from a Primavera P6 XER file, enriched with task codes. Optionally filter by a specific task code to show only related relationships.
Instructions
Get activity predecessor/successor relationships, enriched with task codes.
If task_code is supplied, returns only relationships where that activity
appears as the successor or as the predecessor.
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": {
"file_path": "<file_path>"
},
"name": "get_relationships"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| task_code | No | ||
| limit | No |