We can currently set baked textures using llSetLinkPrimitiveParams and llSetLinkTexture using:
IMG_USE_BAKED_HEAD
IMG_USE_BAKED_UPPER
IMG_USE_BAKED_LOWER
IMG_USE_BAKED_EYES
IMG_USE_BAKED_SKIRT
IMG_USE_BAKED_HAIR
IMG_USE_BAKED_LEFTARM
IMG_USE_BAKED_LEFTLEG
IMG_USE_BAKED_AUX1
IMG_USE_BAKED_AUX2
IMG_USE_BAKED_AUX3
We cannot however detect if these are applied on objects other than full perm ones because llGetLinkPrimitiveParams can't read texture keys without either the texture being in inventory, or the object being full permission.
This issue can be fixed by either supplying the textures mentioned above in the avatar library folders as actual textures we can put into object inventories, or fixing the function to be able to return the baked texture key, such as IMG_USE_BAKED_UPPER (ae2de45c-d252-50b8-5c6e-19f39ce79317).
This is currently preventing me from automating material placement for customers on non full perm assets (such as PBR materials, or normals and speculars to match the BOM diffuses.)