add_edge
Create a directed edge between two nodes in a knowledge graph, specifying the relationship type and optional weight.
Instructions
Create a directed edge between two nodes with relationship type and weight.
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": {
"from_id": "<from_id>",
"to_id": "<to_id>",
"relation": "<relation>"
},
"name": "add_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_id | Yes | ||
| to_id | Yes | ||
| relation | Yes | ||
| weight | No | ||
| api_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |