set_relation
Record or update spatial relationships between two entities, specifying relation type, offset, distance, and optional bidirectional linking.
Instructions
Record or update a spatial relationship between two entities (e.g. on, inside, next_to, above, below, near, contains, occluded_by, connected_to, facing, holding, part_of).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Action to perform (default: add) | |
| offset | No | Relative offset vector from source to target | |
| project | No | Optional project identifier | |
| distance | No | Optional measured distance between entities | |
| metadata | No | Additional relation metadata | |
| relation | Yes | Type of spatial relation | |
| source_id | Yes | Source entity ID | |
| target_id | Yes | Target entity ID | |
| bidirectional | No | If true, automatically sets inverse relationship on target |