How do I add/modify components in an item in a player's cursor slot with a command?

The version is 24w36a, and I am aware the cursor slot can only be modified in survival mode.

Continue to help post