link_to_goal
Associate entities or regions with state-memory task nodes to define goals, unlink them, or extract a goal-relevant spatial slice via get_context. Mutates associations or returns read-only context.
Instructions
Link or unlink entities and regions to state-memory task nodes, or extract a goal-relevant spatial slice. Actions: link, unlink, get_context. link/unlink mutate association rows only. get_context is read-only. Returns {ok, action, links[]|context}. Use link_to_goal instead of record_outcome when associating entities with state-memory task nodes rather than recording physical movement deltas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Context notes | |
| action | No | Action to perform: "link" (default), "unlink", or "get_context" to retrieve goal-relevant spatial slice | |
| radius | No | Proximity radius around agent for get_context action (default: 30) | |
| project | No | Optional project identifier | |
| task_id | No | State memory task node ID | |
| entity_id | No | Target entity ID to link/unlink | |
| region_id | No | Target region ID to link | |
| max_entities | No | Maximum entities to return for get_context action (default: 20) | |
| relationship | No | Role of entity relative to goal (default: target) | |
| min_clearance | No | Minimum clearance distance required to satisfy the goal | |
| success_region | No | Spatial bounding volume region defining goal arrival | |
| target_entity_id | No | Direct target entity ID for navigation and clearance tracking | |
| current_agent_position | No | Current agent position for get_context action |