cortex_add_relationship
Create a relationship between two entities (feature, file, test, issue, decision) by specifying source and target types, IDs, and the relationship type.
Instructions
Create a relationship between two entities (feature, file, test, issue, decision).
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": {
"source_type": "<source_type>",
"source_id": "<source_id>",
"target_type": "<target_type>",
"target_id": "<target_id>",
"relationship": "<relationship>"
},
"name": "cortex_add_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_type | Yes | Source entity type: feature, file, test, issue, decision | |
| source_id | Yes | Source entity ID | |
| target_type | Yes | Target entity type: feature, file, test, issue, decision | |
| target_id | Yes | Target entity ID | |
| relationship | Yes | Relationship type: creates, tests, affects, blocks, resolves |