invariance_capture_link
Link a capture to an evidence-graph target such as a run, case, workflow event, or node. Use run_id for legacy run linking or target_id to create a richer capture link.
Instructions
Link a capture to an evidence-graph target (run/case/workflow_event/node). With only run_id this sets the capture's run_id (legacy, equivalent to invariance_capture_update). With target_id it creates a richer capture link; target_type defaults to "run". Captures are standalone evidence and don't need an execution upfront.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Capture id, e.g. "cap_abc123". | |
| run_id | No | Legacy: link to a run by setting run_id (PATCH). | |
| link_type | No | Relationship the link expresses. Defaults to "evidence" server-side. | |
| target_id | No | Id of the target to link; creates a capture link. | |
| target_type | No | Kind of target to link to. Defaults to "run". |