add_interaction
Record a dependency between two functions to trace dependency graphs using interaction types like call, chain, borrow, compose, or pipe.
Instructions
Record a dependency between two functions by name (call, chain, borrow, compose, pipe). Interactions are how the AI traces dependency graphs.
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": "<source>",
"target": "<target>",
"interaction_type": "<interaction_type>"
},
"name": "add_interaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source function name | |
| target | Yes | Target function name | |
| interaction_type | Yes | Interaction type ('call', 'chain', 'borrow', 'compose', 'pipe') |