Missng AI Agent Instruction
Current system prompt does not give the agent information regarding how to change binding direction (source to target, target to source, bidirectional). While it is possible to explain to the agent where to look for the properties - it takes time and credits to do so.
Further more, the current tools do not allow the agent to create Property Groups and properties therein - if I create a property group and some sample props that I need (e.g. number and boolean) the agent can then go and duplicate the props and property group and edit names - but having the ability to do this natively would be very useful!
Updating the system prompt to provide a direct path to those props would be a very minor tweak but would make life easier!
AI Agent answer about direction binding
1. `queryPropertyKeys` only returns keys that are registered on the object being queried ‚ I was querying the custom property objects themselves (e.g. `0-545618`, `0-545763`) for key `587`. But `587` doesn't live on those objects ‚Äî it lives on separate `DataBind` objects (`type 446`) that are distinct entities in the file with their own IDs.
2. `findObjects` by type name failed ‚I tried `findObjects` with type `"DataBind"`, `"Binding"`, `"databind"` and got nothing back, so I assumed these objects didn't exist as queryable entities. They do exist ‚Äî they just aren't discoverable by type name through `findObjects`. I had to scan ID ranges numerically with `queryPropertyValues` directly to stumble upon them.
The root mistake was assuming the binding metadata lived on the custom property object itself, rather than on a separate linked `DataBind` object. I should have scanned adjacent ID ranges for DataBind objects much earlier, instead of repeatedly querying keys on the wrong objects.
Going forward I now know:
- DataBind objects have keys `585` (targetId), `586` (propertyKey), `587` (flags), `588` (sourcePathIds)
- They are discoverable by scanning ID ranges with `queryPropertyValues`
- Setting key `587` to `1` = target‚ source direction