sim_bind
Record an intended connection between two stored models' declared ports — fromModel's fromPort feeding toModel's toPort — as a new content-addressed Binding, alongside sim_link's Relation graph rather than inside either model (ROADMAP.md Phase 9). This does not run anything, does not validate that either port exists or has the right direction, and does not touch either model: it is a proposal to connect, discoverable afterward via sim_edges on either model id (a from/to Relation is recorded automatically) or sim_get_binding on the id this returns. Storing the same from/to/transform twice returns the same id rather than a duplicate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toPort | Yes | element id of the declared input port on toModel | |
| toModel | Yes | id of the model receiving the connection | |
| fromPort | Yes | element id of the declared output port on fromModel (see GET /api/models/{id}/ports) | |
| fromModel | Yes | id of the model supplying the connection's output | |
| transform | No | free-text account of how fromPort's value becomes toPort's — a unit scale, a resample window, an aggregation. Not yet interpreted by anything; recorded for whoever builds the pipeline runner |