ensure_link
Create a directed link between an experiment and an item idempotently. Use dry_run to preview changes before writing.
Instructions
Idempotently create a directed link between an experiment and an item. WRITE OPERATION when dry_run=false — requires the link write scope. dry_run=true (default) only reports what would happen. Returns result: linked | already_linked | would_link (verified after writing).
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_type": "<from_type>",
"from_id": "<from_id>",
"to_type": "<to_type>",
"to_id": "<to_id>"
},
"name": "ensure_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_id | Yes | ||
| dry_run | No | ||
| from_id | Yes | ||
| to_type | Yes | ||
| trace_id | No | ||
| from_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |