ensure_link_by_query
Resolve an experiment or item by query and idempotently link it to a target record, returning candidates instead of guessing when the matches are ambiguous.
Instructions
Resolve the target entity by query and then link it idempotently. Query resolution works for experiments and items only. WRITE OPERATION when dry_run=false — requires the link write scope. With several matches the tool returns the candidates instead of guessing (on_ambiguous='error' makes it fail instead).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | ||
| tags | No | ||
| scope | No | all | |
| offset | No | ||
| dry_run | No | ||
| from_id | Yes | ||
| to_type | Yes | ||
| extended | No | ||
| trace_id | No | ||
| from_type | Yes | ||
| owner_ids | No | ||
| status_ids | No | ||
| category_ids | No | ||
| on_ambiguous | No | return_candidates | |
| limit_candidates | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |